Power Switch

The Power Switch can be used to control a Switch device whose state can be determined (myStrom Switch, openHAB Thing/Switch, Philips Hue, FRITZ!Device).

Control attributes

ButtonIf this option is disbled, default buttons will be used (red, green and grey bullet)
Bitmap OnImage which will be displayed if the power switch is tunred on.
Bitmap OffImage which will be displayed if the power switch is tunred on.
Bitmap WaitImmage that will be displayed if the state of the power switch could not been determined yet.
Power Switch DeviceThe following devices can be configured directly (the configuration of actions is not necessary): myStrom Power Switch, Hue light elements, Fritz! Device DECT 2000
IDOptional attribute. Is is used for some special configurations only.

Layout attributes

The Layout Attributes of a control are described in chapter Control Layout.

Actions

You can define actions for the following triggers:

OnWill be executed when clicking on the button (turn on)
OffWill be executed when clicking on the button (turn off)
StateDetermines the state of the Switch device and should be linked in any case directly to the Command «state». It must have only one Action with trigger «state».
onstart will be executed while creating the page after the control is initialized

You can read more about actions in the chapter Actions.

Events

In chapter Events, you can read more about events.