lucavb / homebridge-hc-sr501

Homebridge plugin for the hc-sr501 motion sensor
GNU General Public License v3.0
10 stars 1 forks source link

Motion detected when opening home app. #13

Open NajibNour opened 3 years ago

NajibNour commented 3 years ago

Hello, Hope everyone is doing well. I am currently having an issue were when I open the home app motion gets triggered. The room would be fully empty with no movement what so ever.

Any ideas on why?

Let me know!

Thanks.

lucavb commented 3 years ago

Hang on. You are saying that the "sensor" gets triggered when you open the app?

NajibNour commented 3 years ago

Yes sir, I have diagnosed a little further, when I open the home app and scroll down to my nest cam, the sensor triggers as motion once it has finished loading the new snapshot for the nest camera. Not sure if the false trigger is related to it but that is something I have noticed.

lucavb commented 3 years ago

And if you switch of this camera temporarily?

NajibNour commented 3 years ago

After removing all nest cameras, the issue is no longer present. After adding one nest cam the issue represents itself.

lucavb commented 3 years ago

some infrared stuff? that sounds rather strange.

NajibNour commented 3 years ago

I have used an AM312 sensor instead and it is stable. The only issue I am having now is that there is no constant motion trigger. Looking into changing the code to my use case.

lucavb commented 3 years ago

What do you mean by no constant motion trigger?

NajibNour commented 3 years ago

As the HC-SR501 has a time knob that sets how long that the output will remain HIGH after detection. The AM134 sensor does not have that option so I am trying to see if I can develop that into the code with my limited knowledge in coding.