Any Blue Iris experts? How to send command from Vera to turn on / off motion detection?

Hi

I have a IP camera in Blue Iris, I would like to send HTTP commands from Vera to Blue Iris to turn off and on the motion detection feature of the camera in Blue Iris.

I know how to send HTTP commands from Vera scenes or virtual devices, however the commands I have found on Google for Blue Iris to do this don’t appear to work or do anything.

For example I am using these commands to send to the Blue Iris server.

Motion Off:

http://192.168.1.100:81/admin?camera=cam1&motion=0&user=admin&pw=password

Motion On:

http://192.168.1.100:81/admin?camera=cam1&motion=1&user=admin&pw=password

For example when I run the Motion off command in a web browser I get back a response like this, which to me says it worked as its not an error message.

signal=green
profile=-1

However when I look at the motion detection setting in Blue Iris for this particular camera its still turned on.

And in addition my virtual motion sensor device in Vera for this Blue Iris IP camera, still trips for motion, when if the Blue Iris HTTP command had worked to turn off motion detection, I would expect my virtual motion sensor device in Vera to then not trip.

To answer my own question, I have found a different way to do it which appears to be working.

In Blue Iris they have Profiles, I’ve never used these before and the IP camera was just using “Profile 1” however if I use “Profile 2” and turn off the motion detection setting in that profile.

I can then switch between the two profiles:

Motion detection ON = Profile 1
Motion detection OFF = Profile 2

Motion Off:

http://192.168.1.100:81/admin?camera=cam1&profile=2&user=admin&pw=password

Motion On:

http://192.168.1.100:81/admin?camera=cam1&profile=1&user=admin&pw=password

And to send those commands from a Vera scene or PLEG action.

Motion Off:

luup.inet.wget("http://192.168.1.100:81/admin?camera=cam1&profile=2&user=admin&pw=password",5)

Motion On:

luup.inet.wget("http://192.168.1.100:81/admin?camera=cam1&profile=1&user=admin&pw=password",5)

I was then able to create a virtual switch device in Vera and have some PLEG logic to monitor that virtual switch for on and off and PLEG will fire the HTTP command to Blue Iris to change the cameras profile accordingly.

image

And I added a toggle button widget in to Imperihome app to control if the motion detection in Blue Iris, for this camera should be on or off.

This will be handy for when the neighbour or I are cutting the front lawns, as it triggers the motion detection on the doorbell cam within Blue Iris and then Vera and then other alerts within the house start going off.

Least now I can turn off the motion detection for the Doorbell Cam in Blue Iris to stop Blue Iris sending http signals to Vera and to the Vera virtual motion sensor device for this IP camera.

Trying to accomplish the same, but even just trying the command I get Authorization required, on my browser. I have the setting to require authentication from non-lan only, still doesn’t work.

You might be better asking on the Blue Iris forum as its a question to do with the Blue Iris Web server.

I’m running an older version of Blue Iris. All I did in the main options under the Web server tab was enable it specify a port number and the LAN and WAN IP addresses : port number.

Authentication is set to all connections.

Have you put in the correct username and password for Blue Iris in your HTTP command?

Maybe you need to remove the username and password from the http command then.

Something like this work?

Obviously change the IP address and Port number to whatever yours are. And the cam1 if its cam2 or cam3 etc.

luup.inet.wget("http://192.168.1.100:81/admin?camera=cam1&profile=2",5)

luup.inet.wget("http://192.168.1.100:81/admin?camera=cam1&profile=1",5)