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). See also chapter MyStrom Integration for more information.
|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.|
|ID||Optional attribute. Is is used for some special configurations only.|
The Layout Attributes of a control are described in chapter Control Layout.
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.
In chapter Events, you can read more about events.