Closed Chen2022 closed 2 years ago
It returns off and on, [[[ if ($entity = off) { "hot" } else { "cool" } ]]] After I set it like this, it is still blank
if the state of the entity is on or off (please verify in the developers tools -> states), then the right syntax is the following:
[[[ if ($entity == "on") { "hot" } else { "cool" } ]]]
and in the color condition:
Yes, it's on or off. The display is normal before adding, but the 3D card will not be displayed after I set it. .
For a on/off state you do not need an entity template, remove the field entity template and use:
color: red | state: on color: blue | state: off
Yes, thank you very much
The set temperature display is normal. In addition, it is not allowed to set the water leakage. It will be blank 3D after saving binary_sensor.water_leak_sensor_158d00044be77b,Not supported? Blank after setting