Hello guys. How are you? I need some help.
I’m creating a remote control with the Conditional Card and Picture-elements Card but I’m having a problem. When the condition starts in the “ON” state, the card works as it should. However, when it starts OFF, nothing appears. At first I thought it was some problem with css but I couldn’t fix it. Here is my code and some illustrative images
- type: entities title: Boolean show_header_toggle: true entities: - entity: input_boolean.controle_tv_quarto name: Remote Control - type: horizontal-stack cards: - type: conditional conditions: - entity: input_boolean.controle_tv_quarto state: "on" card: type: picture-elements image: /local/remote-control/back.png elements: - type: image entity: switch.tv_samsung tap_action: toggle image: /local/remote-control/power-tv-off.png state_image: "off": /local/remote-control/power-tv-off.png "on": /local/remote-control/power-tv-on.png style: top: 8% left: 22% width: 15% - type: image entity: switch.htv tap_action: toggle image: /local/remote-control/power-htv-off.png state_image: "off": /local/remote-control/power-htv-off.png "on": /local/remote-control/power-htv-on.png style: top: 8% left: 79% width: 15%
Starting ON
Starting OFF