Curl command to turn on/off motion sensor in BI of a specific camera?

Pentagano

Getting comfortable
Joined
Dec 11, 2020
Messages
605
Reaction score
281
Location
Uruguay
HI all,

I've used curl commands before to switch profiles of cameras but I'm trying to find a command or method either through nodered or home assistant to switch on/off the motion sensor option for a profile without changing the profile number.

Is there a specific command I can use to achieve this?

Thanks
 

Pentagano

Getting comfortable
Joined
Dec 11, 2020
Messages
605
Reaction score
281
Location
Uruguay
Seems to work fine on the actual pc running BI through the browser so must be a permission issue:


command_on: 'curl -k " " >/dev/null'
command_off: 'curl -k "" >/dev/null'

If I run this in the browser on the BI pc it works fine:


So how do I push this from another pc like from homeassistant switch command?

The browser gives me a unique session number at the end of the url push each time:

&session=25f34d5e2afc756860656749144c
 
Last edited:
Top