Custom Widgets

basic.checkbox basic.color basic.flip basic.glue basic.icon basic.input basic.listview basic.offset basic.print basic.roundslider basic.select basic.shutter basic.skylight basic.slider basic.stateswitch basic.symbol basic.tank basic.trigger basic.window


basic.skylight

a skylight (roof window) with open/tilted/closed status and shutter

Parameters
{{ basic.skylight(id, item_value, item_window, min, max, color) }}
id
unique id for this widget
item_value
an item for the height of the shutter blades
item_window
an item for the roof window wing status (0/'closed', 1/'tilted', 2/'open') (optional, default = 0)
min
the value for shutter on top end (optional, default 0)
max
the value for shutter at bottom end (optional, default 255)
color
color for 'open' state e.g. 'icon0' through 'icon5' or '#f00' for red. Prepend a '!' to make the color constant ('!icon3'). Color is 'icon0' if window is closed and constant color is not forced. (optional)
Example
{{ basic.skylight('first_window', 'bath.blind.pos', 'bath.window.state') }}
{{ basic.skylight('second_window', 'bath.blind.pos', 'bath.window.state', '', '', 'red') }}
{{ basic.skylight('third_window', 'bath.blind.pos', 'bath.window.state', '', '', '!icon3') }}
Use slider to control the shutter and switches to simulate window status
First window:
0 1 2
   Second and third window:
0 1 2

Default: class icon0 / icon1 colors:  
Usage of custom color for 'open':    
Usage of constant custom color:    

Author: Martin Gleiß and others