WTH create helper from copy of another

Hello,

Can we create a new helper by using an already existing one and just editing before saving.
When you want replicate a logic for differents need you have to make the process from zero each time.

Found another WTH from 2022 which seems to ask the same thing, hope it still a valid topic.

Regards

You can copy and paste if you use YAML :slight_smile:

1 Like

And lose features …

Which ones?

All features available in the UI are available in YAML. More so in some cases (schedule helper has values for the time period in YAML, not in UI).

Adding template entities to devices isn’t … if you’re into that kind of thing.

3 Likes

Often I create a median temperature helper for a handful of sensors, then I want a min and max as well for the exact same sensors. I have to select them all again manually which becomes tedious. It would be nice to be able to copy an existing helper and change a setting to create the new one

Do you mean copying all automations that uses a helper and apply another helper to them?

It’s not uncommon in my use cases to need multiple similar helpers. As they are template helpers it’s annoying to have to copy paste all of the jinja etc.

A duplicate option on the three dot menu of the helpers on their page would make my life easier.

3 Likes

It’s also time consuming to create a bunch of identical “input_select” helpers where you have to copy each item in the list manually. Would be much easier to have a “duplicate” or “copy and paste” option.

Of course you can create them in YAML, but I feel that Home Assistant is moving away from the YAML approach so I want to do it the “correct way”.

2 Likes

So, as OP of the original 55 voted ( and counting !!! :D) request, posting link here to older WTH:

All use cases listed above are common for me too, duplicating a helper would be speeding up a lot of work (e.g. adding multiple sensors which need helpers, like adding energy consumption from sensor in kW → kWh)

3 Likes