-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I think we could reduce the number of helpers if we used attributes instead of individual helpers. Would it make sense to have a helper format like:
input_text:
lock_data:
name: text
pin: [4-10] digit numeric
enabled: false
notify: false
initial: '{"lock_slot": []}'input_text.lock_data: Is the entity ID used to access the datainitial: '{"lock_slot": []}'): Initializes the helper withlock_slotas a key for access- May want to create other helpers such as:
input_number:lock_slot_max: input_number limiting the number of slots for an individual lockinput_text:name_entered: input text limiting the number and type of input using regex validationinput_number:pin_helper: ensures the PIN is 4-9 (or what ever length is supported) digits
Thoughts? I'll try to spend some time manipulating the objects but not doing the zwave updates (yet). Been a while since I've done any coding. Gotta figure out some of this process first.
Metadata
Metadata
Assignees
Labels
No labels