I have a bunch of CURL commands I’d like to use in some automations. However, I can’t figure out how to get them to run from HA. Every topic I’ve seen on the forums is over 3 years old. Examples given on forum posts talk about adding the curl command to a switch, but current documentation say to make it a sensor. I tried using RESTful, too, but haven’t had any luck there, either.
- platform: rest
resource: http://10.0.4.90/json/state
method: POST
payload: >-
'{"on":true,"bri":5,"seg"...
- platform: command_line
name: curl test
command: >-
'curl -X POST "http://10.0.4.90/json/state" -d '{"on":true,"bri":5,"seg"...