I’m running Hommassistant os on a raspberry pi
Wonder if anyone here can help me I do not really know SSH and since hassio.addon_stdin was removed from the addon i have been stuck just manually running the below command from the terminal.
I’m using Homeassistant on a Raspberry PI
sudo docker exec addon_a0d7b954_nut upscmd -u xxx -p xxx [email protected] beeper.toggle
I use to use the following in an automantion but it does not work any more.
action: - service: hassio.addon_stdin data: addon: a0d7b954_ssh input: sh /config/boff.sh
Everywhere I look people say to use Shell_command to Call ssh but I have no idea how to do this. And what the command should look like as I have virtually no experience in SSH is there anyone here who can guide me in getting this working again it is either that or takes my pliers open the ups and break off the buzzer from the pc board lol(don’t really want to do that)
I have also tried this shell command in configuration.yaml
shell_command: beeper_off: ssh -i /config/.ssh/id.rsa -o 'PreferredAuthentications=publickey' [email protected] -T 'bash /config/boff.sh'
But I get the following error return code: 255
The same command works in the terminal
Any help will be appreciated