egguy / addon-grott

A HA addon for grott
3 stars 1 forks source link

Add-on stops working infrequently at random times #32

Open mrfixit1 opened 4 months ago

mrfixit1 commented 4 months ago

The add-on stopped unexpectedly again yesterday. When I checked my PV performance after dark, the output power was stuck at the value from around 15:00 and the energy dashboard showed less solar production (from Grott) than sent to the grid (from the power meter). Data gaps have happened before, maybe about twice a month on average. I previously thought they were only after HA updates, but this one however was not. This morning the usual workaround of restarting the add-on restored the data flow.

Config: Grott add-on v0.1.7, HAOS core 2024.2.4 on a Pi3.

lexo12345 commented 3 months ago

I'm having the same issue. It was all working & then got stuck/stopped updating data/sensors.

Any ideas on how to diagnose/fix?

Gertjezzz commented 2 months ago

I'm having the same issue. Manually restart addon helps starting en reconnecting data. It happens multiple times a day, where my tracking of data is lost.

Dont know if this helps, but its the last lines of the log before exiting service;`

proxy.main(conf) File "/app/grottproxy.py", line 144, in main self.on_recv(conf) File "/app/grottproxy.py", line 238, in on_recv procdata(conf,data)
^^^^^^^^^^^^^^^^^^^ File "/app/grottdata.py", line 220, in procdata for keyword in conf.recorddict[layout].keys() :


KeyError: 'T06NNNNMIN'
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped`

Running version:


Add-on: Grott stable branch (2.7) The Growatt inverter monitor with current HA plugin integrated

Add-on version: 0.1.8 You are running the latest version of this add-on. System: Home Assistant OS 12.2 (aarch64 / raspberrypi4-64) Home Assistant Core: 2024.4.2 Home Assistant Supervisor: 2024.04.0

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

egguy commented 2 months ago

Ho , thanks for the debug log.

I'm going to take a look at it.

marcelwestrahome commented 2 months ago

Same for me, turn on the watch dog, but does not make sense

github-actions[bot] commented 1 month 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!

Gertjezzz commented 1 month ago

The issue hasn't been resolved. Updated all to the most recent version, even beta version. Didn't fix the issue

egguy commented 1 month ago

Hi, there is a new update as the new stable branch is the 2.8.3, it should be better.

If it continues, Would you mind giving me more logs? This would help me to discover if it is a grott bug who should be reported upstream/

Gertjezzz commented 1 month ago

Thanks for the reply. I did an update. But I could not find a stable 2.8.3 in the addon store. I have 2 Beta 2.8.x versions and a stable 2.7 version. Screenshot_20240604_175129_Home Assistant

Here is the log of the 2.8.x beta version; `


Add-on: Grott Beta branch (2.8) The Growatt inverter monitor with current HA plugin integrated

Add-on version: 0.1.7 You are running the latest version of this add-on. System: Home Assistant OS 12.3 (aarch64 / raspberrypi4-64) Home Assistant Core: 2024.5.5 Home Assistant Supervisor: 2024.05.1

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started [17:44:37] INFO: Preparing to start... '

Gertjezzz commented 1 month ago

And the log of the 2.7 stable version

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=7, family=2, type=1, proto=0, laddr=('172.30.33.9', 5279), raddr=('192.168.178.14', 1026)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>
 - Growatt data decrypted V2

 - Growatt packet received:
      <socket.socket fd=7, family=2, type=1, proto=0, laddr=('172.30.33.9', 5279), raddr=('192.168.178.14', 1026)>

 - Growatt packet received:
      <socket.socket fd=6, family=2, type=1, proto=0, laddr=('172.30.33.9', 60320), raddr=('47.91.67.66', 5279)>
 - Growatt data decrypted V2
 - Matched inverter serial to inverter type TL3
 - Grott MQTT topic used : energy/growatt

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>

 - Growatt packet received:
      <socket.socket fd=7, family=2, type=1, proto=0, laddr=('172.30.33.9', 5279), raddr=('192.168.178.14', 1026)>

 - Growatt packet received:
      <socket.socket fd=4, family=2, type=1, proto=0, laddr=('172.30.33.9', 60308), raddr=('47.91.67.66', 5279)>
 - Growatt data decrypted V2
 - Matched inverter serial to inverter type MIN

Traceback (most recent call last): File "/app/grott.py", line 35, in proxy.main(conf) File "/app/grottproxy.py", line 144, in main self.on_recv(conf) File "/app/grottproxy.py", line 238, in on_recv procdata(conf,data)
^^^^^^^^^^^^^^^^^^^ File "/app/grottdata.py", line 220, in procdata for keyword in conf.recorddict[layout].keys() :


KeyError: 'T06NNNNMIN'
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Grott stable branch (2.7)
 The Growatt inverter monitor with current HA plugin integrated
-----------------------------------------------------------
 Add-on version: 0.1.9
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.5
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
github-actions[bot] commented 53 minutes 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!