Hey everyone,
I’m hoping that you have a better idea about how I can accomplish turning on/off my TV using home assistant. I want to be able to execute bash commands with Hassio, such as shutting down the TV via ssh. The problem is that my script I wrote works fine if I call it directly while SSH’d into Hassio, but it doesn’t work if I try to call if from Hassio. My configs are below:
https://hastebin.com/osujimivud.bash
I have Hassio installed on a Pi 3, and a 2nd Pi 3 is connected to my TV. Basically my script just executes a CEC command to the 2nd pi via SSH. I can run this command just fine when I SSH into Hassio, but if I try to use the shell command in an automation or call it directly, it doesn’t work. Any ideas?