I have a button on my desktop that causes a shell command to be sent to an Ubuntu computer to run VLC and stream video from my porch camera.
It worked fine until a week ago when the Ubuntu computer quit working. I have replaced the Ubuntu computer, installed VLC and copied from a backup my shell script that runs VLC.
On the Ubuntu computer, the shell script does start VLC and stream the porch camera.
From the Home Assistant terminal this starts VLC and the camera stream on the Ubuntu computer (192.168.1.126).
ssh -i /root/config/id_rsa -o StrictHostKeyChecking=no [email protected] "bash /home/steve/scripts/vlc/runvlc-porch.sh &"
This tells me that my SSH key pair is OK and that I can run the script from Home Asssistant.
In my configuration.yaml → shell_commands.yaml I have this:
#shell_command:
runvlc_porch: 'ssh -i /root/config/id_rsa -o StrictHostKeyChecking=no [email protected] "bash /home/steve/scripts/vlc/runvlc-porch.sh &"'
But this button card does not work:
- name: Porch
show_name: true
show_icon: true
type: button
tap_action:
action: perform-action
perform_action: shell_command.runvlc_porch
target: {}
icon: mdi:television
icon_height: 25px
Recall, the only thing that has changed is the Ubuntu computer.
The button card on my desktop has been working for months until the Ubuntu computer was replaced.
So, I am baffled why the Home Assistant end has stopped working.
Any ideas? Is there anything wrong with my shell command? (All I changed was the IP address of the target computer).