Blue Iris Integration Tutorial

@tbar05 Try optimizing

1 Like

that link didnt work… but i have optimized my system. my 6 cameras use less than 10% cpu generally so i have no issue there. it just seems to take a long time to either fire the trigger, or for home assistant to pick it up so im not sure how anyone could use the mqtt motion event to turn on a light for example since the delay is so large

How much of a delay are you experiencing?

anywhere from 45-75 seconds from the time i walk in front of the camera to it registering motion in HA

I want to run BI with a 7i7BNH Intel NUC, the machine has 4 gb of ram but I’m planning to get more asap. Would it work if I run it in Ubuntu with wine? Or maybe proxmox? I only need 4 cameras, 5mpx.

Thanks guys…

I would probably add recommended web server streaming settings tweaks to reduce compression and video quality.
Settings > Web Server > Advanced > Encoder Profiles - Configure… > Settings to change below

  • Quality % - Change this to what you feel comfortable with
  • Rate Control - Uncheck limit bitrate (for LAN streaming)
  • Zero frame latency - Uncheck
  • Resize output frame resolution - Uncheck

If you add more RAM, then the hardware would be sufficient to run BlueIris, but I would run it in a VM, not using Wine, otherwise I can guarantee you that you will run into a lot of issues just trying to get it to start. Performance will also be affected greatly, since Wine cannot pass through hardware directly.

I don’t like the fact that I have to run windows with blue iris, so I’m planning to run windows in a VM and see if that works for me. Or maybe run windows natively and Linux in a VM. I don’t know …

I’m guessing it’d be a mess to run in Wine, especially since the configuration is in the Windows registry. IMO you’ll need to run Windows on hardware or virtual if you want to use BI. Anything else would just be asking for problems down the road.

Something not totally related, is there a way to trigger a blueiris recording via Hassio when a Hassio sensor is triggered?

Might be user error here but I can’t get the all cameras cycle to…cycle cameras.

It just displays them exactly as the all cameras stream camera.

Anyone know why?

Anyone knows how to create a trigger if a squirrel is detected? I want to blast my irrigation if my camera detects a squirrel on my lawn :slight_smile:

1 Like

https://community.home-assistant.io/t/integrating-blue-iris-pushover-node-red-and-amazon-rekognition/

:slight_smile:

I am just playing with this now. Does anyone know how to change Blue Iris logging so the Home Assistant login is not logged. Currently I am using it with the IP Address entered as not needing a password, but every 2 seconds I see an entry for the homeassistant PC connecting to Blue Iris and it is making it hard to monitor other connections.

@ffm777
Intel QuickSync works great if you still havent tried it. Best if you have the machine dedicated to Blue Iris with a Core i5 NUC.
That said, depending on cameras and makign sure you use direct to disc recording, your CPU will stay low without GPU passthrough.
I run ProxMox with Win10 VM for Blue Iris on a Core i7-4790, giving the VM 8 cores (4 cores hyperthreaded = 8 vCores) and 16GB Ram. I use 6x Reolink RLC-520 (5mp) and CPU usage on the VM averages about 35% with no GPU passthrough.

@sleeepy2
Did you solve your CPU usage issue? I think it could be related to streaming a mjpeg stream and BI doing decoding stuff, but not sure.

@brendan sort of, I bought a new PC :laughing: It is used mostly for Blue Iris and my plex server so I haven’t noticed any issues.

ok, I’ve been fighting with this reading everything I can find, I can’t get it to work.

Add the mqtt add-on - done
add user - done
ass integration - done

Blueiris - enable mqtt
Client ID:Blueiris
Server address 192.168.0.130 port 1883
login: username
pass: password

mqtt topic: Blueiris/binary_sensor/driveway1hd_motion/state
payload: on

hassio
‘’’
binary_sensor:

  • platform: mqtt
    name: Driveway
    state_topic: Blueiris/binary_sensor/driveway1hd_motion/state
    payload_on: on
    payload_off: off
    device_class: motion
    ‘’’

if I look at the mqtt add-on log it reads
1593986340: New client connected from 192.168.0.153 as Blueiris (p1, c1, k20, u’mqevans’).
1593986386: Client auto-19015A2E-40CF-A1A3-7F25-4689753E53AE disconnected.
1593986403: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1593986404: New client connected from 172.30.32.1 as auto-9EC1944D-3270-3B1E-96C1-B9C8C7E723F9 (p2, c1, k60, u’homeassistant’).
1593986659: Client auto-9EC1944D-3270-3B1E-96C1-B9C8C7E723F9 disconnected.
1593986678: New connection from 172.30.32.1 on port 1883.
1593986678: New client connected from 172.30.32.1 as auto-0DBA2C24-A598-C14A-6A0F-70ADAAE3F1EA (p2, c1, k60, u’homeassistant’).

yet it doesn’t show a alert in homeassistant when the motion is triggered

I’m so lost, any help

Use MQTT Explorer on your laptop to connect to your mqtt broker (server).
It’ll show you all the pub/sub traffic. Look for Blue Iris activity when the camera detects motion.
In my working setup, payload_on is configured "ON", not lower-case "on"

binary_sensor:
  - platform: mqtt
    name: "cam_drvwy_motion"
    state_topic: blue_iris/binary_sensor/cam_drvwy_motion/state
    payload_on: "ON"
    payload_off: "OFF"
    qos: 2
    device_class: motion

I changed mine to match yours in both blueiris and home-assistant.
Got MQTT Explorer running Topic : blue_iris/binary_sensor/driveway1hd_motion/state

it switches from OFF to ON with motion as the camera sees it. - To me blue iris is sending out the right signals. I has to be a homeassistant issues at this point

Is there something I’m missing setting up the broker.
goto ad-ons install Mosquitto broker
goto user add new mq user and pass
goto integrations add MQTT
add binary_sensor: to config.yaml
restart

do I need to config MQTT in integrations, it seems like what I have should work at this point

MW

Chris, your test proves BI is working correctly with your mqtt broker. Your broker is OK because your laptop running Mqtt Explorer is seeing the ON / OFF state changes.
To check if HA is able to see the ON / OFF state changes, go to
Developer Tools > MQTT
in Listen to a topic > Topic to subscribe to
enter: blue_iris/binary_sensor/#
And click START LISTENING
# is a wildcard so HA will print any mqtt messages it sees that start with blue_iris/binary_sensor/
When your camera has motion, check if there’s any output (ON/OFF state changes) and also verify Mqtt Explorer sees the ON / OFF for the same motion event.
Here’s my test:

1 Like