/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Info
To glue two widgets together is only needed if the bus changes items and no 'Realtime' is used.
It is not necessary with 'Realtime', because all items are refresed every second.
Also it is not necessary with 'Websocket' based drivers, because they will commit changes immediately.
Example
If you press the switch, a write for the switch and a (delayed) read-request for the slider will be send.
{{ basic.stateswitch('switch1', 'bath.light.switch', '', '', ['light_light.svg', 'light_light.svg']) }}
{{ basic.slider('slider1', 'bath.light.value') }}
{{ basic.glue('switch1', 'slider1') }}
{{ basic.stateswitch('switch1', 'bath.light.switch', '', '', ['light_light.svg', 'light_light.svg']) }} {{ basic.slider('slider1', 'bath.light.value') }} {{ basic.glue('switch1', 'slider1') }}
{% endblock %}