How to: Motion sensors from iSpy camera's

Post Reply
User avatar
bbqkees
Posts: 466
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

How to: Motion sensors from iSpy camera's

Post by 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.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

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

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

Post by 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: 2
Joined: Tuesday 21 March 2017 0:04
Target OS: Windows
Domoticz version:
Contact:

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

Post by 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: 466
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

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

Post by bbqkees » Tuesday 21 March 2017 13:15

Is Domoticz running on the same machine as iSpy?
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

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

Post by adam0908 » Sunday 26 March 2017 20:17

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

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

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

Post by Marzel » Saturday 29 April 2017 18:48

bbqkees wrote:Is Domoticz running on the same machine as iSpy?
Hi,
I´m sorry I didn´t return here and didn´t answer your question.
I got it running in the meantime.
Thanx for your instructions.

marktn
Posts: 42
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

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

Post by marktn » Friday 19 May 2017 21:23

Top instructions! It works.

Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk

steffo
Posts: 3
Joined: Wednesday 27 December 2017 16:28
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by steffo » Wednesday 27 December 2017 16:40

Hello,
I have my iSpy and like to control a switch based on motion detecting on a Hikvision camera.
The camera works fine and the alerts are also OK (beep and recording)

I created a virtual switch but could not find the 'motion detector' in type selection.
Is this necessary and how can I get 'motion detection' ?

I tried to just create a swithch and use this url:
http://192.168.1.191:8080/json.htm?type ... itchcmd=On
This does not work - it does not work if i write it into a browser either - I get' Err'
as response..
I hope anyone can help!

User avatar
bbqkees
Posts: 466
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

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

Post by bbqkees » Tuesday 02 January 2018 11:00

The switch ID is the IDX number of the switch in Domoticz.
This is usually a 3 digit number.

You can look it up via Setup->Devices and then search for the switch.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

jth62
Posts: 1
Joined: Friday 05 January 2018 15:08
Target OS: Windows
Domoticz version:
Contact:

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

Post by jth62 » Friday 05 January 2018 15:22

Hi bbqkees !

thank you very much for these instructions!

I can launch the following link from a batch :

@echo off
start /b http://192.168.1.100:8080/json.htm?type ... itchcmd=On"
timeout /t 5
TASKKILL /IM chrome.exe /F

But when I try to activate the url call , nothing happens :
http://192.168.1.100:8080/json.htm?type ... itchcmd=On

Can you confirm that this synthax is correct?

thank you in advance
Best regards
Julien

astrapowerrr
Posts: 34
Joined: Tuesday 31 January 2017 21:34
Target OS: -
Domoticz version:
Contact:

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

Post by astrapowerrr » Monday 08 January 2018 0:43

Going to test this... looks


Verzonden vanaf mijn iPhone met Tapatalk

Evelen
Posts: 281
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

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

Post by Evelen » Tuesday 09 January 2018 1:02

The problem with this is that ispy think lights turning on and off is motion

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest