How to: Motion sensors from iSpy camera's

User avatar
bbqkees
Posts: 402
Joined: Sunday 17 August 2014 21:01
Target OS: Raspberry Pi
Domoticz version: 3.5x
Location: The Netherlands
Contact:

How to: Motion sensors from iSpy camera's

Postby bbqkees » Friday 20 January 2017 10: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':

Code: Select all

http://192.168.0.100:8080/json.htm?type=command&param=switchlight&idx=228&switchcmd=On

make sure you enable the rule by clicking on the checkmark!
Uncheck 'Send image'.


Image

Rule for 'Alert Stopped':

Code: Select all

http://192.168.0.100:8080/json.htm?type=command&param=switchlight&idx=228&switchcmd=Off


Image

What you get is this:

Image

It works pretty well.
RPi 2, Philips Hue GU10 / E27 / LivingWhites, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub,
P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / relays / I2C display via Arduino/ESP8266, Xiaomi Flora, BS440.

PSYCHOTIC
Posts: 39
Joined: Saturday 21 February 2015 17:32
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: How to: Motion sensors from iSpy camera's

Postby PSYCHOTIC » Saturday 11 February 2017 14:00

Cool feature!

Does anyone know a free android equivalent to ispy? (Stand alone android motion app send json)
I want to use this to monitor a blinking led for my energy consumption.

Great thx.

Marzel
Posts: 1
Joined: Tuesday 21 March 2017 0:04
Target OS: Windows
Domoticz version:
Contact:

Re: How to: Motion sensors from iSpy camera's

Postby Marzel » Tuesday 21 March 2017 0:18

Tried this, but it doesn't work.
Maybe you can help me out.

Domoticz has IP 127.0.0.1:8080

When I do the command for 127.0.... it just gives error.

Using Domoticz V3.7017 on Windows 10.

User avatar
bbqkees
Posts: 402
Joined: Sunday 17 August 2014 21:01
Target OS: Raspberry Pi
Domoticz version: 3.5x
Location: The Netherlands
Contact:

Re: How to: Motion sensors from iSpy camera's

Postby bbqkees » Tuesday 21 March 2017 13:15

Is Domoticz running on the same machine as iSpy?
RPi 2, Philips Hue GU10 / E27 / LivingWhites, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub,
P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / relays / I2C display via Arduino/ESP8266, Xiaomi Flora, BS440.

adam0908
Posts: 1
Joined: Sunday 26 March 2017 20:14
Target OS: Windows
Domoticz version:
Contact:

Re: How to: Motion sensors from iSpy camera's

Postby adam0908 » Sunday 26 March 2017 20:17

Tnx for this information...some new thing learn...


Return to “Camera's”

Who is online

Users browsing this forum: No registered users and 1 guest