I have my hadashboard on another pi which i s conncted to a monitor. To save energy etc. I want to turn on/off my monitor of the pi via the command line.
I’ve set up a public key so I can access the pi over ssh from the hass.io terminal without password. That works perfectly and I can switch the monitor on/off via the terminal in hass.io with the exact same command as in the configuration.yaml. So it should actually work… However I get an error when I try to switch it over the frontend.
Hass.io runs on docker on an ubuntu systme and the pi with the dashbaord runs on raspbian.
Here it seems that the guy found a solution however I don’t get how I should install the ssh key through the username homeassistant. My Pi doesn’t have that use.r
Is this necessary when running Home Assistant in a docker?
I have a command_line switch inside a docker container. I already have SSL setup, and the container is in network_mode: host
I find it so hard to believe that there’s no other way to send a command to a program outside of a container, and you have to setup new users, ssl keys and use ssh.