-
-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problems with the dot in the device attribute name #1795
Comments
Use |
@RomRider, thank you very much! Yes, in that case everything works! |
It's just javascript syntax, nothing specific to button card. So you'll have to look for javascript tutorials. |
@RomRider, I understand you, thank you very much again! |
uh, why not Edit: just realized that you aren't using jinja. You can either create a helper/templated entity from the above, use a different card, or use the browser developer tools to inspect available attributes |
@SodaWithoutSparkles, because the @RomRider provides a different syntax for getting the attribute value...
Here I have given an example for the value of attribute (
To be honest, I didn't quite understand what you were suggesting... Just look at values of attributes using Developer Tools? This is not suitable at all - I need these values so that the elements on the card work properly - accordingly, I need to receive these values so that they are processed in Javascript Templates of the Button Card by @RomRider... |
Hello. I have a Xiaomi Mijia Smart Evaporative Cooling Fan (dmaker_p44). After adding it through this integration, there is a dot in the name of many of its attributes:

These are, for example, "fan.on", "fan.fan_level", "fan.mode" and so on...
I want to use the Button Card by @RomRider (https://github.com/custom-cards/button-card ), but when I try to extract the value of such attribute using Javascript Templates,
nothing works!
I assume that the reason for this is that the java script template format used in this card does not allow for correct processing of attribute names that contain a dot.
The question is, is there any way to make the names of these attributes not contain dots?
The text was updated successfully, but these errors were encountered: