Features Wishlist

Lock keypad: show the PIN length from the lock's code format

flinty1970Suggested this wish Β·

A lock with a fixed-length code, for example a template lock with code_format: '^\d{6}$', opens the keypad with 4 empty dots, so it looks like a 4-digit PIN. A 6-digit code does work (the dots grow as you type), but people stop at 4, get "wrong code", and after three tries the keypad locks.

What I'd like

  • When the lock's code_format fixes the length (^\d{6}$, \d{6}, ^[0-9]{6}$), show that many empty dots.
  • Ideally, send the code as soon as the last digit is typed, as the alarm keypad can.
  • Other formats (\d{4,8}, number, none) can stay as they are today.

Why it seems small The screen already gets code_format: it uses it to decide whether a code is needed and whether it can be typed. Only the dots ignore it (they start at max(4, typed)).

My use A PIN to open the garage door from a screen I'm putting outside (a template lock around the garage door: 6 digits to open, no code to close).

Tessera 0.4.101, firmware 0.63.0, Guition 4" (ESP32-S3).

Discussion 0

Add a comment

Start the conversation

Share an example, ask a question or explain how you would use this.

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images Β· URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.