Blue Iris Motion Detection Alerts in Home Assistant. Blue Iris NVR Add-On.

Поделиться
HTML-код
  • Опубликовано: 6 авг 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/mostlychris
    Become a patron: / mostlychris
    Products I reference in my videos (Contains affiliate links)
    www.mostlychris.com/my-smart-...
    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
  • ХоббиХобби

Комментарии • 93

  • @sygad1
    @sygad1 2 года назад +3

    Thank you for such a quick, easy and painless way of achieving this task. Subbed as a way of thanks.

    • @mostlychris
      @mostlychris  2 года назад +1

      You're welcome and thanks for watching and subscribing!

  • @mista901895
    @mista901895 5 месяцев назад +2

    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"}

    • @Tman317
      @Tman317 3 месяца назад

      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" }

    • @tikfa97
      @tikfa97 4 дня назад

      Massive help, thanks mate!!

  • @tinman1010101
    @tinman1010101 2 месяца назад

    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!

  • @azorecalz6322
    @azorecalz6322 10 месяцев назад

    Such a clear, well explained video. Thank you!

  • @jimdavis3749
    @jimdavis3749 2 года назад +1

    Great presentation and walkthrough. Sincerely, Thanks

    • @mostlychris
      @mostlychris  2 года назад

      Thank you! Check out my Frigate video I just put up. It could be a replacement for BI for me.

  • @jaredheath6350
    @jaredheath6350 2 месяца назад +1

    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?

  • @user-lc7wd8gn2y
    @user-lc7wd8gn2y 2 года назад +5

    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

  • @gsethi2003
    @gsethi2003 Год назад +1

    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?

  • @tonilundin
    @tonilundin 3 года назад +1

    Great video, thanks. Is it a Little picky with spaces in payload.

    • @mostlychris
      @mostlychris  3 года назад

      I think you are talking about camera names. I will underscore the spaces and I haven't had an issue.

  • @EE-su7mb
    @EE-su7mb 2 года назад +2

    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!

    • @mostlychris
      @mostlychris  2 года назад +2

      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

    • @EE-su7mb
      @EE-su7mb 2 года назад +1

      @@mostlychris thanks so much!

    • @mostlychris
      @mostlychris  2 года назад

      @@EE-su7mb Welcome.

  • @octoparrot36
    @octoparrot36 Год назад

    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?

    • @mostlychris
      @mostlychris  Год назад

      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.

  • @adamfrade5640
    @adamfrade5640 Год назад

    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?

    • @NicholasNotestine
      @NicholasNotestine Год назад

      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)

  • @Shadythedrifter
    @Shadythedrifter 2 месяца назад +1

    what ip do we put for the mqtt?

  • @MAD20248
    @MAD20248 Месяц назад

    can i use both frigate and blue iris at the same time ?

  • @chainreaction481
    @chainreaction481 11 месяцев назад

    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?

  • @timg2973
    @timg2973 2 года назад

    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

  • @marvinmensah2956
    @marvinmensah2956 2 года назад

    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

    • @mostlychris
      @mostlychris  2 года назад

      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?

  • @user-iw8cq4fv4q
    @user-iw8cq4fv4q 3 года назад

    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!!

    • @user-iw8cq4fv4q
      @user-iw8cq4fv4q 3 года назад

      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?

    • @mostlychris
      @mostlychris  3 года назад

      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?

  • @adamholley8359
    @adamholley8359 2 года назад

    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.

    • @mostlychris
      @mostlychris  2 года назад

      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.

  • @Lepelot
    @Lepelot 3 года назад +1

    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.

    • @mostlychris
      @mostlychris  3 года назад

      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?

    • @Lepelot
      @Lepelot 3 года назад

      @@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

    • @mostlychris
      @mostlychris  3 года назад

      @@Lepelot Fantastic! That's the best part, that it's working!

  • @simoneatough6391
    @simoneatough6391 3 года назад

    Thanks for the tutorial. Have you had a look at the integrated deepstack yet? Very neat having it built into blueiris now.

    • @mostlychris
      @mostlychris  3 года назад

      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.

    • @simoneatough6391
      @simoneatough6391 3 года назад

      @@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

    • @mostlychris
      @mostlychris  3 года назад +1

      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.

    • @shalmharold5491
      @shalmharold5491 3 года назад

      @@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.

    • @mostlychris
      @mostlychris  3 года назад

      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.

  • @guyaldrich5878
    @guyaldrich5878 6 месяцев назад

    One thing I do not understand if you have your camera's on blue iris why even bother with home assistant at all ?

  • @michaelivanov3329
    @michaelivanov3329 Год назад +2

    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

    • @mostlychris
      @mostlychris  Год назад

      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.

    • @danduncan7033
      @danduncan7033 Год назад

      Could you share how you created the mqtt sensor in configuration yaml?

  • @Lepelot
    @Lepelot 2 года назад +1

    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?

    • @Lepelot
      @Lepelot 2 года назад

      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.

    • @mostlychris
      @mostlychris  2 года назад

      Glad I could help, lol. Glad you were able to figure it out.

  • @MattHyne
    @MattHyne Год назад +1

    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

    • @mostlychris
      @mostlychris  Год назад

      The state of the binary sensor should be updated to reflect what is being sent via BI and MQTT.

  • @GJHuman
    @GJHuman 2 года назад

    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?

    • @mostlychris
      @mostlychris  2 года назад

      This is the IP address of your MQTT server. It is where BI is going to communicate.

  • @RonenLin
    @RonenLin 2 года назад

    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.

    • @mostlychris
      @mostlychris  2 года назад

      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.

    • @RonenLin
      @RonenLin 2 года назад +2

      @@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)

  • @bugsysiegals
    @bugsysiegals 2 года назад +1

    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.

  • @johnscanlon9813
    @johnscanlon9813 2 года назад

    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?

    • @mostlychris
      @mostlychris  2 года назад

      Can you post some screenshots of your config in my Discord server? It's hard to troubleshoot some issues via YT comments.

    • @NicholasNotestine
      @NicholasNotestine Год назад +1

      Same. Was there a solve?

  • @wantafastz28
    @wantafastz28 Год назад +1

    Thank you for this.

  • @teslabolt007
    @teslabolt007 2 года назад

    Do you have a video on how to setup MQTT?

    • @mostlychris
      @mostlychris  2 года назад +1

      Yes. Search through my videos for MQTT. There is one stand alone and some others that talk about MQTT.

  • @jagadeeshv2763
    @jagadeeshv2763 3 года назад

    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.

    • @mostlychris
      @mostlychris  3 года назад +1

      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/

    • @jagadeeshv2763
      @jagadeeshv2763 3 года назад

      @@mostlychris what model SSD r u using

    • @mostlychris
      @mostlychris  3 года назад +1

      I have this WD Blue™ SATA SSD 2.5”/7mm cased
      from Western Digital in 500GB size.

  • @johanwolbink1516
    @johanwolbink1516 2 года назад

    Can I let Blue Iris run on a Proxmox VM ?

    • @mostlychris
      @mostlychris  2 года назад +1

      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).

  • @timg2973
    @timg2973 2 года назад

    i have blue iris in hacs and i have restarted but it wont show up under config>intergrations> add

    • @timg2973
      @timg2973 2 года назад

      i had to hard rest the VM then it showed

    • @mostlychris
      @mostlychris  2 года назад

      Glad you got it working. The old control alt delete, lol.

  • @jimmusson
    @jimmusson 3 года назад

    Very interesting. I also use use blue iris.

    • @mostlychris
      @mostlychris  3 года назад

      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.

    • @Gullfrode
      @Gullfrode 3 года назад

      @@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)

    • @mostlychris
      @mostlychris  3 года назад

      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.

  • @Tman317
    @Tman317 2 года назад

    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???

    • @Tman317
      @Tman317 2 года назад

      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!!

    • @mostlychris
      @mostlychris  2 года назад

      I had a similar question in Discord--was it you?

    • @mostlychris
      @mostlychris  2 года назад

      I need to see your config, preferably in discord where you can post it as a code block.

    • @Tman317
      @Tman317 2 года назад

      @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 ;)

    • @mostlychris
      @mostlychris  2 года назад

      I need to see your config.

  • @ernstrietbergen1876
    @ernstrietbergen1876 2 года назад

    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.

    • @mostlychris
      @mostlychris  2 года назад

      Using something like MQTT explorer, can you see the BI topics and traffic showing up in your MQTT broker?

    • @blueiris5735
      @blueiris5735 Год назад

      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.

    • @blueiris5735
      @blueiris5735 Год назад

      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!