basic.glue
Used to glue two widgets together. Only needed if you don't use 'Realtime'!
If you click the 'from'-widget, the 'to'-widget will be reloaded and updated after a delay.
Parameters
{{ basic.glue(id_from, id_to) }}
id_from
id of the element that is being clicked (from)
id_to
id of the element that contains an item that will be changed (to)
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') }}
Author: Martin Gleiss and others