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??
name: Driveway Gate
- value: 'on'
- animation: blink 2s ease infinite
- value: 'off'