Hey guy,
I wrote my own python script (copying an Intertechno 433Mhz remote control). Now I want to run the commands like it is working in the shell “python /usr/share/hassio/homeassistant/scripts/send_Int.py a_on”. So I followed the official hass instruction
tried to integrate the command as a switch like here
switch:
- platform: command_line
switches:
kitchen_light:
a_on: switch_command on kitchen
a_off: switch_command off kitchen
I get this error:
Invalid config for [switch.command_line]: [a_on] is an invalid option for [switch.command_line]. Check: switch.command_line->switches->kitchen_light->a_on. (See ?, line ?).
I also tried to execute the shell command “python /usr/share/hassio/homeassistant/scripts/send_Int.py a_on” in the hass-file-editor and got “error 2: no such a file or directory python”
shell command is python /usr/share/hassio/homeassistant/scripts/send_Int.py a_on
installed shell command a_on
installed switch (so the new service/entity name)
switch:
- a_on
I’m I right?
EDIT: I also tried via the HassIO Terminal to hand over the shell command (user core-ssh). But I got an bash error that python command wasn’t found. In my Putty (user: root) the command is working. Could it be that the hassio-user hasn’t the rights to execute Python?