Wake On Lan Online
The wake_on_lan
integration enables the ability to send magic packets to Wake on LAN capable devices to turn them on.
Wake on LAN (WOL, sometimes WoL) is an Ethernet computer networking standard that allows a computer to be turned on or woken up remotely by a network message. Wake-on-LAN is not restricted. Wake on LAN is a utility to wake a device (PC, laptop, tablet) which is asleep and supports to be woken by Wake on LAN. Add a configuration by specifying a unique name and mac address and select a picture (which will be used if a live tile is created). Multiple configurations for devices which.
There is currently support for the following device types within Home Assistant:
Configuration
To use this integration in your installation, add the following to your configuration.yaml
file:
Component services
Freee bonus casino. Available services: send_magic_packet
.
Service wake_on_lan/send_magic_packet
Send a magic packet to wake up a device with ‘Wake-On-LAN’ capabilities.
Service data attribute | Optional | Description |
---|---|---|
mac | no | MAC address of the device to wake up. |
broadcast_address | yes | Optional broadcast IP where to send the magic packet. |
broadcast_port | yes | Optional port where to send the magic packet. |
Sample service data:
Switch
The wake_on_lan
(WOL) switch platform allows you to turn on a WOL enabled computer.
Switch configuration
The WOL switch can only turn on your computer and monitor the state. There is no universal way to turn off a computer remotely. The turn_off
variable is there to help you call a script when you have figured out how to remotely turn off your computer. See below for suggestions on how to do this.
It’s required that the binary ping
is in your $PATH
.
To enable this switch in your installation, add the following to your configuration.yaml
file: Expekt free bet.
Configuration Variables
The MAC address to send the wake up command to, e.g, 00:01:02:03:04:05
.
The name of the switch.
The IP address or hostname to check the state of the device (on/off).
Defines an action to run when the switch is turned off.
The IP address of the host to send the magic packet to.
The port to send the magic packet to.
Examples
Here are some real-life examples of how to use the turn_off variable.
Suspending Linux
Suggested recipe for letting the turn_off
script suspend a Linux computer (the target)from Home Assistant running on another Linux computer (the server).
- On the server, log in as the user account Home Assistant is running under. In this exampleit’s
hass
. - On the server, create SSH keys by running
ssh-keygen
. Just press enter on all questions. - On the target, create a new account that Home Assistant can ssh into:
sudo adduser hass
. Just press enter on all questions except password. It’s recommended using the same user name as on the server. If you do, you can leave out[email protected]
in the SSH commands below. - On the server, transfer your public SSH key by
ssh-copy-id [email protected]
where TARGET is your target machine’s name or IP address. Enter the password you created in step 3. - On the server, verify that you can reach your target machine without password by
ssh TARGET
. - On the target, we need to let the
hass
user execute the program needed to suspend/shut down the target computer. Here is itpm-suspend
, usepoweroff
to turn off the computer. First, get the full path:which pm-suspend
. On my system, this is/usr/sbin/pm-suspend
. - On the target, using an account with sudo access (typically your main account),
sudo visudo
. Add this line last in the file:hass ALL=NOPASSWD:/usr/sbin/pm-suspend
, where you replacehass
with the name of your user on the target, if different, and/usr/sbin/pm-suspend
with the command of your choice, if different. - On the server, add the following to your configuration, replacing TARGET with the target’s name:
Wake On Lan Online
Wake-on-LAN (WOL) is a great feature of PCs which allows you to wake them up from sleep or shutdown over your local area network or over the Internet. It is like a remote power on button. If your hardware has WOL support, you can power on the computer remotely using any of the dozens of freeware tools available on the web to initiate the wake up event. In this article, I will cover the basic steps which are required to configure WOL under Windows 10. Hay photoshop para mac.
- First, you must enter your BIOS to find and enable the 'Wake on LAN' feature if you have some integrated Ethernet network card. For my Phoenix BIOS, it is located at Advanced -> Wake Up Events -> Wake up on LAN and also requires the 'Deep Sleep' option to be disabled. This option in the BIOS varies from PC to PC, so refer to your hardware manual for your motherboard.
- Boot into Windows 10 and press Win + X keys together to bring up the Power User menu. There, select the Device manager item:Tip: you can customize the right click Win+X power users menu in Windows 10.
- In Device Manager, locate you network adapter and double click it. It will display the network adapter's properties.
- Switch to the Advanced tab and scroll down in the settings to locate the network adapter's option called Wake on Magic Packet. Set it to 'Enabled':
- Now go to the Power Management tab, and check the settings there. It should be something like this:
- Install the Simple TCPIP Services feature: press Win + R shortcut on your keyboard and type the following command in the Run dialog:
optionalfeatures.exe - Tick the Simple TCPIP Services option:
- Reboot your PC.
- Open UDP port 9 in Windows Firewall - to do this, go to Control PanelAll Control Panel ItemsWindows Firewall, click 'Advanced Settings' on the left, and create a new Inbound Rule to open the required port.
That's it.
Wake On Lan Windows 10
Now you need to write down the MAC address of your network adapter somewhere. To see it, do the following.
Wake On Lan Test Online
- Open Settings.
- Go to Network & Internet -> Ethernet if you are using a wired connection. In case if your network adapter is wireless, go to Network & Internet -> Wi-Fi.
- Click your connection name and see the physical address of the adapter: Note this value.
On another PC, download this little freeware app called WolCmd. It is my recommended command line utility which must be used according to the following syntax:
So in my case, to wake up my own PC, I have to run it as follows:
While typing the syntax, just delete the '-' char from the MAC address and use your actual network parameters.
In case you don't know what is subnet mask and your IP address, you can find them quickly by using the ipconfig command. Open a new command prompt instance and type ipconfig. The output will be as follows:
That's it. Now you can create a shortcut to run wolcmd and wake up your PC via the network with one click.
Wake On Lan Online Status Port
Advertisment