Blue Iris Presence Integration

Sorry if this already exists in some way. I did some searching but couldn’t come up with anything.

BlueIris has it’s own sort of presence detection using geofencing and the mobile app. It works pretty damn well. The drawback is, that in order to work you need the mobile app. This causes issues for me since while I would like my cameras to send alerts when nobody is home, we end up getting alerts whenever we have a family member watching the baby for us. Not a huge inconvenience, but the only way around this is to manually switch to the Home profile when they are there or have them install the BlueIris app. The first option is a bit of an annoyance and the second option is a no-go for a variety of reasons.

I did a little searching, and I have no idea how accurate this is since it was last updated 3 years ago, and found this:

https://github.com/magapp/blueiriscmd

So it appears it is possible to change the active profile using this python script. And since we can do presence detection from the router, nmap, and a variety of other sources presence detection can be done without having people install an app on their phone that gives them access to your cameras.

I have the same use case and have been trying to find a solution without luck. I have a nanny and family watching my kids while I’m out and would like to be able to just hook a Blue Iris profile into an input boolean so I can just toggle the profile along with my home security system on and off. Currently I have to manually turn on the security system in my HA app and in the Blue Iris app when we’re all out of the house. More of a nuisance than anything, but isn’t avoiding nuisances what home automation is all about! Mark another vote for this integration. Given the fantastic support and improvements that both software platforms have, this seems like something that could happen.

1 Like

I figured out a work around to get Blue Iris profile switching integrated with Home Assistant, but you need a Smartthings Hub and the Smartthings-MQTT-Bridge working to set this up properly. There is a Smartthings App called Blue Iris Fusion which allows for profile switching based on mode changes (i.e. Home, Away, etc.) within Smartthings. It works pretty well within Smartthings, but I wanted to pull the integration into HA. To do this, I created a virtual simulated switch in Smartthings and then used the Smartthings App called Switch Changes Mode, which allows you to change your Mode depending on whether the virtual switch is on or off. So in other words, if the switch is on, it changes my Smartthings mode to “away”, which then triggers a certain profile in Blue Iris using the Blue Iris Fusion app. To complete the entire integration, I then pulled the virtual switch into HA and tied it to an input boolean, which turns my entire home security system on and off. It works perfectly so far. If anyone is interested in a more detailed write up, let me know.

That’s awesome. I’m sure there are some people that would be interested in your method.

Unfortunately I am not a SmartThings user so this won’t work for me. :frowning:

Every so often, usually when drinking, I get full of myself and say “You know what, let me sit down and figure this out.”

Then I start reading about creating a platform/component, get confused, get a headache, and go lay down.

1 Like

I’d also love to have this integrated more. Seems like a popular install on in the wild.

I have integrated the changing of the traffic signal based on HA presence detection. When away the system goes green and when home changes back to red.

It uses the above mentioned modified python script which now includes signal control. If interested I can share the config.

1 Like

Yes please do share!

I am using this add on library

I have blue Iris sending motion events to ha and can set profile
image

git is here https://github.com/Vasiley/Home-Assistant-Main/blob/master/packages/blue_iris.yaml

image

I’m new to adding Python scripts to HASS, any chance you could share the bit of your configuration.yaml where this script is configured?

So you would download the blueiris.py to your local HA instance. I am calling a script that is calling a shell_command

Here is the syntax of the shell command:

./home/hass/.homeassistant/scripts/blueiris.py --host 192.168.1.50:80 --user yourusername --password yourpassword --set-profile Away

Just now getting around to trying this out. I see what you’re doing, but it looks like I may not be able to use this method since I’m running hass.io (python does not seem to be available from the command line). And it doesn’t look like this script can parse its args from a dump of JSON data.

Back to the drawing board, I guess.

Damn I am using Hass.io as well and would like to change Blue Iris profiles. Is there any other way?

Finally sat down and got this running. Nice and simple using the blueiris.py and shell commands.

Yes use shell_command

To turn on profile 4

curl ‘http://blue_iris_ip:blue_iris_port/admin?profile=4&lock=2&user=xxxxxx&pw=xxxxx’

To turn off profile 4 change lock=0

Hope this helps

For those of us using the Python script; I’ve noticed that if you just run:

./home/hass/.homeassistant/scripts/blueiris.py --host 192.168.1.50:80 --user yourusername --password yourpassword

It will spit out

Connected to 'UBUNTUSERVER'
Profile 'Home' is active
Schedule 'Default' is active
Signal is green

Is there a way we can use a sensor template to pull those values out of there too?

Thanks. For some reason I thought I couldn’t use shell commands because I was using hass.io. Is that not true? I am ignorant about shell commands and will check the documentation when I get home from work.