123
(Taras)
February 20, 2019, 3:32pm
4
You rang?
Sorry but I’m not well versed with Hass.io other than knowing there are certain things done differently (or not at all) compared to a vanilla ‘venv’ installation of Home Assistant.
I searched the forum for "command script hass.io"
and got a few matches. Perhaps there’s something helpful here:
Hi, im trying to get a shell command to run which is hosten on HASSIO with HASSIO.
I tried several different things that i found on this forum… none of them work.
The command itself works perfectly fine if i SSH into my HASSIO manually.
Does HASSIO use a different user than root on PI3?
set_alexa: ‘ssh -i /config/.ssh/id_rsa root@HASSIO /share/alexa_remote_control.sh -d Wohnzimmer -e vol:10’
set_alexa: ‘/share/alexa_remote_control.sh -d Wohnzimmer -e vol:10’
set_alexa: /share/alexa_remote…
I have no idea if this problem is hassio or hass related so i try to get help here. I use hassio on raspberry pi zero.
I have tried different shell commands to call a batch file
shell_command:
server_oben_runterfahren: /bin/bash /data/shutdown_server.sh
server_oben_runterfahren_2: '/bin/bash /data/shutdown_server.sh'
server_oben_runterfahren_3: 'data/shutdown_server.sh'
Here is the batch file content
#!/bin/bash
#ssh -i /data/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] …
1 Like