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
Button | If this option is disbled, default buttons will be used (red, green and grey bullet) |
Bitmap On | Image which will be displayed if the power switch is tunred on. |
Bitmap Off | Image which will be displayed if the power switch is tunred on. |
Bitmap Wait | Immage that will be displayed if the state of the power switch could not been determined yet. |
Power Switch Device | The following devices can be configured directly (the configuration of actions is not necessary): myStrom Power Switch, Hue light elements, Fritz! Device DECT 2000 |
ID | Optional 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:
On | Will be executed when clicking on the button (turn on) |
Off | Will be executed when clicking on the button (turn off) |
State | Determines 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.