Reolink motion detection

Previous development branch now released as 1.36
Locked
Johnny1337
Posts: 14
Joined: Tue Oct 15, 2019 11:22 am

Reolink motion detection

Post by Johnny1337 »

Is there anyone who already have created a script for using the built in motion detection in Reolink cameras and wants to share it?

I found that I can get a 1 or 0 when accessing
"http://192.168.X.X/api.cgi?cmd=GetMdSta ... ord=123456" but don't want to reinvent the wheel if anyone already done it.
tomcat84
Posts: 39
Joined: Fri Jul 03, 2020 11:24 pm

Re: Reolink motion detection

Post by tomcat84 »

I have done this in home assistant with an hikevision camera but there is also a addon for reolink doing the same:
https://github.com/fwestenberg/reolink
The binary_sensor sensor is what u are searching for.
Than create a switch to trigger zoneminder over telnet
Finaly combine all with an automatisation.
Johnny1337
Posts: 14
Joined: Tue Oct 15, 2019 11:22 am

Re: Reolink motion detection

Post by Johnny1337 »

Looks great, thank you!
I am trying to separate my ZM- and HA-server as much as I can so I really would like to use it directly on my ZM-server.

Maybe I will borrow part of your code if I manage to assemble it to another script. I am not good at python but will give it a try. :)
tomcat84
Posts: 39
Joined: Fri Jul 03, 2020 11:24 pm

Re: Reolink motion detection

Post by tomcat84 »

You are welcome. But its not my code I just pointed you to a soluting someone else scripted :)
Locked