I would like to have a card on my Lovelace overview that shows the status of a relay controlled by ESPhome.
This would be simple if the relay would stay closed or open, but I’m using the relays as momentary switches. They close and 100ms later they are switched back to open.
switch:
- platform: gpio
pin: D0
inverted: yes
id: lamp_vide
- platform: template
name: "Lamp Vide"
icon: "mdi:lightbulb"
turn_on_action:
- switch.turn_on: lamp_vide
- delay: 100ms
- switch.turn_off: lamp_vide
With this I control Eltako Dimmers in my Switch Panel
The standard card always shows the Entities (Lamps) to be off, but I would like to have Icons /card entries changed based on the amount of “switches” performed (1 switch is On and Off)
So if I switch Once=On next time =Off
Does anybody have a solution for this?