adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
450 stars 65 forks source link

About blank #105

Closed Chen2022 closed 2 years ago

Chen2022 commented 2 years ago

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

001 02 003
Chen2022 commented 2 years ago

It returns off and on, [[[ if ($entity = off) { "hot" } else { "cool" } ]]] After I set it like this, it is still blank

adizanni commented 2 years ago

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:

Chen2022 commented 2 years ago

Yes, it's on or off. The display is normal before adding, but the 3D card will not be displayed after I set it. .

001 22
adizanni commented 2 years ago

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

Chen2022 commented 2 years ago

Yes, thank you very much