Part 6: Wake-on-LAN and RPC Shutdown
Goal this weekend is to setup projector and TV autonomously via home assistant scripts.
- First step is figuring out how to setup wake-on-LAN on the PC. A few steps…
- Access BIOS to flip setting for EUP 2013 off and Resume by PCI-E Device on. My specific motherboard did not have resume by onboard intel LAN. Based on research Resume by PCI-E covers the same wake-on-LAN setting. The EUP 2013 is disabled as it relates to a European power conservation feature which can mess up WOL.
- Access windows adapter to enable Wake on Magic Packet as well as Power Management to allow device to wake up. I left “Only allow a magic packet to wake the computer” unchecked in case I can figure out how to do this via bluetooth.
- Setup Ethernet connection.
- Added WOL to hass.io. Tip here is to run ipconfig /all to match the Mac Address and the IP Address to the connection that is active. In my case it is the ethernet connection not the wireless connection.
- I have NOT figured out how to login automatically with username and password yet.
- Second step is the exact opposite, how do I shut down the computer. I found an add-on called RPC Shutdown in Hass.io that does exactly that.
- First make sure your computer is setup to receive shutdown commands. See configuration section.
- https://www.howtogeek.com/109655/how-to-remotely-shut-down-or-restart-windows-pcs/
- Also manually edit the registry: https://blog.sip2serve.com/post/155565656901/shutdown-windows-10-remotely
- Additional resources that repeat this that work well: https://community.home-assistant.io/t/shutdown-windows-remotely/22662/44
- Navigate in your Home Assistant frontend to Hass.io -> Add-on Store.
- Find the “RPC Shutdown” add-on and click it.
- Click on the “INSTALL” button. Update configuration as appropriate.
- This was a complete bear that took me 5 hours to figure out. The trick was to “restart” the RPC Shutdown add-on for this to work.
- First make sure your computer is setup to receive shutdown commands. See configuration section.
Recent Comments