ha-blueiris icon indicating copy to clipboard operation
ha-blueiris copied to clipboard

Getting camera Motion Sensor Status

Open johngianni opened this issue 3 years ago • 3 comments

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.

johngianni avatar May 04 '21 08:05 johngianni

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: image image

Profile switches in Home Assistant image

JOHLC avatar Jun 06 '21 16:06 JOHLC

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

RoninATX avatar Jan 21 '22 07:01 RoninATX

I like this idea

kramttocs avatar Dec 05 '22 07:12 kramttocs