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

FEATURE REQUEST: Control Camera Motion (On/Off)

Open RJ-Make opened this issue 2 years ago • 1 comments

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

RJ-Make avatar Apr 03 '22 16:04 RJ-Make

I like this idea. Will look into it.

kramttocs avatar Apr 04 '22 12:04 kramttocs

Any movement on this?

RJ-Make avatar Nov 25 '22 15:11 RJ-Make

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.

kramttocs avatar Nov 25 '22 15:11 kramttocs

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

RJ-Make avatar Nov 26 '22 11:11 RJ-Make

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 avatar Nov 26 '22 13:11 kramttocs

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

kramttocs avatar Dec 05 '22 07:12 kramttocs