I’m using a shelly to control an electric gate all working OK. I started with trying to do it with MQTT then decided to use the inbuilt shelly integration. Then I tried via covers template but gave up. Finally decided easiest would be to use custom button-card in the dashboard.
Question is how to I add a an action/tap to the button that is showing a binary sensor at the moment, to toggle or turn on switch.driveway_gate??
type: custom:button-card
name: Driveway Gate
entity: binary_sensor.driveway_gate
state:
- value: 'on'
icon: mdi:gate-open
color: red
styles:
card:
- animation: blink 2s ease infinite
- value: 'off'
icon: mdi:gate
color: green
Thanks