I have a stream deck that I want to activate a Node-Red flow. The Node-Red flow is usually activated from Home Assistant by flipping an input_boolean (so I have a switch in lovelace).
I want to make the streamdeck do this as well.
So I’m trying to build a CURL command for that using the RESTClient addon for Firefox.
curl -X POST -H 'Content-Type: application/json' -H 'Authorization:: Bearer ey...' -i 'http://IP:8123/api/services/input_boolean/turn_on' --data '{ "entity_id": "input_boolean.optagelse" }'
If I remove the authorization header I get an ‘authentication failed’ and if I put it in, the request doesn’t return, it just sits there waiting.
So, can’t I manipulate an input_boolean directly?