mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
b40e6db514
* Extend sitemap syntax for switch to support press & release buttons Mappings attribute for switch element now accepts one or two commands for each button. If only one command is provided, the button is a click button, the command is sent to the item when the button is clicked. If two commands are provided (separated by ":"), the button is a press & release button, the first command is sent to the item when the button is pressed and the second when the button is released. Syntax example for a click button: Switch item=DemoSwitch mappings=[ ON="ON" ] Syntax example for a press & release button: Switch item=DemoSwitch mappings=[ ON:OFF="ON" ] Related to #3822 Signed-off-by: Laurent Garnier <lg.hc@free.fr> |
||
---|---|---|
.. | ||
src/org/openhab/core/model/sitemap | ||
.classpath | ||
.gitignore | ||
.project | ||
bnd.bnd | ||
model.profile-marker | ||
NOTICE | ||
plugin.xml | ||
pom.xml |