Hello,
When reloading (Dev tools → YAML config reload → Command line entities) turn command line switches off.
Running Home Assistant 2022.11.1 container
Configuration:
switch:
- platform: command_line
switches:
roosjes:
command_on: curl -X POST --header 'Content-Type:application/json' --data '{"actionString":"turn Roosjes on"}' --user 'us:pwd' 'http://192.168.2.XXX/api/execute-action'`
command_off: curl -X POST --header 'Content-Type:application/json' --data '{"actionString":"turn Roosjes off"}' --user 'us:pwd' 'http://192.168.2.XXX/api/execute-action'`
Is this inventional or bug?
Is it solvable, when reload to keep switch state? Or not to issue the corresponing curl command?