device.uzsuicon
Widget for usage of UZSU plugin
Parameters
{{ device.uzsuicon(id, item, headline, pic_on, pic_off, valueType, valueParameterList, color_on, color_off) }}
id
unique id for this widget (optional)
item
the item of the UZSU (NOT the item which is switched by UZSU)
headline
headline of popup (optional, default: UZSU)
pic_on
the pic for the 'on' state (optional)
pic_off
the pic for the 'off' state (optional)
valueType
supported types are 'bool', 'num', 'list', 'text' (optional, default: bool)
valueParameterList
valueParameterList depending on valueType (optional):
bool: ['text on','text off'] or ['text1:value1','text2:value2'],
num: [min, max, step],
list: ['value1','value2','value3'] or ['text1:value1','text2:value2','text3:value3'],
text: no value parameter
color_on
the color for the 'on' state, e.g. '#f00' for red (default 'icon1' of the design)
color_off
the color for the 'off' state, e.g. '#f00' for red (default 'icon0' of the design)
Example
{{ device.uzsuicon('uzsu1', 'uzsuitem') }}
FHEM style and value as list (style depends on backend I/O driver)
{{ device.uzsuicon('uzsu2', 'uzsuitem', 'FHEM style and value as list', '', '', 'list', ['a:0','b:1','c:2']) }}
Numeric input (validation depends on browser, see also
https://www.w3.org/html/wiki/Elements/input/number)
{{ device.uzsuicon('uzsu3', 'uzsuitem', '3 to 5', '', '', 'num', [3, 5, 0.5]) }}
Author: Michael Wuertenberger