I have blue iris controlling my cameras and have two profiles one when i’m at home and other when out. This is controlled from my home assistant, and for that i used these commands
# Change the blue Iris ative profile.
switch:
- platform: command_line
switches:
blue_iris:
command_on: 'curl -X GET "http://192.168.1.xx:81/admin?profile=1&lock=1"'
command_off: 'curl -X GET "http://192.168.1.xx:81/admin?profile=0&lock=1"'
friendly_name: Blue Iris
This is woks fine, but affet change the profiles i want also return to activate profile based on the schedule that i have.
How can do that?
I find the solution for my question, and leave here the solution for others.
The lock is the secret:
Lock = 0 - Play
Lock = 1 - Pause
Lock = 2 - Stop
If you what only change the Lock status in blueiris use “-1” value.
# Change the blue Iris ative profile.
switch:
- platform: command_line
switches:
blueiris_montion:
command_on: 'curl -X GET "http://192.168.1.77:8081/admin?profile=1&lock=2"'
command_off: 'curl -X GET "http://192.168.1.77:8081/admin?profile=-1&lock=1"'
friendly_name: Ativate Motion
blueiris_disable_montion:
command_on: 'curl -X GET "http://192.168.1.77:8081/admin?profile=0&lock=2"'
command_off: 'curl -X GET "http://192.168.1.77:8081/admin?profile=-1&lock=1"'
friendly_name: DeactivateMotion
2 Likes