egguy / addon-grott

A HA addon for grott
3 stars 1 forks source link

Add-on fails to start #27

Closed mrfixit1 closed 3 months ago

mrfixit1 commented 4 months ago

All fine until yesterday, today the add-on doesn’t start.

Info and error message from log: … Add-on version: 0.1.7 You are running the latest version of this add-on. System: Home Assistant OS 11.5 (aarch64 / raspberrypi3-64) Home Assistant Core: 2024.2.1 Home Assistant Supervisor: 2024.01.1 …. s6-rc: info: service legacy-services successfully started [13:43:24] INFO: Preparing to start... [13:43:48] ERROR: Got unexpected response from the API: Service not enabled ./script.sh: line 230: GROTT_CONFIG_MQTT_HOST: unbound variable s6-rc: info: service legacy-services: stopping …

The datalogger shows CONN OK. Switching it from HA back to the direct connection with server.growatt.com updates the data in the Growatt dashboard, as expected.

Anyone have any ideas how to get the add-on going again?

egguy commented 4 months ago

Hi, could you try to restart the mosquitto addon, then the add-on?

It seems this procedure solve this error. I still don't know the root cause, I will try to find a more definitive fix.

mrfixit1 commented 4 months ago

Thanks for the super quick response. Unfortunately the restarts didn’t help. The error message is no longer present in the grott add-on log and all looks normal up to the first response from the Growatt server, but nothing more appears and I’m not seeing any PV data in the HA dashboard. I repeated the process with the same result, but this was after sundown so will have to wait until tomorrow to check for any data.

mrfixit1 commented 4 months ago

Daytime update. No data this morning after the 2nd restart yesterday, or after a 3rd cycle of: stop grott - restart mosquitto - start grott. I then set the data logger back to the growatt server, stopped grott, restarted mosquitto, started grott and reset the data logger to HA; this worked!

github-actions[bot] commented 3 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

splitbrain commented 2 months ago

I had the same issue. A restart of mosquitto did fix it for me.