Integrating Blue Iris into Home Assistant

Nickdaria.

Thank you for taking the time to document this process. I have been having non-stop issues with Stunnel and have been trying to figure out how to use the NGINX Proxy Manger instead, but was never able to get it to work. Your step-by-step processed worked great and I am now able to connect to my BI server remotely without any issues. Thanks again for sharing.

The next thing I would like to get working is to use Tensorflow AI Addon to help filter out false motion triggers. I have read this can work, but have not found any detailed documentation on how to set this up to work with the BlueIris feed. I am currently paying $5/month for the sentry smart alerts AI, but would prefer to setup my own internal solution. If anyone has additional information on how to get the TensorFlow Addon working with BI I would appreciate the info or link.

Thanks again.

Andrew J

1 Like

Tensor Flow setup can be found here. I havenā€™t had time to try it out yet, myself.

2 Likes

Sorry for the message after almost 6 months.
I just installed blueiris on a nuc in Windows 10. The only thing on it.
My hassio setup is on an unRAID VM Server (on a separate machine then the nuc). Also using NABU CASA.

How might I use your functionality in my environment.

Thanks
carltonb

I have followed this tutorial carefully, in hopes of correcting an existing issue, but, alas, I am still having the problem. When opening the android app for example ā€¦ if it is left open, and I come back to it, my home assistant instance will briefly loose connection, and when the connection comes back, my previews of my cameras show up as grey boxes with a missing link logo. I usually just refresh the screen, and it fixes the problem, however, the new Android app doesnā€™t have a refresh option. I have lived with this for quite some time, but I am becoming more and more annoyed and I am not certain what the problem is. Anyone else with a similar issue?

I think we all have this issue. I always have with any type of camera.
See this thread for a little bit more:

I have no clue on how to troubleshoot the issue, but Iā€™d like to see it fixed so if anyone knows how we can help let us know!

1 Like

I am not able to get Home Assistant (Lovelace front-end) to load my Blue Iris streams.

- platform: generic
  name: Front Door Stream
  username: !secret blueiris_username
  password: !secret blueiris_password
  authentication: basic
  still_image_url: "http://***.***.*.***:**/image/front_door"
  stream_source: "http://***.***.*.***:**/h264/front_door/temp.m3u8"

The stream opens locally on the Blue Iris host machine, and Home Assistant appears to be refreshing the still images, but, clicking the image in my front-end just results in a spinning wheel, and never loads the stream. I have double, and triple checked the links, and the username & password, and all is correct. The system is set up using this tutorial. I am on Hass.io, v. 0.105.5, and show no errors in the log related to this. For what itā€™s worth, the mjpeg set-up as indicated in the original post works fine, just not the stream version. I am wondering if the correct link should be something like: http://my.domain.duckdns/h264/front_door/temp.m3u8. Any advice?

I use mjpeg, h264 does not render for me in either firefox or chrome:

- platform: mjpeg
  mjpeg_url: http://blueiris/mjpg/driveway
  name: Driveway
  username: !secret bi_username
  password: !secret bi_password
  authentication: basic

I just use a chrome shortcut on my phoneā€¦ that way it works just like the app but has refresh and the rest of chromeā€™s features.

Also, I have to give it to the opā€¦ awesome write up on securing remote BI access. I would probably be trying this, but before I put cams on my house I already had a VPN setup on my asus router. That provides plenty of security and speed since Iā€™m using self signed certs (4k aes) with the newer gcm ciphers.

At the end of the day I think a vpn is the way to go for my needs. It shotguns all of my remote access needs with one bulletā€¦ not just ha and bi, I can also rdp or samba to windows machines, nas, etcā€¦ anything in my lan.

I am having the same issue where I cannot use the Generic Camera integration for Blue Iris. I think I have narrowed it down to an BI authentication issue. If I set Blue Iris Authentication to anonymous or Non-LAN Only to test, it works just fine. I checked the Blue Iris messages when I set the Blue Iris Authentication to be required on ā€˜All Connectionsā€™ and I receive <my_HA_ip>:AuthFailed. The MJPEG camera setup works with my same secret username and password, so I know it is not that. Anyone solve for authentication problems with Generic Camera and BI?

  - platform: generic
    name: <Camera Name>
    still_image_url: "http://<my_BI_IP:Port>/image/<short_cam_name>"
    stream_source: "http://<my_BI_IP:Port>/h264/<short_cam_name>/temp.m3u8"
    verify_ssl: false
    username: !secret bi_username
    password: !secret bi_password
    authentication: basic

I should add the reason to use the Generic Camera is the new functionality to see your cameras on the Alexa Echo Show. You need to use the stream integration for this to work and as far as I am aware it doesnā€™t work with MJPEG Cameras.

I should also add, in order to see the AuthFailed message in BI, I had to turn on ā€œLog ALL connections, not just loginsā€ in Web Server > Advanced settings.

1 Like

Update:

Turning on BI Web Server > Advanced ā€œUse Secure Session Keys and Login Pageā€ allows Home Assistant to connect, but keeps repeating a login in BI connections but camera doesnā€™t stream in HA. It appears Basic Auth is not working with Generic Camera for BI like it does with MJPEG Camera.

1 Like

is it possible to cast the cameras with this setup? currently I use mqtt but can only cast if authentication is set to non-lan and the anonymous account has to be enables. With the anonymous account enabled the ui3 interface logs in without credentials. So trying to secure my setup but still have ability to cast.

Iā€™ve got this mostly working but with 9 cameras, soon to be 10, it appears some of my cameras donā€™t show the stream in HA. If I limit the picture entities, these cameras can work, so itā€™s not an issue of any specific camera, but something to do with bandwidth maybe? Max simultaneous connections?

How do you display your cameras in lovelace?
I am currently using the custom surveillance-card but I looking for ideas for a better layout.

Were you ever able to get the BI stream working with the Echo Show? Iā€™m able to add the generic camera to Alexa, and I can ask to see it, but after loading ā€œā€¦ Home Assistantā€, for a few seconds, it simply quits. Not sure what can be done at this point.

My Mistake. Fixed - nothing to learn here.

I know with my Hikvision camera, if I make it H265 it does not stream, but H264 does. I believe that this is a restriction in HA.

Anyone having issues with low FPS when using Blueiris mjpeg streams?

Iā€™m only seeing 1-2fps when pulling an mjpeg feed from the server. The server hardware or network is not the issue. Fluid 30fps everywhere else with h264.

2nd day of trying this after exhausting all other free programs (motioneye, ispy, etc). This is miles ahead. After a few hours of tweaking and testing I am impressed. Mqtt working and http commands from ha to switch profiles. Nodered picks up mqtt and does what I need. Always had false alerts with light changes - this is looking promising.

Just found the entire blue iris nvr hacs integration! awesome!

But on the fork AI tool I still get the objects identified outside the mask. I used the mask tool on the AI tool. I assume the coloured in area it is supposed to ignore.
Also no rectangles around the identified objects anymore. Why?

Thanks

I donā€™t know what the AI tool is, but on the standard motion sensor hot spots, the colored area is the area you want monitored. Not a mask that you donā€™t want monitored.