Blue Iris Integration Tutorial

Hi @jcuccia, I published a custom component few months ago for BI, you can check it in the following link:

I moved the repo to GitHub:

Basically it provides you an integration to the BI to all camera, creates binary sensors for each camera for connectivity and motion (via MQTT) and arm / disarm based on profiles without the need to add command line / scripts

9 Likes

Ha! That’s what I get for posting before reading the whole thread.

1 Like

Will this integration allow me to setup automation such as camera ir and brightness control?

Thanks for the write up @TaperCrimp.

Does anyone know if it is possible to trigger a different MQTT message for each different motion zone? e.g., so as to have a binary sensor for the porch, another for the driveway, and so on.

Yes, since you configure each camera’s alerts separately. Using your driveway as an example, have BI send something like this:

When triggered:   
   MQTT topic: blueiris/driveway/motion
   Post/payload: on
Check Alert again when trigger is reset
   MQTT topic: blueiris/driveway/motion
   Post/payload: off

then in HASS:

binary_sensor:
  - platform: mqtt
    name: "Motion Driveway"
    state_topic: "blueiris/driveway/motion"
    payload_on: "on"
    payload_off: "off"
1 Like

Thanks, but I was looking to configure alerts separately for each unique zone. e.g., single camera, but 7 different alert (MQTT) configs for the 7 different zones. Since my posting I’d read that technically you can achieve this by duplicating your single camera 6 additional times (and hiding them), but it would be nice if a future Blue Iris release enhances the customization ability here. I should be able to change the MQTT payload to match the specific triggering zone involved (or they should at least add a @ZONE type GV that you can pass into the MQTT payload)

Thank you for this,

I followed your instructions and have all 4 of my cameras setup on a Camera Tab on Lovelace as picture entities. When you click on the Camera tab my PC that runs Blue Iris constantly makes the sound when someone logs in to a camera on BI. The camera images are updating every few seconds. Is it possible to adjust the time between the refreshes to stop this?

Don’t know the answer to that. Sorry.

In Blue Iris: Settings → Users → Your Account → Edit → Uncheck “On login play sound”.

Perfect !

Thank you. I couldn’t get the cameras to work using the username & password in the config file so I used the option above that allows only the IP Address of my HA box to log in. The Admin account is being used so I unchecked the “On login play sound” on that account

Is there a way to push a screenshot of the latest triggered camera? For instance I have Hassio in Kiosk mode on my tablet, is there a way to have a screenshot popup automatically when I specific camera is triggered?

You could do something similar to my other thread. Instead you’d just use a Call Service node like this:

The Data section has this:
{"filename":"/config/www/tensorflow/mailbox_fyc.jpg"}

I then use that to send it via a Pushover alert. The flow sends a snapshot of my front yard cam if anyone opens the mailbox.

You see anything wrong? I cant get either camera working…

image

image

That looks correct to me. What does it say in the logs for Home Assistant and Blue Iris?

Not sure what version of Blue Iris you are runnning, but the help file in mine says you need the /video.mjpg at the end of the url like:
http://192.168.1.100:81/mjpg/Cam1/video.mjpg

This works for me, but sadly only when on my home network…the streaming falls waaaaay behind when I switch to my cell connection outside of the house.
Pretty sure that is just my ISP though.

I got it work

Question,

With MQTT can we push to blue iris to change schedule?

I want in HA if everyone is gone then set up notifications. If home turn off notifications.

I use curl.

Here’s the automation:

  - id: blueiris_profile_2
    alias: Blue Iris Profile 2
    trigger:
      platform: state
      entity_id: binary_sensor.people_home
      from: 'on'
      to: 'off'
    action:
      - service: switch.turn_on
        entity_id: switch.blue_iris

  - id: blueiris_profile_1
    alias: Blue Iris Profile 1
    trigger:
      platform: state
      entity_id: binary_sensor.people_home
      from: 'off'
      to: 'on'
    action:
      - service: switch.turn_off
        entity_id: switch.blue_iris

And the command line switch:

switches:
  blue_iris:
    command_on: '/usr/bin/curl -X GET "http://a.b.c.d:8081/admin?profile=2&lock=2"'
    command_off: '/usr/bin/curl -X GET "http://a.b.c.d:8081/admin?profile=1&lock=1"'
    friendly_name: Blue Iris

Profile 2 does the notifications.

Hope this helps.

– John

2 Likes

Is anyone else havijng trouble with MQTT >> HA from Blue Iris 5?

@HITChris Sorry, not using MQTT with BI. Is the rest of the ‘integration’ still working after the upgrade to V5?

1 Like