Page 1 of 1

Enable lights by motion detection camera

Posted: Wednesday 01 July 2020 17:11
by karbotilne5
Hi all,

What i want to do is as follow:
When my camera detects motion (foscam c1), the lights must be go on and after a time, the lights must be go off automatically.
I have added the camera and the lights in domoticz and thats working.
In domoticz the camera don't have a idx unlike the lights.
How can i make the link between the motion of the camera and the lights?

The web interface of the camera is configured when motion is detected, the images are forwarded to an ftp server.
Do i have to add a dummy switch and configure the dummy switch with an script or something?
Or is this only possible with a real motion detector?

Re: Enable lights by motion detection camera

Posted: Wednesday 01 July 2020 17:44
by waaren
karbotilne5 wrote: Wednesday 01 July 2020 17:11 When my camera detects motion (foscam c1), the lights must be go on and after a time, the lights must be go off automatically.
How can i make the link between the motion of the camera and the lights?
Did you already had a look at this wiki page ?

Re: Enable lights by motion detection camera

Posted: Thursday 02 July 2020 9:56
by lost
waaren wrote: Wednesday 01 July 2020 17:44 Did you already had a look at this wiki page ?
This page is for using motion on the Domoticz host, not the one integrated in IP cams as there is drawbacks:
-Motion on several IP cams will be too much for a PI.
-Hight& constant LAN bandwith use with several video streams to process remotely.

So I think the question was more on "how do I feed a virtual PIR in Domoticz, that may trigger a light switch" from cam integrated motion detection/snaphots.

Well, it depends:
-Some cams allow some POST data to be sent to a remote part/web server when an event occurs (like motion detection): Using Domoticz JSON API to trigger a virtual PIR may be done this way (with some auto-off config in the switch?).
-Custom service monitoring Cam(s) FTP subdirectorie(s) continuously & making the glue to Domoticz virtual PIR.

Second option may allow finer tuning (false positive rejection based on capture nb in a short time slice for instance) & will work with any FTP capable IP cam (most of them are).