* @param unique id for this widget # @param name of the shutter (optional) * @param the knx gad (groupaddress) for the up- and down- movement * @param the knx gad (groupaddress) for stopping the movement (optional) * @param the knx gad (groupaddress) for the actual position of the shutters * @param the knx gad (groupaddress) to move the shutters to the shade position (optional) */ {% macro one (id, txt, gad_move, gad_stop, gad_pos, gad_shade ) %} {% import "basic.html" as basic %} /** Design */
{% if txt %} {{ txt }} {% endif %} {{ basic.shutter(id|_('shutter'), gad_pos, '', 0, 255, 1) }}
{{ basic.button(id|_('up'), gad_move, '', icon0~'control_arrow_up.png', 0, 'mini') }} {{ basic.button(id|_('down'), gad_move, '', icon0~'control_arrow_down.png', 1, 'mini') }}
{% if gad_stop %} {{ basic.button(id|_('stop'), gad_stop, '', icon0~'audio_stop.png', 1, 'mini') }} {% endif %} {% if gad_shade %} {{ basic.button(id|_('shade'), gad_shade, '', icon0~'fts_shutter_50.png', 1, 'mini') }} {% endif %}
{% endmacro %} /** * Shutter two * * @param unique id for this widget * @param name of the shutter * @param the knx gad (groupaddress) for the up- and down- movement * @param the knx gad (groupaddress) for stopping the movement (optional) * @param the knx gad (groupaddress) for the actual position of the shutter * @param the knx gad (groupaddress) to move the shutters to the shade position (optional) */ {% macro two (id, txt, gad_move, gad_stop, gad_pos, gad_shade) %} {% import "basic.html" as basic %} /** Design */
{{ txt }} {{ basic.shutter(id|_('shutter'), gad_pos, '', 0, 255, 1) }}
{{ basic.button(id|_('up'), gad_move, '', icon0~'control_arrow_up.png', 0, 'mini') }} {{ basic.button(id|_('down'), gad_move, '', icon0~'control_arrow_down.png', 1, 'mini') }}
{% if gad_stop %} {{ basic.button(id|_('stop'), gad_stop, '', icon0~'audio_stop.png', 1, 'mini') }} {% endif %} {% if gad_shade %} {{ basic.button(id|_('shade'), gad_shade, '', icon0~'fts_shutter_50.png', 1, 'mini') }} {% endif %}
{% endmacro %} /** * Shutter three * * @param unique id for this widget * @param name of the blind * @param the knx gad (groupaddress) for the actual position of the blinds * @param the knx gad (groupaddress) to move the shutters to the shade position (optional) */ {% macro three (id, txt, gad_pos, gad_shade) %} {% import "basic.html" as basic %} /** Design */
  {{ basic.slider(id|_('pos'), gad_pos, 0, 255, 5, 'vertical') }}
{{ txt }}
{% if gad_shade %} {{ basic.button(id|_('shade'), gad_shade, 'Beschatten', icon0~'fts_shutter_50.png', 1, 'mini') }}{% endif %}
{% endmacro %}