elad-bar / ha-blueiris

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

FEATURE REQUEST: Control Camera Motion (On/Off) #164

Closed RJ-Make closed 1 year ago

RJ-Make commented 2 years ago

An entity to switch a camera's motion (Trigger Option) on or off. (and to retrieve its current status)

kramttocs commented 2 years ago

I like this idea. Will look into it.

RJ-Make commented 1 year ago

Any movement on this?

kramttocs commented 1 year ago

Sorry, no. I haven't had luck adding a new entity especially per camera.

BI has a camconfig command with motion having the definition of: true/false, enable/disable the motion detector for the currently effective profile

So that should be able to be used.

RJ-Make commented 1 year ago

Ok, Thanks! I figured out how to achieve this is yesterday with command_line. A bit of work for a single functions but sometime you have to do what you have to do? :-)

For others

In my config yaml

switch:
  - platform: command_line
    switches:
      inside_rear_camera_motion:
        unique_id: '12345irlcameramotion'
        command_on: !secret BI_IR1_Motion_On
        command_off: !secret BI_IR1_Motion_Off

Secrets

BI_IR1_Motion_On: "curl -k 'http://192.168.1.26:81/admin?camera=IR1&motion=1&user=USERNAME&pw=PASSWORD'"
BI_IR1_Motion_Off: "curl -k 'http://192.168.1.26:81/admin?camera=IR1&motion=0&user=USERNAME&pw=PASSWORD'"
kramttocs commented 1 year ago

Thanks for posting that for others.

I could create a service that takes a camera device and True/False that allows you to turn it on and off if you'd like. Wouldn't allow one to see the status though, only change it.

I just for the life of me can't wrap my head around creating an entity under the camera device and syncing it with BI. I'd really like to though because once I can do one, there are a lot of settings in BI we could control.

kramttocs commented 1 year ago

Closing as a duplicate of https://github.com/elad-bar/ha-blueiris/issues/109 Discussion can continue there