Turn on/off switch once motion is detected from a Blue Iris Camera. (2020)

wilsonc10

n3wb
Joined
Aug 8, 2016
Messages
3
Reaction score
0
Is there a way using IFTTT or other methods that will allow me to turn on a light switch once a camera has been triggered in Blue Iris Version 5.1. Most of the information I can find on the internet is outdated and don't work. The switch is a GE Z-Wave switch that is connected to a SmartThing Hub V3. Any assistance will be helpful.
 

pls68

Young grasshopper
Joined
Jul 14, 2017
Messages
30
Reaction score
8
I don't know much about smart things but you can habe BI send a command to a virtual switch within smart things on detecting motion. Then you can handle the desired logic with turning on/off lights within smart things.
My home automation is a PI running openhab and I have BI sending a curl command to change the state of my virtual switch or motion sensor if you will.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk
 

wilsonc10

n3wb
Joined
Aug 8, 2016
Messages
3
Reaction score
0
I don't know much about smart things but you can habe BI send a command to a virtual switch within smart things on detecting motion. Then you can handle the desired logic with turning on/off lights within smart things.
My home automation is a PI running openhab and I have BI sending a curl command to change the state of my virtual switch or motion sensor if you will.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk
Thank You for your help. I was able to create a virtual switch within Smartthing. Then I went into Ifttt and created a recipe
If virtual Device 1 switched on, then Switch on Backyard
That is far as I'm able to go without assistance. Could you assist me in creating the command for Blue Iris that will send a switch command to the virtual switch I created?
 

pls68

Young grasshopper
Joined
Jul 14, 2017
Messages
30
Reaction score
8
this is the BI side of things (I am still using BI4):
goto the camera you would like to use as a virtual motion sensor, camera properties, alerts, choose the profile you want to edit, in the actions section choose "run a program or execute a script", configure, on the new window fill in the path to your curl.exe and this
Code:
curl --header "Content-Type: text/plain" --request PUT --data "ON" http://192.168.2.121:8080/rest/items/Motion_Outside_CamPorch/state
under "run file again when trigger is reset"
Code:
curl --header "Content-Type: text/plain" --request PUT --data "OFF" http://192.168.2.121:8080/rest/items/Motion_Outside_CamPorch/state
The 2 curl commands will most certainly have to be changed to work with your smart things setup.
Basically what it does is sending a http command to the url of your HA hub telling it turn the virtual switch on/off.
In the curl command above "Motion_Outside_CamPorch" is the name of my virtual switch. You will have to figure out how that works for Smart Things, I am sorry but I can't help in that respect.
I don't think you will need IFTTT if you are able to find the http command to flip your virtual switch. Benefit is all the data sent stays on you LAN, no privacy issues and super fast!
 

Attachments

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,680
Reaction score
14,041
Location
USA
SmartThings doesn't have a local web server to accept HTTP commands. It is cloud access only, which in this case ironically complicates setting up any kind of automation.

To be clear, I have no idea how to set up communication between Blue Iris and SmartThings; I returned my SmartThings hub after I discovered it was cloud-access only.
 
Joined
Jul 31, 2018
Messages
1,316
Reaction score
2,511
Location
texas
SmartThings doesn't have a local web server to accept HTTP commands. It is cloud access only, which in this case ironically complicates setting up any kind of automation.

To be clear, I have no idea how to set up communication between Blue Iris and SmartThings; I returned my SmartThings hub after I discovered it was cloud-access only.
Try Hubitat it may be able to run scripts commands, I have watched a lot of their videos and it seems to be pretty flexible.
 

wilsonc10

n3wb
Joined
Aug 8, 2016
Messages
3
Reaction score
0
this is the BI side of things (I am still using BI4):
goto the camera you would like to use as a virtual motion sensor, camera properties, alerts, choose the profile you want to edit, in the actions section choose "run a program or execute a script", configure, on the new window fill in the path to your curl.exe and this
Code:
curl --header "Content-Type: text/plain" --request PUT --data "ON" http://192.168.2.121:8080/rest/items/Motion_Outside_CamPorch/state
under "run file again when trigger is reset"
Code:
curl --header "Content-Type: text/plain" --request PUT --data "OFF" http://192.168.2.121:8080/rest/items/Motion_Outside_CamPorch/state
The 2 curl commands will most certainly have to be changed to work with your smart things setup.
Basically what it does is sending a http command to the url of your HA hub telling it turn the virtual switch on/off.
In the curl command above "Motion_Outside_CamPorch" is the name of my virtual switch. You will have to figure out how that works for Smart Things, I am sorry but I can't help in that respect.
I don't think you will need IFTTT if you are able to find the http command to flip your virtual switch. Benefit is all the data sent stays on you LAN, no privacy issues and super fast!
Thanks for you help. I found a way to link Smartthing and Blue Iris using Fusion BI Fusion smartapp.
 
Last edited:
Top