tykeal / homeassistant-rental-control

Rental Control system for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a way for generated codes to be a customizable length

tykeal opened this issue · comments

Code generation is currently set to only generate 4 digit PINs. Some locks may require longer PIN lengths to operate. This should be a configurable option.

Known caveats: phone code generation would have to be ignored as all calendars that have been inspected that provide any phone information restrict it to the last 4 digits.

In/Out based generation would likely need to be rethought given the current implementation.

Random generation would just need to have the digit count extended.