I am trying to setup a shell command in configuration.yaml with a curl command. I have verified the curl command works on my Mac’s Terminal. But I am struggling to make it conform to yaml formatting.
The curl command that works on Terminal is:
curl -X POST -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -d '{"state": "off", "attributes": {"friendly_name": "Cameramotion"}}' http://192.168.X.XX:8123/api/states/binary_sensor.cameramotion
But when I paste the same line in my config, the configurator add-on says
can not read an implicit mapping pair; a colon is missed at line 187, column 351: ... friendly_name": "Cameramotion"}}' http://192.168.X.XX:8123/api/ ...
Any help is appreciated. Thanks