I have a Shelly 1 serving as a garage door opener in Home Assistant. I have configured it via MQTT and everything is working fine, except for a small glitch related to the reed switch.
The problem is that everytime the reed switch changes state (garage door opens or closes), the Shelly is sending two event to MQTT.
Here’s a screenshot I took while following the state topic on MQTT.
The garage door was closed (value 1), then I opened it and value goes to 0 but then quickly goes to 1 and back to 0 again. And you can see a similar thing happening when I close the garage a few seconds later.
The problem is that for example, I always get two notifications in HomeKit when opening/closing the garage (open saying the garage opened, and the other ir closed). It also means some automations run when they shouldn’t.
Anyone have any idea what could be causing this? Is my reed switch crap?
Thanks but hopefully there’s an easier solution via software. Flashing another firmware seems a bit overkill, but if nothing else works I might just try that.
I’m very new to HA so I’m not sure what are my options here but at the very least I should be able to code something that listens to that topic (shellies/GarageMotor/input/0), debounces it, and pushes to another topic (shellies/GarageMotor/input_db/0). Then I’d configure the cover in HA with the latter topic.
Hoping there’s something in HA I can use to get around this.