Vera Blue Iris Unofficial Plugin

[quote=“BruceNH, post:640, topic:181819”]I am a recent convert to Blue Iris and this plugin. The plugin is great once you get it working. For me the big plus is the ability to use the cameras motion detectors in Vera scenes. I have ended up with a lot of different cameras and trying to do this directly without BI and the plugin proved impossible.
Just a setup note on my experience. I had a lot of issues getting Vera to recognize the cameras when I used the “create camera” button in the BI plugin app control. In fact I only managed to setup one camera this way.
I had everything right as far as I could tell and was able to post the URL in the camera setting into a browser and see an image no problem.
After much frustration I decided to try to create device under the “develop app” tab. This method is shown in the BI plugin video. Using this method I had zero issues adding any of my cameras. and am now a happy camper.
So, if you are new to this and have problems like me try the “develop app” tab.
Cheers and a big thanks to the plugin developer for such a great job.
(I have a Vera 3 running U15)[/quote]

So you only have one ipCam set up through the BI plugin still?

For each ipCam you want to set up to connect to BI, use the ip address and port plus the log in credentials for the BI server and then specify the camera by the camera short name you used for it in the BI server. This is in the Advanced>Extra Parameters>Variables section of the camera. For me it is like this:

URL: /image/Cam2?q=80&s=80&time=now
DirectStreamingURL: /mjpg/Cam2/video.mjpg

Can anyone tell me if UI7 needs changes to have Blue iris send motion alerts to Vera? I was running the BI plug in on UI5 for ages, just did an upgrade to UI7 (Had to factory reset) and can’t get the motion to work in UI7 worked flawlessly in UI5. Nothing on my BI has changed, but the URL in the “biveratools.bat” doesn’t seem to work:

http://192.168.0.23:3480/data_request?id=lr_blueiris_tripped&test=A&sensor_id=31

The above worked fine in UI5 but with UI7 I get a “no handler” error - I’ve uploaded the luua files to my UI7 Vera, something about the above URL isn’t right when it comes to UI7

Anyone?

Paul

I use the plug-in Virtual Motion Sensor. You create a child motion detector tied to the camera. I do not remember the setup details but make sure each BI camera is already set up. Hopefully you already have this setup.

In BI, I use this command to trip Vera: <vera_ip>:3480/data_request?id=action&output_format=xml&DeviceNum=<child_virtual_devivce_#>&serviceId=urn:dcineco-com:serviceId:VMotion1&action=SetTripped

[quote=“Don Phillips, post:643, topic:181819”]I use the plug-in Virtual Motion Sensor. You create a child motion detector tied to the camera. I do not remember the setup details but make sure each BI camera is already set up. Hopefully you already have this setup.

In BI, I use this command to trip Vera: <vera_ip>:3480/data_request?id=action&output_format=xml&DeviceNum=<child_virtual_devivce_#>&serviceId=urn:dcineco-com:serviceId:VMotion1&action=SetTripped[/quote]

I got that to work, but I also know that the Blue Iris plugin itself has virtual motion devices built into the plugin, that’s what I was trying to get working. But this works, thanks!

I think that is a matter of sending BI a command to change the profile. I have a scene set up with LUUP to arm/disarm BI: luup.inet.wget(“http://<BI_ip>:<BI_port>/admin?profile=1&lock=2&user=<BI_ID>&pw=<BI_password>”)

I only have 2 profiles so it either arms or disarms BI.

So you only have one ipCam set up through the BI plugin still?

For each ipCam you want to set up to connect to BI, use the ip address and port plus the log in credentials for the BI server and then specify the camera by the camera short name you used for it in the BI server. This is in the Advanced>Extra Parameters>Variables section of the camera. For me it is like this:

URL: /image/Cam2?q=80&s=80&time=now
DirectStreamingURL: /mjpg/Cam2/video.mjpg
[/quote]

Thnx but this did not work for me for some reason.

I now have 8 cameras setup but I could only add them via the Develop App section.

I set up each one like this:
"Create a new device (apps → develop apps → Create device), enter the following

Upnp Device Filename: D_DigitalSecurityCamera2.xml
Upnp Implementation Filename: I_BlueIris.xml
Ip Address: :
Click “Create Device”
Reload Vera"

This give me all the cameras. So once this is done I just go to advanced and change the “cameraname” to the BI Short Name.

BTW sorry for the length of time it took to reply. I am not familiar with this bulletin board system and a I thought i would get an email if someone responded to the thread.

Cheers

Hello,

I am trying to use PLEG to change the profile on my Blue Iris server based on the mode (Home, Away, Night and Vacation). Using the following LUA code:
luup.inet.wget(“http://192.168.0.143:81/admin?profile=1&lock=1&user=XXXXX&pw=xxxxxxxxxxxx”). It works intermittently but is very inconsistent. If I post the http command in a browser, it is always successful and almost instantaneous. Any suggestions?

Roger

[quote=“RogerO, post:647, topic:181819”]Hello,

I am trying to use PLEG to change the profile on my Blue Iris server based on the mode (Home, Away, Night and Vacation). Using the following LUA code:
luup.inet.wget(“http://192.168.0.143:81/admin?profile=1&lock=1&user=XXXXX&pw=xxxxxxxxxxxx”). It works intermittently but is very inconsistent. If I post the http command in a browser, it is always successful and almost instantaneous. Any suggestions?

Roger[/quote]

I don’t think your problem is with PLEG and I’m not sure exactly what test you have don’t to come to that conclusion. But I’m gonna take a wild guess and say your problem is not that it don’t change but that it doesn’t stay in that position (locked) for long. I use the “LOCK=2” command vs. you have “LOCK=1”

If you look back at page 15 replay #221 I posted the following.

[quote=“integlikewhoa, post:222, topic:181819”]Ok guys A little update and more features for us. First the temp profile time seems to be ok, but still missing the beat usually 1 to 2 times a day (I can see VERA run my BI Fix in the logs when it happens). I think this is do to BI updates or computer/BI program restarts, haven’t pinned that down but I found a solid solution anyways.

Working with Ken at BI I now have an HTTP command to Run, Temp or Hold the profile. By adding “lock=x” to the current Http command you can now choose how you want to run that Profile.

lock=0 RUN
lock=1 TEMP
lock=2 HOLD

Example:
luup.inet.wget(“http://IPADDRESS:PORT/admin?profile=1&lock=2&user=XXXXXX&pw=XXXXXX”)

So this command would “HOLD” profile “1” when ran.[/quote]

So lock #1 would only temporary set the profile but will not hold it. So after a set time (its set in blueiris) the profile will revert back and leave you in the wrong profile then what you think you should be in. Now if you have tested and it just doesn’t change at all then I’m out of place, but if your problem is after some time you check and notice that the profile is wrong then it may just be that you not locking or holding the profile (lock=2) until the next change.

You browser test is probley an instant test and you don’t leave it long enough to flip back after a temporary hold.

hope this helps.

Thanks for the response. Here’s my setup and how I am testing.
I have 2 outside cameras and one inside camera. To satisfy the WAF, I want to disable the inside camera when vera is in home mode. It is activated in Night, Away and Vacation mode. I have geofencing set vera to Home if either of us are home. To test I have disabled the inside camera in profile 1. While watching the BlueIris webpage I can cycle through the profiles and the inside camera will show up or disappear depending on the profile. This works perfectly from the BI app on the BI server while monitoring the BI web page. When I change modes in Vera, it successfully changes the BI profile 60 % of the time. Seems to fail mostly going back to home mode from any of the other modes.

[quote=“RogerO, post:649, topic:181819”]Thanks for the response. Here’s my setup and how I am testing.
I have 2 outside cameras and one inside camera. To satisfy the WAF, I want to disable the inside camera when vera is in home mode. It is activated in Night, Away and Vacation mode. I have geofencing set vera to Home if either of us are home. To test I have disabled the inside camera in profile 1. While watching the BlueIris webpage I can cycle through the profiles and the inside camera will show up or disappear depending on the profile. This works perfectly from the BI app on the BI server while monitoring the BI web page. When I change modes in Vera, it successfully changes the BI profile 60 % of the time. Seems to fail mostly going back to home mode from any of the other modes.[/quote]

Test the correct command above and report back.

The more I play with it, the more I think it is related to BI being busy.

I have never had that. Whats the CPU Usage?

I do exactly what you’re doing and I have 8 1080p camera’s so I don’t think it’s BI being too busy. What is your CPU usage …?

Sorry to not reply a while back. I got everything working, though at this point not sure what changes I made anymore.

Can this plug in be updated to support the secure webserver option? Since I use the web interface and have it exposed I do not like having my credentials sent in the clear just to support this Vera plug in.

I know we looked into this in the past and there was an issue where it wouldn’t work. I think BI said that was for them using their own app and server. I don’t think they were willing or able to share what is needed behind the scenes to complete a secure connection with a 3rd party. I’m sure due to security concerns and keeping that secure between the two products they support without.

Having a problem with saved snapshots and video clips.
Keep getting “error retrieving thumbnail!” on snapshots and another error on attempt to play video clips. Live video is good from both cameras I have set up using the Blue Iris app.
It seems like maybe BI is not getting the html command, but the server is setup to not require login authentification from LAN. Anybody have an idea what might be wrong?

I setup my first camera using this plugin (installed via apps).

However, now I have another camera in BI so I wanted to add it to Vera. I go to the app information and click “Create another” and a few seconds later get the “Device Created” message box. However, there is no camera. I’ve tried this a few times. Am I doing something wrong? VeraPlus on UI7 v0.6

[quote=“nayr14, post:658, topic:181819”]I setup my first camera using this plugin (installed via apps).

However, now I have another camera in BI so I wanted to add it to Vera. I go to the app information and click “Create another” and a few seconds later get the “Device Created” message box. However, there is no camera. I’ve tried this a few times. Am I doing something wrong? VeraPlus on UI7 v0.6[/quote]

Did you put in the corresponding Camera Name from Blue Iris? Typically Cam1 and Cam2 etc.

[quote=“Sammy2, post:659, topic:181819”][quote=“nayr14, post:658, topic:181819”]I setup my first camera using this plugin (installed via apps).

However, now I have another camera in BI so I wanted to add it to Vera. I go to the app information and click “Create another” and a few seconds later get the “Device Created” message box. However, there is no camera. I’ve tried this a few times. Am I doing something wrong? VeraPlus on UI7 v0.6[/quote]

Did you put in the corresponding Camera Name from Blue Iris? Typically Cam1 and Cam2 etc.[/quote]

The first camera works great, but I’m trying to add my second camera in Vera. I can’t get it to generate another camera in Vera so I can set those variables.

Should that create another button generate a second camera for me to adjust the settings of?