I’m switching from Hubitat to HA and overall have been successful rewriting most Hubitat Rules as HA Automations. However, one of my uses is to control Blue Iris profiles and I’m stumped. In Hubitat, I simply use Rules similar to this:
Send GET to: http://192.168.1.231:81/admin?camera=front&profile=4&user=username&pw=password
This same url works in a browser also.
In HA, I’m attempting to use the RESTful service to do the same. This is my current configuration.yaml entry:
rest_command:
zone_alert_off:
method: GET
headers:
accept: "application/json, text/html"
url: "http://192.168.1.231:81/admin"
payload: "camera=front&profile=4&user=username&pw=password"
I’ve also tried other variants including:
rest_command:
zone_alert_off:
method: get
url: "http://192.168.1.231:81/admin?camera=front&profile=4&user=username&pw=password"
My call from the developer/services tab is simply service: rest_command.zone_alert_off
and I’ve also tried automations including
action:
- service: rest_command.zone_alert_off
data: {}
At first I was attempting to pass camera names and profiles but stripped that out until the simplest version works.
I’ve tried every variation that I’d seen in other posts. I’ve attempted to enable the debugging by adding the logging debug config but don’t see anything useful related to this. I can’t tell if HA is even sending anything. Every time I change something I either reload all yaml configurations or restart.
I’ve read and re-read the documention pages and every mention I could find about Rest but must be missing something. Could someone tell me what I’m missing or point me in the right direction?
Thanks for any help provided.