Features Wishlist
Lock keypad: show the PIN length from the lock's code format
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_formatfixes 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 commentStart the conversation
Share an example, ask a question or explain how you would use this.