Im Running Hass.io on HassOs on my raspberry pi.
Unfortunately I have the problem that I can’t run an ssh command from HA (using ssh adding and running it there works fine).
For ssh I’m using an certificate without password.
Already tried running it from within an python file, which results in this error:
2019-07-23 13:27:15 ERROR (SyncWorker_3) [homeassistant.components.python_script.roborock_floor1_mop.py] Error executing script: __import__ not found Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 159, in execute exec(compiled.code, restricted_globals, local) File "roborock_floor1_mop.py", line 1, in <module> ImportError: __import__ not found
Running it as a shell_command inserting the ssh command directly there isn’t working, too.
roborock_floor1_mop: ssh -i ../config/ssh/id_rsa [email protected] 'sh ../mnt/data/valetudo/maps/floor1.sh'
Result in the log:
2019-07-23 13:25:44 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `ssh -i ../config/ssh/id_rsa [email protected] 'sh ../mnt/data/valetudo/maps/floor1.sh'`, return code: 255
Does anybody has any idea what could be the problem here? I’m looking and trying all solutions for this here but unfortunately nobody is using HassOS