Hey!
I’m created a command line switch what is create a SSH connection with a remote Debian and run a python command on it.
switch:
- platform: command_line
switches:
ssh_switch:
command_on: "ssh [email protected] 'python3 110be.py' "
command_off: "ssh [email protected] 'python3 110ki.py' "
friendly_name: "Internet switch 110"
It’s working fine! But my switch in the UI looks like this:
My problem is when I click to the “Turn off” and “Turn on” the command runs fine but the indicator on the switch doesn’t stay there, immediately switch back to the off position.
How can I solve this issue?
Thanks for the support!