Hi guys,
Not sure how to ask this properly.
I have a simple garage door, which I control with RF button. One button that does everything - opens, closes, pauses garage door. I have Xiaomi Door/Windows sensor which shows me the status of the garage door - whether it is closed or not.
I flashed Sonoff SV with Tasmota and it works as expected, the question is - is it possible to add door sensor state into my cover switch?
This is what I have:
I want to have only one arrow up or down available based on the state of Xiaomi sensor. I understand that it doesn’t make a big sense as all actions (up, down or stop) are basically the same, but just to make it look nicer.
My garage cover switch:
- platform: mqtt
name: "Sonoff SV Garage"
state_topic: "cmnd/garage/STATE"
command_topic: "cmnd/garage/POWER"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "ON"
state_closed: "OFF"
optimistic: false
Maybe it’s possible to make state_open and state_closed to read the state of the sensor somehow?