ratgdo / mqtt-ratgdo

ratgdo via mqtt
GNU General Public License v2.0
76 stars 16 forks source link

Light activity triggered by motion sensor not detected/reported #36

Open untergeek opened 6 months ago

untergeek commented 6 months ago

So, in MQTT, the motion status of my wall switch is definitely reporting detected for any motion. It seems to ignore motion for 5 minutes, after which another detected will be recorded. This is cool, though it would be cooler if it reset to clear at the end of those 5 minutes.

The disconnect is that this motion event triggers the light to turn on (and off after some time with no more motion), but ratgdo doesn't see that the light was turned on for some reason. ratgdo does see when the light is turned on for a garage door open event, and sees when the light turns off some time after closing. But it does not see when the light is turned on by motion.

I believe this may have caused the issue reported in #32 as toggling the light when it was on already, but ratgdo thought it was off, caused it to turn off and report that it was on.