Device-Widgets

device.blind device.codepad device.dimmer device.rtr device.shutter


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 connfig.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
a duration for unlocking the widgets (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.switch('switch1', 'bath.light.switch') }}
...
</div>

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

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

Enter Code

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

Widgets

Design

Misc