Custom component - BlueIris

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/cryptography/fernet.py", line 87, in _get_unverified_token_data
    data = base64.urlsafe_b64decode(token)
  File "/usr/local/lib/python3.8/base64.py", line 133, in urlsafe_b64decode
    return b64decode(s)
  File "/usr/local/lib/python3.8/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

Will add it to the list of errors,
Can you please check if removing the integration and readding solves it?

Thanks

Remove, Reinstalled, Restarted

Same error

Thanks for help :slight_smile:

Will check it later, thanks for the update

I just installed this today and Iā€™m amazed. I just wish I had known about this before I manually configured every camera :slight_smile:

Only one thing that didnā€™t work out of the box: Motion sensors.

I got binary_sensors automatically created for each camera (like binary_sensor.blueiris_entre_motion), but they never change status.

My previously created MQTT-sensors for the same cameras still work fine, but Iā€™d like to get rid of them and just use the Custom component/Integration.

So I assume Iā€™ve done something wrong, but I canā€™t figure out what.

Any suggestions?

1 Like

It took me some digging as well, but they are working for me nicely now.

1 Like

Super, thanks a lot. Works like a charm now.

1 Like

Been running this without any issues for couple weeks now. Started to use BI for some triggering via MQTT/Nodered. Listening for the topic, HA seeā€™s the following, but I dont show any activity on the sensor created. Anyone have any suggestions?

Thanks!

 
Message 7 received on BlueIris/frontdoorhd/Status at 7:28 PM:
{
    "type": "EXTERNAL",
    "trigger": "OFF"
}
QoS: 0 - Retain: false
Message 6 received on BlueIris/frontdoorhd/Status at 7:28 PM:
{
    "type": "EXTERNAL",
    "trigger": "ON"
}
QoS: 0 - Retain: false

Iā€™m unable to pull smooth h264 or MJPEG playback using this addon and have no idea why. Have overkill hardware on my HA/Blue Iris server with only 1-2% usage in HA at peak. HA is reporting 20FPS playback, but it looks more like 2-3 FPS.

Any ideas?

For those interested I tweaked the MQTT setup for alerts from the blueiris-server.md docs and swapped out { "type": "&TYPE", "trigger": "ON" } with { "type": "MOTION", "trigger": "ON" } to treat all alerts as motion alerts.

Iā€™m using https://github.com/VorlonCD/bi-aidetection and it lets me treat events triggered by that system as motion events.

I stupidities deleted the component in the deps (i think it was) as this had stopped working a while ago and I figured Iā€™d start fresh by re-adding it. Not so. Been looking for the repo to add it via the custom, but canā€™t find it.
Looking for suggestions . . .

Tia

The component is in the default hacs-installation, so if you have HACS installed just click the plus sign in the lower corner, search for the component and readd it. Or what are you searching for?

I figured it out. I tracked down the page that had all the default integrations, grabbed the blue iris integration folder from there and added it back to the custom components folder, restarted and Iā€™m back on track.

Thanks for the response.

1 Like

Just looking at this now as I had been making sure Blue Iris 5 was working well before moving it into HA.
Just a couple of notes.
BI 5 seems to have watchdog bugs, it sends the MQTT data on loss of signal, but does not send the data on signal restoration. Seems to be a BI 5 bug. Anyone else found that?
Also, in BI 5 the MQTT Test button no longer crashes BI and works properly :). Not sure if the documentation needs updating a little but on the BI setup.
I have found that even if the cameras are physically disconnected that the Connectivity will still show connected (even after BI has sent the Connectivity OFF MQTT data).
Any advice?

Edit: Also, is there a way to get audio from the camera into Home Assistant? Reolink Integration does that, but 2k (5MP) cameras have a 10 second latency and the 4K cameras never load with that integration.

hi all,

Over the last few weeks BlueIris started causing issues, it began with the motion sensors that stoped working after adding AI DeepStack capabilities and only after reseting the checkbox to prevent blocking events it started working again (for those of you still have that issue),
the next version caused massive memory leak up until the application crashed (took 2 hours in 32GB environment).

I decided to give a try for Shinobi Video which is free for non-commercial usgae, so far, for 2 weeks it works amazing, including person detection and lots of other goodies.

Iā€™ve created custom component for that, available at:
HA Forum
GitHub

Therefore, Iā€™m not activly maintaining that integration, you can suggest PR and if it was tested I will approve it, if someone would like to join as maintainer up until BI will get more stable (renewed the license a month ago) feel free to contact me.

thanks

After some of the Deepstack"trouble" with BI it runs smoothly again since a week, at least at my side.
Maybe you can give it a try again some time in the future, I really enjoyed your integration and hope it will be maintained in the future.
However, thanks so far for this integration and all your work you have put in it!

@bar I canā€™t say thank you enough. Itā€™s because of this integration that I decided to make the switch to HA.

Did run into something last night. A bit of a wish list item but the behavior is odd.

I only want the Blue Iris Server entity with Profiles (switches) and schedules to show in HA. I donā€™t want any of the other components (cameras, audio, dio, motion etc).
Initially this appears to work if I uncheck all of the components except for the 4 Profiles and 1 schedule I want. I only see Blue Iris Server as the 1 device with 5 entities.
The problem is that the entities all get disabled ā€œby the integrationā€ at this point.

If I go back to Configure and reset the components to default so everything is brought in, my profiles and schedule are back enabled.

Thoughts?

Thank you for this integration! The motion detection support is super useful, and bring updating pics into HA is also really useful.

A question about PTZ cameras. Is there a way for HA to have a continually updated sensor that indicates which preset the camera is set to? I have a PTZ camera that is supposed to return to itā€™s home position after 10 minutes of use, but sometimes fails to do this.

I think I can use a curl command to command the camera to move to a preset (though having that built in to this integration would be great), but canā€™t figure out how to pull in the state of where the PTZ camera and have it be acted on by HA.

Thx!
mike

I know this component is no longer maintained but Iā€™m so glad I found it! Compared to how I previously had my cameras set up this is so much better - so many options and much tighter integration.

1 Like

I couldnā€™t agree more. I just found this and itā€™s awesome! So much simpler than the camera component and support for H264 as well. This is really the best way to use BI and HA.