nikogu
(Nicola)
August 22, 2023, 1:35am
1
hello, I am triying to make this simple command work:
ha restart audio
but it seems to not execute and if I try in developers section I receive this error:
stdout: ""
stderr: "bash: ha: No such file or directory"
returncode: 127
i have tried with or without bash but with no success.
Anyone have suggestions?
Thanks
francisp
(Francis)
August 22, 2023, 5:11am
2
install ‘advanced ssh and web terminal’ add-on with protection mode off, and execute it there.
nikogu
(Nicola)
August 24, 2023, 1:16am
3
i already have it and actually using it manually. the fact is that i want this to be automated by the click of a button, so i put it in shell commands to create a button, but it doesn’t work!
is there a way to use that advanced ssh and web tetminal app in an automation?
you could write a command line script that ssh’s in to the addon, and then runs that command.
The syntax is ssh user1@server1 command1
so ssh root@<IP> "ha restart audio"
nikogu
(Nicola)
September 6, 2023, 3:02pm
5
okay, thank you. The ip that I have to set is the ip address of the home assistant machine, correct?