Author Topic: Vera Blue Iris Unofficial Plugin  (Read 175415 times)

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +46/-0
    • toggledbits.com
Re: Vera Blue Iris Unofficial Plugin
« Reply #675 on: March 09, 2018, 06:44:18 pm »
I'm coming late to the party and this is a long thread, so if I've missed the boat/point/window I apologize, but I wanted to suggest that if all that is needed is to get Vera to know when BlueIris senses motion (which it's really good at), you can use the VirtualSensor plugin to be the motion sensor emulation on the Vera side, and configure BlueIris to send an action to the Vera to trip and reset the VirtualSensor device when a camera is triggered or untriggered (for motion or any other event that BlueIris can detect, e.g. audio).

Specifically, install the VirtualSensor plugin, and create one device instance for every camera you want to respond to. Name them and record their respective device numbers. Leave them in Disabled state, because they will be operated programmatically by BlueIris only, and disabled stops any automatic operation. They can be armed or disarmed as needed, as any other motion sensor would be used.

Then, in the BlueIris camera properties for each camera, on the Alerts tab, check "Request from a web service" and hit the Configure... button. For "When triggered" enter this:

Code: [Select]
http://your-vera-ip/port_3480/data_request?id=action&serviceId=urn:toggledbits-com:serviceId:VirtualSensor1&action=Trip&DeviceNum=your_vsensor_device_id
Then check the "Request again when trigger is reset" checkbox, and enter this URL to untrip the sensor:

Code: [Select]
http://your-vera-ip/port_3480/data_request?id=action&serviceId=urn:toggledbits-com:serviceId:VirtualSensor1&action=Reset&DeviceNum=your_vsensor_device_id
It's a bit "crafty," but then, so much is, and it will be a lot lighter weight on the Vera than anything involving the video stream directly. You can also poke at the ModeStatus variable to get the arming state configured right for the various house modes, as you would with other security sensor devices.
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline Gr8hifi

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Vera Blue Iris Unofficial Plugin
« Reply #676 on: March 15, 2018, 11:51:06 pm »
Out of curiosity, is there a way to make Vera talk to the blue iris server?  What I?d like is to set ?away?on my Vera and have that tell blue iris to start recording on motion detection.  Then, when I deselect away, I?d like Vera to tell blue iris to stop recording on motion.   I know I can set up schedules, but our lives don?t seem to do the same thing at the same time with any regularity. 

Thank you

Offline kfxo

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +2/-0
Re: Vera Blue Iris Unofficial Plugin
« Reply #677 on: March 16, 2018, 08:51:04 am »
Out of curiosity, is there a way to make Vera talk to the blue iris server?  What I?d like is to set ?away?on my Vera and have that tell blue iris to start recording on motion detection.  Then, when I deselect away, I?d like Vera to tell blue iris to stop recording on motion.   I know I can set up schedules, but our lives don?t seem to do the same thing at the same time with any regularity. 

Thank you

You can send some http commands to the blue iris server. For example set up profile for recording and profile for not recording. Then switch profiles in blue iris using this lua code

local status, result = luup.inet.wget("http://ServerIP:ServerPortNumber/admin?profile=DesiredProfileNumber&lock=2&user=YourUserName&pw=YourPassword", 5)

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: +30/-32
    • Worthington Engineering, Inc.
Re: Vera Blue Iris Unofficial Plugin
« Reply #678 on: March 16, 2018, 07:59:53 pm »
And the Blue Iris cameras can become virtual motion sensors in Vera.
Vera 3, UI7 1.7.1017, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs door sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual & Multi Switch, Weather, Sys. Mon.

Offline Gr8hifi

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Vera Blue Iris Unofficial Plugin
« Reply #679 on: March 17, 2018, 05:04:37 pm »

You can send some http commands to the blue iris server. For example set up profile for recording and profile for not recording. Then switch profiles in blue iris using this lua code

local status, result = luup.inet.wget("http://ServerIP:ServerPortNumber/admin?profile=DesiredProfileNumber&lock=2&user=YourUserName&pw=YourPassword", 5)

I coupled your code with the House Modes Plugin and this works great! 
Thank you so much,
Jason