macxq / foxess-ha

Home Assistant & FoxESS integration. Monitor you photovoltaic installation directly from HA ☀️ ⚡️
115 stars 37 forks source link

All entities gone to unknow after update to v0.38 #235

Closed dario-io closed 6 months ago

dario-io commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings - Device and Services - Entities tab
  2. Click on serchbar - type foxess
  3. Click on one of the entities
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Screenshot 2024-03-27 alle 13 11 09 Screenshot 2024-03-27 alle 13 10 57

Debug logs:

Screenshot 2024-03-27 alle 13 13 31

HA version: Core: 2024.3.3 Supervisor: 2024.03.0 Operating System: 12.1 Frontend: 20240307.0

foxess-ha version: 0.38

ecbos1967 commented 6 months ago

Same for me, the integration starts working again after a reboot of HA. Next day it stops again until I reboot

FozzieUK commented 6 months ago

Can you check what the ‘inverter’ sensor shows - is it showing ‘off-line’

If you revert back to your previously used version does it work ok ?

Also can you post what hardware you are running it on, RaspPi 4 etc..

ecbos1967 commented 6 months ago

It is on a rpi4-64, the inverter is the Foxess ESS F4600. During the night the inverter goes into a sleep mode and it seems that HA does not re-connect when the inverter goes back online. The log shows: "FoxESS has Cloud timeout or the Inverter is off-line, connection will be retried in 1 minute". When I restart HA it comes online again. Have not yet tried to go back to the previous version, will try that today

FozzieUK commented 6 months ago

Thanks for that, very helpful.

Just looking at it now, I think whilst adding the improved off-line handling, I have added a bug where if an inverter goes into standby, the integration will never see it come out again - which is what you are seeing, apologies.

I will do some testing for this later today, and hope to get a fix out shortly (v0.37 will run ok) - I will update this post to confirm.

kamyk commented 6 months ago

Hi, Same for me. I have just revert to older version. Waiting for fix. Best

FozzieUK commented 6 months ago

Hi all, can you please download and try the latest release v0.39, this corrects the off-line handling 'unavailable' entity problems of v0.38 and will correctly follow the inverter status as it switches on and off-line.

Please note whilst off-line, the integration checks site status every 5 minutes (not every 1 minute) so it does not use too many API calls.

https://github.com/macxq/foxess-ha/releases/tag/v0.39

ecbos1967 commented 6 months ago

I can confirm it is working as expected on v0.39, thanks for your efforts to maintain this integration

FozzieUK commented 6 months ago

That's great, thanks very much.

I'll leave the issue open for a few days, and anybody with v0.38 can see there is a fix. 👍