elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

Trouble setting up motion alerts #106

Open neldonado opened 3 years ago

neldonado commented 3 years ago

I can't seem to get motion alerts to work. I have my MQTT server setup, when I do the test its all connected to blue iris, but when I go to home assistant the automatically created entities always say "clear". How do I know what the topic should be for my blue iris alerts?

chump1039 commented 3 years ago

I too am having problems gettin motion alerts to work. I recently switched from BI v4 to v5, and overhauled my BI system to use deepstack. In v4 i was detecting motion in BI and sending notifications via text and email in BI, I switched to having home assistant send most of my notifications now. Is it because the motion events are now not originating in BI? My process now is 1. initial motion detected by blue iris on low res stream, 2. image processed by deepstack 3. deepstack triggers recording on HD stream.

Everything seems to be working as expected except for the motion binary sensors; they always say clear. I went through the full BI and HA configuration steps outlined here on github, but I still see no motion. I can see the MQTT messages coming through successfully when the HD cams are triggered... type: EXTERNAL, trigger: ON

elad-bar commented 3 years ago

In case you are using the AI, please make sure that you always send triggers, regardless the threshold, in addition, can you please post the MQTT message and topic?

thanks

ABnSultan commented 3 years ago

Same issue, I'm supposed to configure something in blue iris to send motion alert to HA? it always says clear in HA and the motion trigger for recording in Blue Iris is on

peterw35 commented 3 years ago

Hi @elad-bar just giving you the info you asked.

In Blue Iris, I have set MQTT topic to: "BlueIris/&CAM/Status" Payload is: "{ "type": "&TYPE", "trigger": "ON" }"

MQTT listener in HA receives the topic as follow: topic: "BlurIris/my_camera/Status" Payload: " { "type": "MOTION_A", "trigger": "ON" } "

feels like the MQTT topic is not wired to the motion entity of "my_camera"

so I wonder what's the topic and correct payload that the binary_sensor of the camera is expecting?

EDIT: I have tried to remove the MQTT setting and started over. I have then copied and pasted the payload and topic from the instruction and now it's working. so I guess there probably was a typo somewhere that I must have missed. motion detection now works for me :D

kramttocs commented 2 years ago

@neldonado Please note the EDIT in the post above and let me know if yours is working.

pvr2002 commented 2 years ago

I recently setup my BlueIris system into Home Assistant and noticed that my motion detection entity in Home Assistant shows clear all the time, however the BlueIris system shows motion as being detected. My BlueIris system is setup to utilize Motion triggers to deepstack to determine if it is valid and then initiating full HD recording. Is there a setting somewhere that needs to be set to allow motion detection to show up in Home Assistant? This system does not use MQTT.

kramttocs commented 2 years ago

Hi @pvr2002, You will have to setup MQTT for that functionality. Please see the user guide for configuration: https://github.com/elad-bar/ha-blueiris/blob/master/docs/blueiris-server.md Thanks