Hello, guys.
Im trying to implement a shell command to enable a feature im my Smartthings AC. In Smartthings forum, a guy posted a solution to turn on/off the display of Windfree AC. This is the command:
curl -L -X POST 'https://api.smartthings.com/v1/devices/<device_id>/commands' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data-raw '{
"commands": [
{
"component": "main",
"capability": "execute",
"command": "execute",
"arguments": [
"mode/vs/0",
{
"x.com.samsung.da.options":[
"Light_On"
]
}
]
}
]
}'
So, i try to use shell command integration this way:
ocf_turn_off: "curl -L -X POST 'https://api.smartthings.com/v1/devices/xxxxxxxac5-35d2-69a7-47xxxxxxxxx/commands' --header 'Authorization: Bearer xxxxxxx-b141-4e89-9441-xxxxxxxxxx' --header 'Content-Type: application/json' --data-raw '[{\"commands\":\{ "component": "main","capability": "execute", "command": "execute", "arguments": ["mode/vs/0",{"x.com.samsung.da.options":[ "Light_On"]} ] }]}'"
But, when i try to save shell_command.yml
the following error appears:
Where is the error, please?