/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiss * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_device.html" %} {% block example %}
Example
Dimmer with left or right alignment of the switch
{{ device.dimmer('', 'Dimmer', 'bath.light.switch', 'bath.light.value') }}
{{ device.dimmer('', 'Dimmer', 'bath.light.switch', 'bath.light.value', '', '', '', '', '', '', '', '', '', '', 'right') }}
{{ device.dimmer('', 'Dimmer', 'bath.light.switch', 'bath.light.value') }} {{ device.dimmer('', 'Dimmer', 'bath.light.switch', 'bath.light.value', '', '', '', '', '', '', '', '', '', '', 'right') }}
Dimmer with a minimal value of 20 but which is displayed as 0.
{{ device.dimmer('', '', 'bath.light.switch', 'bath.light.value', 20, 100, 10, icon.light('', '','bath.light.value',20,100), icon.light(), 'green', '#ff0000', 'handle', 0 ) }}
{{ device.dimmer('', '', 'bath.light.switch', 'bath.light.value', 20, 100, 10, icon.light('', '','bath.light.value',20,100), icon.light(), 'green', '#ff0000', 'handle', 0 ) }}
{% endblock %}