Hi, i have a problem with switch and command_line with some parameters.
If i launch switch turn on and try to read a value from a sensor my command throw an exception.
My actual configuration is
switch:
- platform: command_line
switches:
ipcam_motion_switch:
command_on: 'curl -k "http://admin:[email protected]/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=1&-name=1&-x=0&-y=276&-w=1280&-h=444&-s={{ states.input_number.motion_sensibility.state }}"'
command_off: some value
command_state: some value
value_template: '{{ value == "1" }}'
i try all combinations with and without single / double apex…
if i put the same command in a shell_command it works:
shell_command:
motion_ipcam_on: "curl -k http://admin:[email protected]/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=1&-name=1&-x=0&-y=276&-w=1280&-h=444&-s={{ states.input_number.motion_sensibility.state }}"
can you help me please?
thanks