I have to use the Input mode "button - momentary" for one of my ShellyPlus1.
As always the discovery of the script works great but I guess there is something wrong with the status of the Relay it discovers.
It is always off. MQTT sends switch:0 - output - true/false. But on input:0 the state is always null.
With the Relay 0 i can switch it on but HA does not get the right feedback and thinks the state of the switch is off. So if I am fast, I can switch my Relay off to set the switch on and off quickly.
Expected behavior
If I use the Relay/switch in home assistant, I would like to get the right state (on/off) and use the switch as well as the button.
Describe the bug
I have to use the Input mode "button - momentary" for one of my ShellyPlus1. As always the discovery of the script works great but I guess there is something wrong with the status of the Relay it discovers. It is always off. MQTT sends switch:0 - output - true/false. But on input:0 the state is always null. With the Relay 0 i can switch it on but HA does not get the right feedback and thinks the state of the switch is off. So if I am fast, I can switch my Relay off to set the switch on and off quickly.
Expected behavior
If I use the Relay/switch in home assistant, I would like to get the right state (on/off) and use the switch as well as the button.
Versions:
Shellies Discovery GEN2 automation:
Shelly device MQTT settings: