petergridge / Irrigation-V5

Irrigation custom component for Home Assistant
GNU General Public License v3.0
71 stars 12 forks source link

Cannot delete old programs #75

Closed danielss24 closed 1 month ago

danielss24 commented 3 months ago

I have installed time ago this integration and seems to work well, but i cannot delete old programers and it is overlaping with new ones i want to create with same info. Any solve to this?

I have tried to disable (which barely works for me now) and delete > reload config or restart HA and they are back...

petergridge commented 2 months ago

Hi, have you recently upgraded from an older version? what was the version you upgraded from?

Do you have a program defined in YAML as well as in the Config Flow, if so you can delete the YAML version .

danielss24 commented 2 months ago

Hi, i have 5.4.15 version. I dont know if I need to install it again. I have done the input_number, selects and frecuency by YAML and all config by UI. So, i dont know what i need to delete

petergridge commented 2 months ago

Hi, I have release V5.4.16, I have it currently set as a Beta and will make it the main release once a few early adopters have had a chance to use if for a few weeks.

I have added a few additional debug statements in, please turn debug on for this component we may get a hint of what is happening.

image

There is also a service you can run that will list the current configuration out for the component:

image

If you could run these and check the log file for the information I could try to debug this issue some more.

bjdshp commented 2 months ago

i'm trying to delete as well. Making a bit of a mess trying to delete individual components. Can't figure it out.

petergridge commented 2 months ago

I have found some time at last to look into this. Sorry I have been busy with my day job.

Just checking to delete the irrigation program you are going to the settings: image and deleting from here: image This should delete anything created by the component. The other helpers you created can all be deleted either from the YAML if that is how they were created or from the settings: image

If you can take some screenshots of the process you are following and issue you are having so I can understand the issue better.

lorenzing commented 2 months ago

I have the same problem of @danielss24 . I'm not able to delete the old program as you explain, when I click on delete: image but if I restart my home assistant its come back

petergridge commented 2 months ago

And if you uninstall the component restart and reinstall do they come back?

lorenzing commented 2 months ago

And if you uninstall the component do they come back?

I've tyed to uninstall the component but I cant uninstall it becuse I'm not able to remove the entity correctly:

petergridge commented 2 months ago

Good to know Home Assistant is cleaning up after me 😄

I did have some issues a few versions back where the config was not being removed, that is I fixed now. Let me know if this cleans up the mess for you.

danielss24 commented 2 months ago

Hi, I have release V5.4.16, I have it currently set as a Beta and will make it the main release once a few early adopters have had a chance to use if for a few weeks.

I have added a few additional debug statements in, please turn debug on for this component we may get a hint of what is happening. image

There is also a service you can run that will list the current configuration out for the component: image

If you could run these and check the log file for the information I could try to debug this issue some more.

Hi, regarding this. I have already turn on debug mode and run the action to list configuration. But i cannot find the version u mentioned. Just doing it with 5.4.15. Where can i find log files?

petergridge commented 2 months ago

If you can try the process that @lorenzing followed above this sounds like it will clear the old config out.

To get the beta release: image then select the show beta versions image

To see the log: image image image

petergridge commented 1 month ago

Hi, Good new, I have identified the problem

danielss24 commented 1 month ago

Nice! what was about? ping when u have a new release

petergridge commented 1 month ago

V2024.09.01 is up as a Beta, there has been a lot of change under the covers so please let me know if you experience issues.

petergridge commented 1 month ago

Hi @danielss24, did the change fix your issue? Let me know and I will close the ticket.