mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.13k stars 678 forks source link

[Feature]: Migrate YAML based configuration to the UI #2375

Open bcutter opened 4 months ago

bcutter commented 4 months ago

I propose a feature for:

The integration in general

Describe your wanted feature

See the initial idea (and usual progress for official/core integration) starting with this comment:

https://github.com/mampfes/hacs_waste_collection_schedule/issues/2303#issuecomment-2263248538

Now that we have the great option to use WCS from the UI, existing YAML based configurations should be migrated. For this,

One goal of this is to have the integration visible in the integrations dashboard. Current status:

grafik (invisible / "ghost mode"...)

5ila5 commented 4 months ago

I was interested how/if this is possible and did some digging, but I could not find any documentation on how this should be done, nor any guide showing how this works. I don't think this is possible, the way you describe it here. I think we can access the YAML configuration in the config_flow so you could probably add an option to migrate the integration over to the GUI based way. I don't know how the official

If anyone finds a good way to do the way @bcutter describes it: please let me know

bcutter commented 3 months ago

Did you have a look at https://developers.home-assistant.io ?

What I described is the pure user experience after dozens of HA core updates over the years (which basically is: migration happens automatically and it is safe to just remove all the YAML based configuration parts). Seen that for many integrations many times.

Maybe the process is somehow limited to core integrations? But you are right, there should be some information somewhere. I also searched the web and https://community.home-assistant.io but could not immediately spot a hot trap.

bcutter commented 3 months ago

Note: HA did a step for YAML based integrations. Now at least the pure existence of also WCS is visible in the UI. A first step...

https://www.home-assistant.io/blog/2024/08/07/release-20248/#integrations-and-helpers-set-up-via-yaml-now-visible-in-the-ui