Closed zappasmart closed 4 years ago
Try having both entities listed in the config-template-card. This is what dictates when things should change. Those entities dictate what things inside the card should update.
entities:
- input_boolean.test
- sensor.test
Description of problem:
In my test I have a template sensor that changes value, name and icon based on an input boolean.
Displaying the template sensor in sensor or entities cards works well, state changes are correctly detected and value, name and icon properly updated when input boolean toggles.
However, if sensor or entities cards are surrounded by config-template-card, they don't detect the input boolean state changes properly. I used the config-template-card only to dinamically change the theme (a blue or orange theme), based on the input boolean state.
Input Boolean OFF
When input boolean is off, blue theme is correcly applied, card content is correctly displayed:
Input Boolean turned ON
When input boolean is turned on, orange theme is correctly applied but card content is not updated:
Input Boolean turned OFF
When input boolean is turned back off, blue theme is correctly applied but card content is wrongly updated:
configuration.yaml:
lovelace: