ha-blueiris
ha-blueiris copied to clipboard
Getting camera Motion Sensor Status
Hi all, is there anyway to have a sensor that represent the ON OFF status of the motion detection sensor of a camera, please?
Due to the fact that my cameras are frequently covered by spider webs, I would like to have a fast and centralized way to turn off and on the motion detection sensor through HA. I've created a MQTT switch that perfectly turns ON and OFF the motion sensors, but I couldn't find a way to get the current status of the sensor in HA. If someone could point me to the proper code bit of the camera properties I could try to add the Motion Detection ON OFF property. Thank you.
You may want to look at configuring profiles in Blue Iris instead. Profiles can be switched using the switches in this integration.
I have 4 profiles configured in Blue Iris Disarmed, Armed: Home, Armed: Away, Disabled
Depending on the mode, I have each camera to either alert or not alert. E.g:
Profile switches in Home Assistant
You'll honestly want to do this via MQTT messages, a good guide is watchable here on Youtube - the only part he doesn't show is how to set up your automation afterwards, but you basically just choose Trigger type: MQTT, put your topic name in the topic field, and then "on" or whatever you set the payload value to be for the motion detection.
I like this idea