Blueiris camera's in HASS

Glad it’s working for you. If you’re interested I’ve now added a day, time and date stamp to each email, as below.

  - alias: Send Email
    service: notify.Email_Notification
    data:
      title: 'Front Gate Opened '
      message: 'Sent by Home Assistant, {{now().strftime("%H:%M:%S %A %d-%m-%Y")}}'

For anyone like me who gets a heap of errors in their “home-assistant.log” file after adding Blue Iris Cameras into their setup I’ve found the below addition to “configuration.yaml” file to hide all the warnings when the camera http fails to parse.

# Disable WARNINGS in log for Cameras. Refer here: https://home-assistant.io/components/logger/
logger:
  default: warn #The default level & above to be logged
  logs:
    requests.packages.urllib3.connectionpool: error #for this item anything below error will not be logged

Have you found a way to give this binary sensor a friendly name? I have a page on my front end that displays the status of all my motion sensors but adding a friendly name in the customize section doesn’t seem to work since the sensor isn’t loading until after HASS boots up. It would be great to find a way to make that work.

I just tested this. Not sure if its the best way but you can send the Friendly name in the post command

so for one of my cameras the post looks like this.

{"attributes": {"friendly_name": "Driveway Camera"}, "state": "on"}

you also need to update the post data as well otherwise it will erase the friendly name attribute

{"attributes": {"friendly_name": "Driveway Camera"}, "state": "off"}

2 Likes

Thanks, I’ll try that. Cheers!

Just posted a request that might be of interest. Hope someone might know how to do this.

I’m trying to setup iOS notifications on motion events that will embed a jpg of the event. Motion events successfully trigger a notification to the iOS app, however, I can’t figure out the best way to deal with getting the relevant jpg file into a state where HASS can grab it and use it for the notification. Blue Iris is creating jpgs with the default file format (&CAM.%Y%m%d_%H%M%S) on each event trigger and storing them to the NEW folder.

What would be the best method of getting these to HASS and allowing it to use the file in the notification? I’m concerned that with the current file naming, HASS would need to know the exact second the file was created to link to the file and it would fail often. Any input?

Recently I had some people around my house trying to break in. All caught nicely with Blue Iris.

This made me think; what happens with these video’s when they would actually be succesfull, break in and steal my server…

To overcome this I now have a shell command that triggers a backup of BI video’s to Google drive when alarm is triggered. Basic steps can be found here. If more people interested I can write down how I did it in HASS in more detail.

1 Like

I’m certainly interested if you have the time to share.

1 Like

I’ll give it a try:

  1. On the PC running BI you need to install Eventghost
  2. When you now do stuff on your PC you will actually see most of that logged in the window on the left
  3. Now install Autoremote plugin into Eventghost. We need this plugin to catch the calls from HASS. The plugin is actually made for linking with mobile phones but you can ignore that. As far as I remember there was no need to setup a phone in the autoremote plugin. If you have to just put in a dummy.
  4. It might be that you need to open your windows firewall to the ports mentioned in the plugin
  5. Now you need to test if Eventghost received the calls! Go to your PI you are running HASS on, login via putty and make a call to your BI servers. For instance "curl -m 1 "http://IP_of_BIserver:port/?message=test"
  6. you should receive that in the logging window of eventghost. Don’t progress before you have this working. If it works all the basics are in order!
  7. Create a batch file on your windows machine. I only have one line in that: xcopy "F:\BlueIris\New" "F:\Google Drive\BackupBIVideo" /c /d /e /h /i /k /q /r /s /y /j /z . keep the parameters the same but of course change the locations to the ones you have/want to use.
  8. Now setup the macro in Eventghost. Pls also check the post here for that. It should catch your ‘alarm’ message and then execute a batch script (the one from the step above). There are many manuals to be found how to do this so will nor repeat here.
  9. Now add to your configuration.yaml in hass a shell command (the forum does now allow me to format correctly , so the ** are spaces):
    shell_command:
    **backup_bivideo: curl -m 1 http://192.168.1.40:1818/?message=alarm
  10. Then in your automation that detects alarm add under actions:
    service: shell_command.backup_bivideo

And that is it.

2 Likes

Would really love some help on this one. I have motion detection enabled and have ticked “audio” also in Blue Iris. I’d really love to simply trigger an API call to Hass that sends a message to all notify candidates saying “Sound detected in the bedroom”. Is it possible to trigger a Hass push notification through the api and pass the message? If so can anyone advise the call I’d need to make from Blue iris? Many thanks in advance, and apologies in advance for my terrible case of the newbs.

When I try this, I get: “Authorization required”.

I know I’m using the correct user and password because this command does work:

http://192.168.86.61:81/image/mbr?user=admin&pw=PASS

Any ideas?

Thanks,

Tom

Not sure, are you inside the LAN? Maybe goto blue iris and turn off authentication temporarily or modify security settings so they’re less strict for you to debug.

Hi am having the same problem.
Even if i turn off the Web Server connections.

When i run this command http://blueirisip:81/admin?camera=Front1&trigger&user=admin&pw=1245678943
(But i put in my own IP/User/Pass.)

And I still get: “Authorization required”.

Ok now working with the Trigger
.You have to untick the `

Use secure session keys and login page

`

1 Like

Yup - that did it for me too. Thanks for figuring it out and posting!

I tried sending the link from HA server to BI server and i am getting proper response but i am not seeing anything in eventghost. I can see rest of the events fine in EG. Any ideas

Hi,

When is says: "curl -m 1 “http://IP_of_BIserver:port/?message=test” I mean the server that runs BI and the port the number you have set in autoremote (in my case 1818, i believe this was defaut). You also need to make sure that you have your windows firewall open for this port.

1 Like

How could be the code to count the number of triggers per 24h (per single camera)?