Hi all. I’m trying to get that Wake-on-LAN switch to work properly. It wakes up the computer fine but it doesn’t change its status accordingly once it has booted. I can ping and nmap the computer fine form the hass account on my Rpi. This are the relevant parts of the config. I also tried using the fritzbox for device tracking but without effect.
One of my systems will only wake from a complete shutdown and another will only wake from hibernate. Try different sleep states to see if that is the case.
@norien – I’ve wondered about this as well. I’m pretty sure I’ve tried both hibernation and complete shutdown, however, no go as of yet. Will try again and see what I can figure out.
As the feature is not uber important to me I’d rather track down how it’s not working than simply hiding it by starting from scratch. WOL works, which is most important to me. I just wonder why the status is wrong.
Well I have an interesting story. Originally I had my home assistant installed with allinone on a raspberry pi and I had 3 different wol switches working flawless.
Today I finished migration of my home assistant to a dedicated Ubuntu server in virtualenv and all 3 no longer report state on. The switches are working to power on the system’s but I am unable to use the off portion now as it won’t actually show they are on.
Could you elaborate a little? Which files should I be looking for. my ping is sitting in, /bin/ping - so not sure if it’s different due to being a newer ubuntu server install?
Just in case, I opened an an issue on github about this problem.
@norien simply log into your ha instance with your ha user (eg. hass) and execute which ping. This will probably give you something like /bin/ping. As long as /bin is in your PATH environment variable (check with export | grep PATH) everything should be fine.
Besides, as my little script shows, it has most likely nothing to do with the PATH variable in my opinion.