Це відео не доступне.
Перепрошуємо.
Blue Iris Motion Detection Alerts in Home Assistant. Blue Iris NVR Add-On.
Вставка
- Опубліковано 14 сер 2024
- Use the Blue Iris NVR add-on along with MQTT in Home Assistant to get and display motion alerts on your dashboard. You'll need HACS and MQTT installed as well. Once you have this integration running, there are so many things you can do in terms of alerting and automation of profiles (if you use those). If you would like more info on any of that, let me know and I'll consider making a follow-up video.
Watch my video on HACS install here: • Home Assistant Basics ...
Discord: / discord
If you would like to support me:
Buy me a beverage: ko-fi.com/most...
Become a patron: / mostlychris
Products I reference in my videos (Contains affiliate links)
www.mostlychri...
www.xsplit.com?ref=chriswest&discount=mostlychri&pp=stripe_affiliate
00:00 Intro
00:32 Install Blue Iris NVR HACS integration
02:12 Install Blue Iris integration
03:43 Configure Blue Iris for MQTT
04:30 Set up camera config to send alerts
07:19 Verify motion alerts in Home Assistant
08:46 Install HACS button-card
09:36 Add dashboard card
12:41 Test motion with new card
13:11 Add picture entity card
14:09 Test picture entity motion
15:00 Wrap up and Subscribe!
DISCLAIMER: Some of the links above take you to affiliate sites that may or may not pay a small commission to me. It doesn't increase the cost to you, but it does help support me in making these videos.
Want to send me something? Send it here!
Mostlychris
24165 IH-10 West
STE 217 #164
San Antonio, TX 78257
For those having issues with getting home assistant to see the motion alerts, I got it to work by removing the spaces in the payload. try using the following format {"type":"&TYPE", "trigger":"ON"}
You can have a space, but only a single space after the colon, a single space after the comma, a single space after the opening brace and a single space before the closing brace.
{ "type": "&TYPE", "trigger": "ON", "ai": "&MEMO" }
Massive help, thanks mate!!
Thank you so much for this. I know the video is 2 years old but just know it is still super useful and relevant to newbies!!! Cheers!
I have to assume you left out a big setup piece as this doesn't work. Maybe there is some significant step getting MQTT setup so that Blue iris talks to it correctly?
Thank you for such a quick, easy and painless way of achieving this task. Subbed as a way of thanks.
You're welcome and thanks for watching and subscribing!
is this only for motion or human detection?
i dont need to know if the leaves are blowing by. only care if it is a person or not. please confirm
thank you very much for your tutorial mostly chris, you are the best 🙂
i completed step by step with your tutorial, but my home assistant camera dont change from "clear" state, may you help me to understand where i wrong?
thank you very much
+1 to this!
Thanks Chris for this video which is good but despite spemding hours on it, I can't get Hpme Assistant to react to the alerts sent altho they are showing in MQTT Explorer. Have tried all the fixes in your comments section but still nothing. Is there any other reason you have come accross since your last post which would stop HA seeing the alerts sent by BI?
Such a clear, well explained video. Thank you!
Great presentation and walkthrough. Sincerely, Thanks
Thank you! Check out my Frigate video I just put up. It could be a replacement for BI for me.
I had to create mqtt sensor in configuration yaml and change mqtt configuration to simple payload "on", otherwise it didn't work. but it can be different home assistant version
Thanks so much for the support! This might help a lot of people who have struggled. Creating the sensor is normal but turinng the simple payload on is probably the key.
Could you share how you created the mqtt sensor in configuration yaml?
One thing I do not understand if you have your camera's on blue iris why even bother with home assistant at all ?
what ip do we put for the mqtt?
How do you get the MQTT message to trigger the binary_sensor in HA. I can see the MQTT message arriving on HA's MQTT server but when it triggers it does not change the binary sensor. I would have thought that I need to create a config in MQTT to trigger a binary_sensor
The state of the binary sensor should be updated to reflect what is being sent via BI and MQTT.
SOLVED: I couldn't see any alerts in the motion binary sensors. I finally found that when triggering the camera from the context menu within BI or from the AI photo analysis tool it passes the Status EXTERNAL which puts these alerts in the External binary sensor. I hope this helps somebody ... make sure you also pass the OFF message or I believe it gets stuck ON and will not accept new alerts until it shuts OFF.
Thanks for the tips!
can i use both frigate and blue iris at the same time ?
Anyone know why the status of the camera in home assistant would change from away to home on an alert instead of clear to motion detected?
Hi Chris, thank you for this super useful video. I really like the way you explain things. Quick question: Is there a way to also push a photo snapshot with MQTT into home assistant? I would like to attach an image to the notification automation i built. Would be awesome. Thanks!
Here is a blueprint that looks like it can do this, as well as other stuff. community.home-assistant.io/t/camera-snapshot-blue-iris-ai-deepstack-input-boolean-notification/285423
@@mostlychris thanks so much!
@@EE-su7mb Welcome.
Thanks for this, Chris. At 3:59, you show the MQTT dialogue box inside Blue Iris. What is the Client ID referring to? Where do I find mine?
The client ID is what is being sent to HA. You need that as BlueIris for the topic so the integration knows what to do with it.
I have followed the instructions and have this I believe almost/mostly working. I am not getting any triggers in HA when I look at the Camera Entities for Motion. I can however wee transactions using MQTT explorer. For each camera (and I have 16) I see confirmation that Motion Trigger on and off are occuring what I assume is properly. I also ran the Self Test within BI MQQT and that returns a lot of things that look correct to me. I just do not see HA recognizing motion inthe camera entities???? Am I missing something?
Can you post some screenshots of your config in my Discord server? It's hard to troubleshoot some issues via YT comments.
Same. Was there a solve?
Hello Chris, I hope you are well. I've been working on this today and have another question: I have setup a clone of one of my cameras in Blue Iris and I was hoping to use it's motion sensor to turn some lights on with Home assistant. My problem is that this clone camera isnot being pickup by the BI NVR intergation. Do you see a reason for this?
I finally answered my own question: The new clone camera is indeed being picked up by the integration, but the integration configuration need to be changed to check this new camera.
Glad I could help, lol. Glad you were able to figure it out.
At 4:03 there is an "server address" when configuring the MQTT server in BlueIris? Is it the IP from BlueIris, HomeAssistant, router or pc server?
This is the IP address of your MQTT server. It is where BI is going to communicate.
Great video, thanks. Is it a Little picky with spaces in payload.
I think you are talking about camera names. I will underscore the spaces and I haven't had an issue.
after playing all day i got blue iris face detection working to unlock a door when i walk up. this was inspired by this video. I'm new to home assistant and yaml code
Great work!
Hi Chris - I’m very new to blue iris and home assistance and I want to install both for my home cameras and home automation. Please do you have any videos for both install and also add cameras to the blue iris
I don't have blue iris specific videos, but there are a lot of them out there. What I do have is this video you are commenting on that shows how to integrate alerting with HA. I think you asked this on Discord as well, right?
Hi Chris, great video. I have set this up as per your guide but just cant get motion picked up by HA. if i use MQTT explorer i can see the below but HA just ignores it. What is HA actually looking for?
blueiris_road_camera1_motion
{
"trigger": "ON"
}
Thanks
Adam.
Make sure that you have set up the fields EXACTLY as mentioned because it won't know what to do if they don't match what it is looking for.
Another great video, thank you. With this procedure I had MQTT working fine when my HASS server had a local address. I now have it configured with an HTTPS duckdns address for remote access via the APP, and now for some reason I can't get the Blue Iris MQTT test to pass. Do I need to do any thing different in the BI MQTT Server configuration? Thanks for your help.
You shouldn't have had to change anything on the BI side of things. Your MQTT should still be on the local IP address. Did you modify they MQTT settings in BI or on HA?
@@mostlychris thank you so much for your response . I don’t know what I did wrong, but it’s working fine now actually with both the local and the duckdns addresses. I love your work, thank you again
@@Lepelot Fantastic! That's the best part, that it's working!
Thank you for this.
Great video, very easy to follow. Is there a way I can set different motion events and have them appear in HA separately? Ie, in BI I have Zone A that triggers only on Person, in Zone B it triggers on all movement. Can HA differentiate those two different events?
Best is to save the cam configuration the load a new cam with that config as a duplicate camera and do diff zones on your main and duplicate cams (with diff names)
Ok, so...how in the world do we actually get the "red" color and not yellow to show up!!? You set it to show red, but it instead was yellow. Never did explain why, or fix it. Mine is doing the same thing...and I can't figure out how to fix that.
Also, once mine goes yellow, it stays yellow. Never goes back. Yet I have the "Reset" set correctly and if I listen to that topic in the MQTT integration, it does come across as
"Type": "MOTION_A",
"trigger": "OFF"
But for some reason, the BI integration and this custom card isn't resetting back from yellow???
Found my issue with the reset message. The payload is VERY picky about case-sensitivity and spacing. I had an upper case "Type" as can be seen above; should have been "type". I also had a space before the colon. Once I fixed those, it started working.
But I still can't figure out the YELLOW color!!
I had a similar question in Discord--was it you?
I need to see your config, preferably in discord where you can post it as a code block.
@mostlychris No, that wasn't me. I don't have a Discord account (don't even know what that is actually!) Everything is working...except the color is still Yellow ;)
I need to see your config.
hi, needs your help .... I'm Building the PC for Blue Iris ... I'm going to connect 5 - 5mp camera and 1- 8mp camera,
what type of Hard Disk is required... which brand and model to go for. I'm planning for an 8 GB
reply as soon as possible I'm waiting to order.
There are a lot of variables to consider. Storage time on your videos is one. If you are recording constantly, make sure you are looking at drives that are rated for full-time video. In my case, I'm using an off the shelf SSD since that computer also does other tasks. It's been running more than a few years on that setup. Since I don't know your specific use case, start here for a discussion on hardware ipcamtalk.com/wiki/choosing-hardware-for-blue-iris/. Here is a drive size calculator: ipcamtalk.com/tools/calculators/hdd/
@@mostlychris what model SSD r u using
I have this WD Blue™ SATA SSD 2.5”/7mm cased
from Western Digital in 500GB size.
It's there a way to create a Lovelace page with all most recent alerts derived from blue iris AI (deepstack)? For instance a snapshot of the most recent person, cat, dog, and car per camera.
This would be similar to the glance cards I mentioned in my latest dashboard video. You need to have the snapshot URL from BI and then specify that, along with the sensor, in the gland card.
@@mostlychris i managed to do it using mqtt alerts on blueiris and node-red to store a snapshot for each filter on alert based on what triggered it (person, car, dog, etc)
GREAT VIDEO! I didn't know you can use these variables. Having a bit of a problem with the MQTT messages, sometimes it arrives and somtimes not (even though I can see in the logs in BI that motion was triggered). you mentioned that you can track the MQTT with some tool? Can you please give more details about that? Thanks!!
Found it :) amazing tool! I can see the messages but still.. the motion sensor doesn't react accordingly to the messages. do I need to decalre the topic from BI somewhere in HA?
Need a bit more detail. Are you using MQTT explorer to watch the traffic? You do have to have a very specific topic for the integration to pick up the MQTT messages. What is the topic you are sending on alert and on clear?
i have blue iris in hacs and i have restarted but it wont show up under config>intergrations> add
i had to hard rest the VM then it showed
Glad you got it working. The old control alt delete, lol.
Thanks for the tutorial. Have you had a look at the integrated deepstack yet? Very neat having it built into blueiris now.
I am running that and have been for a couple of weeks now. It works well but I am still trying to understand what the face recognition does. I have a few faces saved but they don't appear to affect anything. Probably a setting somewhere that I haven't gotten correct.
@@mostlychris I believe there is a way to send the detected objects via a mqtt message, which would be neat. Using &MEMO I think but I will have a crack at it this weekend
I added &MEMO to an MQTT alert in Blue Iris and this is what is coming across:
{
"type": "person:87%",
"trigger": "ON"
}
It might send the face ID if it recognize someone but that's the part I haven't figured out yet--where it actually tells me it recognizes someone.
@@mostlychris from the forums: "Keep in mind the current implementation of Deepstack runs in series, not in parallel. So if you have both activated in Deepstack, Deepstack will alert on person detection first and never alert on facial recognition. Most people would probably think Deepstack would first discover the person and then proceed to recognize the face, but this does not seem to be the case." - I would test whether you can enable both but place the face names prior to the 'person' on the AI settings of each camera. That might fix the problem.
I put face names from the known pictures. Doesn't seem to show me that it detected them. Just shows person. I'll keep digging. I don't really need it to identify people at this point but eventually I could use that.
Do you have a video on how to setup MQTT?
Yes. Search through my videos for MQTT. There is one stand alone and some others that talk about MQTT.
Unfortunately i can't get it working.
I follow all the steps but when testing if motion alert comes to homeassistant it say's
not detected.
When i test the configuration blueiris to mqtt this test says all right
In the alert section / on alert i filled in at mqtt topic Blueiris/&Kantoor/Status where kantoor is the cameraname
For the following i'm not 100% sure i did it right.
On post payload i did { "type": "&TYPE", "trigger": "ON" }
On reset i did { "type": "&TYPE", "trigger": "OFF" }
Has anyone an idea of is anyone willing to help me with this.
If anyone is willing to help me then a can eventualy give acces by teamviewer.
Using something like MQTT explorer, can you see the BI topics and traffic showing up in your MQTT broker?
I'm not able to get it to work either. Same situation as you. I installed mqqt explorer and home assistant is indeed receiving the mqqt messages from Blue Iris, but the cameras never change to "detected". Always stay clear. Disappointing for sure. Spent the better part of a day on it, but it appears not to work for a lot of people.
After removing the Blue Iris integration and re-adding it and NOT changing any of the entity names, it is working for me. I typically simplify entity names in HA to make them easier to find, which I had done for my cameras. Getting back to the default names did the trick. Not sure why it matters when everything else about the cameras worked with the different entity names, but now that it's working I'll leave it alone!
Can I let Blue Iris run on a Proxmox VM ?
Blue Iris only runs on Windows. Doing a quick search, there are people running BI successfully in Proxmox with a Windows VM. Make sure to load the Proxmox virt IO drivers for better performance (according to reddit).
Very interesting. I also use use blue iris.
Nice. I love the software. I just starting playing with Deepstack yesterday and it looks quite promising as an AI object detection platform. I'm currently using Sentry AI for that but Deepstack will keep it all local.
@@mostlychris I guess the new Required AI objects and Skip with will be useful for alerts(so you can record if a cat is detected, but only show alert when a person is detected)
I saw that on a recent update. I'm torn between not alerting for family and everyone else, or continuing to alert for all faces so I can catch that random event when my kids do the unexpected and I want to see what happened.