Heya! I’m new to HA and automation in general. Looking for some advice on how to tackle this.
I have an Raspberry pi running HA in a docker container. I’m trying to make an on/off switch for my pc and got the WoL part working. Turning off less so.
Right now I’m trying to send a shell command from the docker container to the static ip from the pc, but it does not seem to be working. Entering the command ‘plainly’ into the RPI’s terminal does work however.
The OS running on the rpi running Debian and the OS running in the docker container are going to be different. I’m willing to bet that the net binary is not available in the container os. When you use the shell_command from HA, it’s using the container OS.
I’m honestly not sure you could add the binaries required to do this. If you exec into the container (docker exec [container] -it), you should be able to see if your command executes there. But, I’m willing to bet it won’t.