I have a Sonoff momentary relay hooked up to my garage door opener to open and shut it. I also have a MyQ garage door sensor to monitor the open/shut status. My garage door isn’t compatible with MyQ so I can’t use it to open and shut the door.
Is it possible to make a button that shows the garage door status (icon + text) but when I click on it, it activates the Sonoff switch?
Here’s my current vertical stack code showing the Garage Door status:
Yup, I did. Here’s my code using custom button card in a vertical stack. You can see the entity is the sensor of the garage and tapping it will activate the sonoff switch.