Device-Widgets

device.blind device.codepad device.dimmer device.rtr device.shutter device.smallshut device.roofwindow device.uzsuicon device.uzsugraph


device.codepad

The Codepad is used to protect some widgets. You have to enter a correct code to use the widgets for a time. You may specify a global code in the config.php for all codepads.

Parameters
{{ device.codepad(id, code, title, duration) }}
id
unique id for this widget
code
code to be entered (optional, default in config)
title
a title for the pad (optional)
duration
how long should the widgets be unlocked (optional, default: 10 seconds)

To bind some widgets to the codepad use a div to group them. Than use the "data-bind" attribute in the div-tag.
Important: The Codepad has to be placed after the widgets.
Example
<div class="codepad" data-bind='codepad1' >
...
{{ basic.stateswitch('', 'bath.light.switch') }}
...
</div>

{{ device.codepad('codepad1') }}

If you want to test ist, the correct number for that codepad is: 0000
control_on_off control_on_off 1 control_on_off control_on_off

Enter Code

1 2 3 4 5 6 7 8 9 - 0 OK

Author:Martin Gleiss

Widgets

Design

Misc