- Feb 10, 2005
The status switch is not suppose to be an actual switch you use. It is suppose to only show the state if it is a reed switch.yes the switches are working. I can trigger both switches in Tasmota UI and on the Tasmota integration in HA I cant see the status switch though how do I add that in HA? in the integration Tasmota cant see it there.
this is what I can see in the integration of HA. Just need to add it to a cover card that will show status of both using the Switch2
View attachment 1314252
got it working with the below cover. Now I just need a better looking card. Is there a way to get the whole card change color depending on state?
cover: - platform: mqtt name: "Gate 1" state_topic: cmnd/gatestatus/POWER2 command_topic: cmnd/gate/Power1 availability_topic: tele/gate/LWT payload_open: "ON" payload_close: "ON" payload_stop: "ON" state_open: "OFF" state_closed: "ON" payload_available: "Online" payload_not_available: "Offline" optimistic: false qos: 0 retain: false - platform: mqtt name: "Gate 2" state_topic: cmnd/gatestatus/POWER2 command_topic: cmnd/gate/Power2 availability_topic: tele/gate/LWT payload_open: "ON" payload_close: "ON" payload_stop: "ON" state_open: "OFF" state_closed: "ON" payload_available: "Online" payload_not_available: "Offline" optimistic: false qos: 0 retain: false
View attachment 1314272
If your device have 2 relays and a reed switch, then you need to have it show power1 2 and 3 in tasmota.
Then you use power3 as the state.
Let me explain how the sonoff sv works.
It has a single relay, shown as power1 in tasmota.
Then the reed switch (a sensor only) on gpio14, show as power2 in tasmota.
Even though it looks like a power switch, it does nothing except show on/off based on whether my gate is open or closed.
Thats why I am saying, if you 2 relays (I assume since you have 2 gates?), then you need to see 3x power switches in tasmota if you only have a single reed switch. Is this the state for both gates or just one gate?
I actually dont think I understand what you are doing, and thats probably why no one here is able to help you because we dont understand whats going with your setup.
As for the color state, once you add the buttons to a card in lovelace, edit the card settings there to change color based on state.