REST API from Blue Iris custom http

I think this is just a syntax issue.

I have camera nightvision switches configured in HA that I want to control from BI, and AFAIK the
REST API is my most feasible solution.

I have a working cURL command, so I basically need to get this…

curl -k -X POST -H 'Authorization: Bearer MY.TOKEN' -H 'Content-Type: application/json' -d '{"entity_id": "switch.garage_cam_nightvision"}' https://MY.DOMAIN:8123/api/services/switch/turn_on

…into here…

Unfortunately, the Blue Iris help file doesn’t provide much information regarding syntax:

Any help would be much appreciated! :sweat:

Well, after many hours of failed attempts, I finally gave up on this method and resorted to creating a second set of switches in HA to control BI then using NODE-Red as a ‘translator’ between the two. So switching nightvision now looks like this…

…from Home Assistant:
HA > NR > BI > HA > Cam

…from Blue Iris:
BI > NR > HA > Cam

:sweat_smile: