/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_device.html" %} {% block example %} 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 ('shutter1', 'Shutter 1', 'bath_blind_mov', 'bath_blind_stop', 'bath_blind_pos', 'bath_blind_adjust', 'bath_blind_angle', 'bath_blind_stored') }}

{{ device.shutter ('shutter2', 'Shutter 2', 'bath_blind_mov', '', 'bath_blind_pos', 'bath_blind_adjust', 'bath_blind_angle', '', 0, 255, 5, 'full') }}

{{ device.shutter ('shutter3', 'Shutter 3', 'bath_blind_mov', '', 'bath_blind_pos') }}
Use slider to control shutter..
{{ device.blind('blind1', 'Blind', 'bath_blind_mov', 'bath_blind_stop', 'bath_blind_pos', 'bath_blind_adjust', 'bath_blind_angle') }}
Shutter with all controls, 'half' mode
{{ device.shutter ('shutter1', 'Shutter 1', 'bath_blind_mov', 'bath_blind_stop', 'bath_blind_pos', '', 'bath_blind_angle', 'bath_blind_stored') }}
Shutter with less controls, 'full' mode
{{ device.shutter ('shutter2', 'Shutter 2', 'bath_blind_mov', '', 'bath_blind_pos', '', 'bath_blind_angle', '', 0, 255, 5, 'full') }}
Shutter without blades
{{ device.shutter ('shutter3', 'Shutter 3', 'bath_blind_mov', '', 'bath_blind_pos') }}
If you want to use individual backgrounds for the shutter place them in 'pics/shutter' with size 150 x 180 as .png.
Add a line to your "visu.css" with #PAGE-ID (current pagename, hyphen, id of the shutter-widget).
{% filter trim|escape|nl2br %}{% raw %} #widget_device_shutter-shutter2 { background-image: url('../../pics/shutter/shutter_ocean.png'); } {% endraw %}{% endfilter %}
{% endblock %}