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 …

1 Like

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.

4 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.

7 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”.

3 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)

7 Likes

voted, would love to have this option

2 Likes

Voted. It’s a no-brainer. The same idea as duplicating an automation.

1 Like

Definitely a WTH moment for me. After testing a new sensor helper that creates an average of my all my home temperature sensors, I wanted to replicate it for the humidity sensors as it’s the same devices. Should have been a simple duplicate, edit the YAML to search and replace one word, save. But sadly no.

1 Like

5 Months later - still nothing lol. I have the input_select helper duplication task as well… a duplicate option would be very welcome!

There’s no guarantee that any WTH is picked up and added to HA. WTH is a call to get volunteers to help add nice easy features to HA.