albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
81 stars 20 forks source link

Help: Infinite loop #20

Closed hugo-leij closed 6 months ago

hugo-leij commented 7 months ago

Hi,

Just installed the plugin in but its in a infinite loop

image

How can is stop this

albaintor commented 7 months ago

Hi, which version did you install ? this problem has already been reported but I was unable to reproduce it. If you can send me the logs

Try one of the followings :

  1. Delete your config/component/electrolux_status directory through samba (windows connection) if you enabled the addon or from the file browser addon and try to restart
  2. Edit the homeassistant/.storage/core.config_entries file and remove all the corresponding Electrolux integrations
  3. Restore a previous backup from HA interace
  4. If you can't access your HA interface : SSH to your HA instance : ssh -l root and a/ ha backups => to list the backups b/ ha backups restore XXX <= where XXX = slug field of the backup point
joosthoi1 commented 7 months ago

Hi, which version did you install ? this problem has already been reported but I was unable to reproduce it. If you can send me the logs

Steps to reproduce:

  1. Add integration
  2. Enter wrong password
  3. Infinite login loop

I tried deleting and disabling the login from the UI while the entries were still below 1000, but that didn't work, it didn't remove them.

hugo-leij commented 7 months ago

Hi,

So i delete more than 100,000 lines in core.config_entries :-D Thnx for the solution @albaintor.

My steps

  1. Edit a file in python file with text
  2. Restart HA
  3. Delete config/component/electrolux_status directory
  4. Delete all the lines with vim (press V and scoll down).
  5. install de addon again with the right username en password.

While deleting, I saw my password was wrong :-O, so you are correct @joosthoi1 about the steps to reproduce.

slingshot74 commented 7 months ago

2. homeassistant/.storage/core.config_entries

Can someone share a screenshot please? I can't find the .storage folder :) Or which file browser addon to use. I only see the file editor addon in the addons to install Thanks!

I only see these files image

albaintor commented 7 months ago

It is hidden by default : from addon file editor, go to configuration options and remove the ".storage" entry from filter and restart the addon :

image
slingshot74 commented 7 months ago

Ah !! Thanks!

albaintor commented 7 months ago

Beware of not messing up with this file : don't forget to remove the trailing commas for instance. Sorry for this mess, I can reproduce the problem now. I am on it

albaintor commented 7 months ago

I fixed this in https://github.com/albaintor/homeassistant_electrolux_status/releases/tag/v1.0.6

slingshot74 commented 7 months ago

I did the update and after that everything was unavailable. I deleted the integration and add it again and everything is there again.

Do we need to delete the integration after each update? For me no problem but then I know I should do this.

albaintor commented 7 months ago

I have the same problem and this is new. I guess there is some instability on the websocket but maybe this is something else. I need to investigate

albaintor commented 6 months ago

I close this issue as considered as fixed. I have not seen the "unavailable entities" behaviour again since and I have no info to investigate it with.