Skip to content

More than 9 codes, but only 1 helper per code #17

@bcjmk

Description

@bcjmk

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 data
  • initial: '{"lock_slot": []}'): Initializes the helper with lock_slot as 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 lock
    • input_text:name_entered: input text limiting the number and type of input using regex validation
    • input_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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions