Skip to content

Wake on LAN Binding (WoL)

Vlad Ivanov edited this page Aug 18, 2015 · 12 revisions

Documentation of the Wake-on-LAN binding Bundle


For installation of the binding, please see Wiki page Bindings.

Generic Item Binding Configuration

In order to bind an item to this binding, you need to provide configuration settings. The easiest way to do so is to add some binding information in your item file (in the folder configurations/items). The syntax for the Wake-on-LAN binding configuration string is explained here:


To prevent same mistake made by several people - the IP address is not the one from the machine you wanna wake up - this is identified by MAC address. IP is the broadcast IP from the SubNet; Here some examples for a typical C class network: - for the destination IP - or for

Here are some examples of valid binding configuration strings:


As a result, your lines in the items file might look like the following:

Switch Network_OpenhabWebsite	"openHAB Web"	(Status, Network)	{ wol="" }

The item binding can be combined with an exec binding to be able to switch the system on and off. The example below works if openHAB is running on a windows host.

Switch networkPC "Computer" (network, gOGBuero) { wol="", exec=">[OFF:shutdown -s -m \\\\ -t 0 -f]" }

The example below is for openHab running on a linux host.

Switch networkPC "Computer" (network, gOGBuero) { wol="", exec=">[OFF:net rpc shutdown -C MESSAGE -I -U USER%%PASSWORD -f -t 120]" }

Note: For windows computers not in a Domain the firewall must be configured properly (allow remote shutdowns) and the DWORD-Regkey LocalAccountTokenFilterPolicy in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System must be set to 1.

feature overview


Setup intro

Linux and OS X





User Interfaces



(link to openHAB forum)



Application Integration



A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Binding configurations

Use case examples

Item definition examples

Sitemap definition examples

Collections of Rules on a single page

Single Rules


Syntax highlighting for external editors

Release Notes

Clone this wiki locally
You can’t perform that action at this time.