suaveolent / ha-hoymiles-wifi

Home Assistant custom component for Hoymiles DTUs and the HMS-XXXXW-2T microinverters
MIT License
129 stars 9 forks source link

Bug fetching the DTU meter kind #40

Closed elafontaine closed 4 months ago

elafontaine commented 4 months ago

Describe the bug The connection between HA and the DTU seems to drop every 5 minutes, while this is also a separate issue, I noticed that it also changed the DTU meter kind by adding a random character at the end.

To Reproduce Steps to reproduce the behavior:

  1. Go to logbook
  2. Look at the DTU entries that change values

Expected behavior No change to the meter kind should change if it didn't change

Screenshots If applicable, add screenshots to help explain your problem. Screenshot_20240529_142410_Home Assistant

Additional context Add any other context about the problem here.

elafontaine commented 4 months ago

Another capture about the DTU status in HA Screenshot_20240529_142520_Home Assistant

suaveolent commented 4 months ago

Are you running your DTU in offline mode (e.g. blocked via Router / Firewall) ?

elafontaine commented 4 months ago

I do not know what this means, but the DTU is reporting it's data to S-miles Cloud. So I would assume it isn't in "offline" mode.

suaveolent commented 4 months ago

I see. I was asking since the Hoymiles W-series has a similar issue when access to the Internet is blocked.

What is weird: I have implemented the CRC check in the library, so in my opinion these are the values the DTU transmits. Otherwise, there would be an error. However, I did not have a closer look yet.

I guess that you are already running the latest firmware of the DTU?

elafontaine commented 4 months ago

Yes, and my guess is that there must be a single byte to much in the string...

elafontaine commented 4 months ago

turns out I wasn't. I was expecting the mobile application would had told me, but turns out it doesn't even suggest it even on the main s-miles pages ! I updated to the latest (2.23) and that solved the issues. So sorry for the noise.

image

suaveolent commented 4 months ago

Great, thanks for letting me know.