hd-keypad
on unlockA PIN pad: dots, the keys 1–9, ⌫, 0 and ✓. The digits go to the server and nowhere else; the template never sees them. A right PIN (the account’s, set in Account) runs data-hd-on-unlock, whose event carries nothing; a wrong one shakes, and after 5 wrong in a row every keypad of the account waits 5 minutes. Works on a keyboard too (digits, Backspace, Enter, Escape). E.g. <hd-keypad label="Disarm" data-hd-on-unlock="set('homealarm_state', 'disarmed', settings.alarm.id)"></hd-keypad>.
| Attribute | What it is |
|---|---|
label | Shown above the dots, e.g. Disarm. |
shuffle | The digits in a new order each time, against smudges and onlookers. |
pins | The account’s other PINs it takes too, by id, comma-separated; the account’s own always unlocks. Usually from a setting of kind pins: pins="{{ settings.who }}". |
<hd-keypad label="Disarm" shuffle data-hd-on-unlock="set('homealarm_state', 'disarmed', settings.alarm.id)"></hd-keypad>