Page 1 of 1
Reolink motion detection
Posted: Mon Aug 17, 2020 7:18 pm
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.
Re: Reolink motion detection
Posted: Tue Aug 25, 2020 9:11 am
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.
Re: Reolink motion detection
Posted: Tue Aug 25, 2020 4:48 pm
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.
Re: Reolink motion detection
Posted: Tue Aug 25, 2020 11:38 pm
by tomcat84
You are welcome. But its not my code I just pointed you to a soluting someone else scripted