I’m trying to set up a wake on lan switch for my windows desktop in hassio. The waking up part works without problems but the turning off part doesn’t. In my previous home assistent setup, I’ve used the following command line switch.
But in hassio i get the error “Command failed: net rpc shutdown -I 192.168.x.x -U user%password”
My guess is that I need to install “samba-common” to run this command.
How can I do this in hass.io?
after installing the “apk add samba-common” the “net rpc shutdown” command only works from the CLI not from homeassistant im still waiting for a fix my self
Hey fellows I tried the ‘‘apk add samba-common’’ can anyone tell me why im getting this error below:
core-ssh:~# apk add samba-common
WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.24d64ab1.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
samba-common (missing):
required by: world[samba-common]
I was trying setup WOL but cant get this to install?
I had to do “apk update” to get the “apk add” command to work. “apk search” shows what’s available to install.
I am able to get the “net rpc” command to run, but it just says “Connection failed: NT_STATUS_IO_TIMEOUT”. I assume I have to do something on my Windows machine to make it listen, but I’m not sure what.
So I have mine shutting down now but have needed to do the instructions as per Mosie 1 on Windows 10.
> 1. * Start remote registry service
> 2. * Open firewal for WMI
> 3. * In registry set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy to 1 or add it.
However once shutdown I cant Wake on LAN. WOL only seems to work on hibernate or sleep as per the Microsoft article.
In Windows 8, 8.1 and Windows 10, the default shutdown behavior puts the system into the hybrid shutdown state (S4), and all devices are put into D3. WOL from S4 or S5 is unsupported. Network adapters are explicitly not armed for WOL in either S5 or S4 cases because users expect zero power consumption and battery drain in the shutdown state. This behavior removes the possibility of invalid wake-ups when an explicit shutdown is requested. Therefore, WOL is supported only from sleep (S3) or hibernation (S4) states in Windows 8, 8.1 and Windows 10.
ACPI sleep states S0 to S5 . 0 being awake.