device.shutter
Standard shutter
Parameters
{{ device.shutter(id, txt, item_move, item_stop, item_pos, item_shift, item_angle, item_saved, value_top, value_bottom, step, mode, background, value_pos_1, value_pos_2, text_pos_1, text_pos_2) }}
id
unique id for this widget (optional)
txt
name of the shutter
item_move
an item for the up and down movement (optional, value_top/value_bottom will be sent to item_pos if omitted)
item_stop
an item for stopping the movement (optional)
item_pos
an item for the absolute position of the blinds
item_shift
an item for increase and decrease of the blade (optional, for future use)
item_angle
an item for the absolute angle of the blade (optional)
item_saved
an item for some saved positions (optional)
value_top
the value for opened (optional, default 0)
value_bottom
the value for closed (optional, default 255)
step
step between two values (optional, default 5)
mode
'half' blade turns from -1 to +1, 'full' blade turns from 0 to +1 (optional, default 'half')
background
a background image url (relative to smartVISU directory or absolute); optimal size is 100px x 180px (optional)
value_pos_1
the value to send for position 1 (optional, default 0)
value_pos_2
the value to send for position 2 (optional, default 1)
text_pos_1
the text printed on button for position 1 (optional, default Pos1)
text_pos_2
the text printed on button for position 2 (optional, default Pos2)
The shutter may be used in two modes: 'half' and 'full'. The 'half' mode is for
blade which can turn to a negativ value, normal blades do so. Some blades
like 'S'-blades may only turn to a positv angle. For this use 'full' mode.
Example
{{ device.shutter ('', 'Shutter 1', 'bath.blind.move', 'bath.blind.stop', 'bath.blind.pos', 'bath.blind.adjust', 'bath.blind.angle', 'bath.blind.stored') }}
{{ device.shutter ('', 'Shutter 2', '', '', 'bath.blind.pos', 'bath.blind.adjust', 'bath.blind.angle', '', 0, 255, 5, 'full') }}
{{ device.shutter ('', 'Shutter 3', '', '', 'bath.blind.pos') }}
Use slider to control shutter..
Shutter with all controls, 'half' mode
Shutter with less controls, 'full' mode
Author: Martin Gleiss
inspired by Joerg Gutowski