How to: Motion sensors from iSpy camera's
Posted: Friday 20 January 2017 9:21
I am using (the free) iSpy software for my IP camera's.
In the software there is a function that can send a HTTP request when f.i. motion is detected.
You can use this in Domoticz to trigger a virtual sensor.
Step 1:
Create a virtual switch in Domoticz and set it to the Motion Sensor type.
Write down the device ID.
Step 2:
Go to iSpy and select the camera you want to use as a motion detector.
Go to Settings and then the tab Alerts.
Now you need to create 2 rules with the type 'Call URL'.
One rule for 'Alert' and one rule for 'Alert Stopped'.
Say the device ID of your virtual sensor is '228' and the IP address of your Domoticz is 192.168.1.100 with port 8080.
Rule for 'Alert':
make sure you enable the rule by clicking on the checkmark!
Uncheck 'Send image'.
Rule for 'Alert Stopped':
What you get is this:
It works pretty well.
In the software there is a function that can send a HTTP request when f.i. motion is detected.
You can use this in Domoticz to trigger a virtual sensor.
Step 1:
Create a virtual switch in Domoticz and set it to the Motion Sensor type.
Write down the device ID.
Step 2:
Go to iSpy and select the camera you want to use as a motion detector.
Go to Settings and then the tab Alerts.
Now you need to create 2 rules with the type 'Call URL'.
One rule for 'Alert' and one rule for 'Alert Stopped'.
Say the device ID of your virtual sensor is '228' and the IP address of your Domoticz is 192.168.1.100 with port 8080.
Rule for 'Alert':
Code: Select all
http://192.168.0.100:8080/json.htm?type=command¶m=switchlight&idx=228&switchcmd=On
Uncheck 'Send image'.
Rule for 'Alert Stopped':
Code: Select all
http://192.168.0.100:8080/json.htm?type=command¶m=switchlight&idx=228&switchcmd=Off
What you get is this:
It works pretty well.