pgerke / homebridge-freeathome-local-api

A Homebridge plugin that allows controlling you free@home setup using the local API provided by the System Access Point
MIT License
18 stars 2 forks source link

Motion detectors remain active #31

Closed pgerke closed 1 year ago

pgerke commented 1 year ago

Occasionally, motion detectors are not reset after they have been triggered but remain active indefinitely. I don't have a reliable way to reproduce the behavior.

floriangrotz commented 1 year ago

I can confirm @pgerke Hallway Motion (Motion Sensor ABB700D97FB8 (ch0000)) updated characteristic MotionDetected -> true Then it don´t turn to "false" again.

floriangrotz commented 1 year ago

It seem that there are only "movement" detected - and the channel does not say "no momevent" My motion senor trigger every 13-15 seconds a channel notification.

movement

In parallel I have another motion senor from a Netatmo Welcome Camera. This motion sensor say after 17-18 seconds of "motion" then a fallback to "no motion"

-> Solution: When no channel notification after 18 seconds then reset to "no motion"

pgerke commented 1 year ago

Ok well, so it's not a bug really, but rather a design decision by B+J it seems. I'll add an automatic reset. Might make the reset timer configurable.... 🤔

floriangrotz commented 1 year ago

I guess the intention from BJ is to use the motion sensor to trigger an event on their own UI (as I do for my "night light")

delay

The timer config to reset the motion sensor might be a good thing as delays might occure in different environments and so everybody can fine tune.

Global:

Device Specific:

Ideally: A global value which I can override per device (sadly most effort for you)

pgerke commented 1 year ago

I published the preview version v1.4.2-i31.0 to the issue-31 tag on npm that adds automatic reset with a default timeout of 20s. Please feel free to check it out, I'd be very interested in any feedback!

floriangrotz commented 1 year ago

Tried but didn’t seem to reset it in my case

pgerke commented 1 year ago

The fix is available as v1.4.3 and tagged to the issue-31 tag. Could you please confirm the motion sensor is resetting now?

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.