macxq / foxess-ha

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

No inverter data and HA won't restart #277

Closed johnleeming closed 2 weeks ago

johnleeming commented 2 weeks ago

Describe the bug I have no foxess data in HA though can see it in teh foxess portal.

I am blocked form restarting HA through it's settings and get the message:

The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)

I have checked the inverter sn etc and generated a new API key

I have restarted the RaspberryPi that is running HA and also restarted through docker but no change.

Any help much appreciated.

Debug logs: 2024-11-10 17:14:05.133 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration foxess which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-11-10 17:16:48.271 ERROR (MainThread) [homeassistant.components.homeassistant] The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) 2024-11-10 17:16:48.275 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [3690614824] The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) 2024-11-10 17:26:12.049 ERROR (MainThread) [homeassistant.components.homeassistant] The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) 2024-11-10 17:26:12.052 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [3696890600] The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.foxess - cannot import name 'UnitOfReactivePower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) HA version: Home Assistant 2023.8.4 Frontend 20230802.1 - latest

foxess-ha version: v0.43

FozzieUK commented 2 weeks ago

If you can update your home assistant core to the latest version that would resolve the error.

If you are unable to do that, fall back to the integration version v0.42 (before v0.42-beta1) - which does not apply the ha core fix.

But also note that the OpenAPI is not working at the moment for any users since Fox did some work on their servers - we are waiting for them to fix that.

ssherlock commented 2 weeks ago

It's working for me Dave. I was getting what I believe is a database error earlier this morning but it has been OK this afternoon, both for my own app and your HA stuff.

Simon

On Sun, 10 Nov 2024 at 18:38, Dave Foster @.***> wrote:

If you can update your home assistant core to the latest version that would resolve the error.

If you are unable to do that, fall back to the integration version v0.42 - which does not apply the ha core fix.

But also note that the OpenAPI is not working at the moment for any users since Fox did some work on their servers - we are waiting for them to fix that.

— Reply to this email directly, view it on GitHub https://github.com/macxq/foxess-ha/issues/277#issuecomment-2466840564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD2M5BSBOCBB3MH2FPVQQLZ76R3VAVCNFSM6AAAAABRQNLMQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWHA2DANJWGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

FozzieUK commented 2 weeks ago

@ssherlock - my test system is still showing a 41200 error, as is Energy Stats - perhaps it's working still for certain users, as Fox rebuild their servers.

ssherlock commented 2 weeks ago

I must have got lucky this time, as it was back for me around midday.

fpacardoso commented 2 weeks ago

Same with my HA, no data since yesterday.

FozzieUK commented 2 weeks ago

Hi, sorry it's dragging on, it appears not all users are affected which is making it a bit slower to resolve. One of my colleagues is in dialogue with Fox so fingers crossed this gets resolved very soon.

jbub commented 2 weeks ago

Finally the api works for me now, it became alive during the night.

johnleeming commented 2 weeks ago

now on 2024.11.1 and getting data, thanks.