Hello Everyone,
I need a little direction help please! I have a Wemos D1 mini Pro running Tasmota as a garage door opener, with 2 reed switches, one for open and the other for closed.
OK I have managed to copy, create and change an MQTT cover, add the two reed switches as binary sensors. The arrows on the cover in the UI work fine and open close the door, the sensors also report correctly when the door is either open or closed.
Now what I am trying to get my head around is the display of the sensors. I would like to have below the up,stop and down arrows is just one text line saying the door is either closed, opening, open or closing. the icing on the cake would be for the garage icon to change when its open and closed.
Coming from openhab, I just had a rule that did this easily and displayed the text, but I cant figure it in HA.
Heres my config.yaml bit -:
#Garage door open and close sensors on D1mini
- platform: mqtt
name: "Garage Door Open Sensor"
state_topic: "cmnd/GarageDoorSensor/POWER1"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
- platform: mqtt
name: "Garage Door Closed Sensor"
state_topic: "cmnd/GarageDoorSensor/POWER2"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
cover:
- platform: mqtt
name: "Garage Door"
command_topic: "cmnd/GarageDoor/POWER"
#state_topic: "stat/GarageDoor/POWER"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "open"
state_closed: "closed"
value_template: '{{ value_json.status }}'
qos: 0
and a screenshot of the UI
I have looked at loads of the threads on here which have been helpful but I cant figure out how to combine the two sensors with a rule and output the result to the UI.
Could someone kindly point me in the right direction please?
Also was an MQTT cover the best way to go with this?
Cheers
Simon