Variables vs Helpers for User Settings/Parameters

Hi, in my current situation, I have defined a set of user/parameters.

For example, I have input_boolean for turning ON/OFF some companion app notifications. I also have some timers and input_datetime to turn off some of the input_boolean for a period of time.
The number of helpers for each users is only ~6/users for now.

Today, I had to create a new account and realized that its becoming a bit annoying, especially with new features i would like to add down the road.

I stumbled on the custom hacs by snarky-snark or by rogro82 and it looks pretty much what i would need, if I understand correctly.

Then i realized their last commit were dating a few years back.

Has a similar thing been implemented directly in HA?
OR
Is it a valid current way of doing this type of things?
OR
Can we create helpers from a script run by an automation triggered by the creation of a new person?
OR
Is there a better way to do this type of user/parameters setup?

Thanks

Hi Basdub,

There is this…

Thanks, I’ve seen this before but overlooked it since a few “errors/comments”.

To be honest, it’s also because I’m not sure I understand all of it, but I’ll give it a try tomorrow and start playing with it. :stuck_out_tongue_winking_eye:

I use Local To-do lists and Local Calendar to store user configuration.

For example, in a list I call “Hvac Profiles” I store entries to configure the heating/cooling system. Below is one entry from that To-do list. (The entries follow a simplified json encoding that doesn’t require quotes.)

Overnight

{ heat: { to: 58.5, diff: 1.0, sensor: Bedroom, zone: Bedroom, reset: true }, cool: { to:69.5, min run: 5, max run: 30, fan after: 8, min off: 14, sensor: Bedroom, zone: North, reset: true } }

These are used via the following yaml:

To retrieve the todo list:

action: todo.get_items
metadata: {}
data:
  status: needs_action
response_variable: response
target:
  entity_id: "{{ todo_id }}"

And then this to choose a specific to do item and extract into an object (selected_profile) the various attributes.

      answers: "{{ response[todo_id]['items'] }}"
      selected_profile: |-
        {{ 
          (answers | selectattr('summary', 'eq', profile_name) | first).description |
          regex_replace("([\+\-a-zA-Z0-9_\.\'\%\’]+)", "\"\\1\"") | 
          regex_replace("\" \"", " ") | 
          from_json
        }}