Add this line last in the file: hass ALL=NOPASSWD:/usr/sbin/pm-suspend, where you replace hass with the name of your user on the target, if different, and /usr/sbin/pm-suspend with the command of your choice, if different.
![mac wake on lan command mac wake on lan command](http://mochasoft.dk/images/wol1.png)
Wake sends a Wake On LAN magic packet to a given machine's MAC address.
![mac wake on lan command mac wake on lan command](https://triggercmdagents.s3.amazonaws.com/Pics/Forum/WOL_BIOS.jpg)
If you do, you can leave out in the SSH commands below. PowerShell script for sending Wake On LAN magic packets to given machines/MAC address (es) Starts a list of physical machines by using Wake On LAN. It’s recommended using the same user name as on the server. Just press enter on all questions except password.
![mac wake on lan command mac wake on lan command](http://techtik.com/wp-content/uploads/2017/02/Wake-on-lan-2.png)
On the server, log in as the user account Home Assistant is running under.Suggested recipe for letting the turn_off script suspend a Linux computer (the target)įrom Home Assistant running on another Linux computer (the server).
MAC WAKE ON LAN COMMAND HOW TO
Here are some real-life examples of how to use the turn_off variable.