home_assistant_solarman: Querying [3 - 128] failed with exception [IllegalDataValueError]

Hi,

I have a few microinverters which used to work with the 2mptt yaml file. Since a few days they no longer work and provide the following error:

2023-08-13 17:10:37.318 DEBUG (SyncWorker_2) [pysolarmanv5.pysolarmanv5] Socket setup completed... <socket.socket fd=27, family=2, type=1, proto=6, laddr=('192.168.xxx.yyy', 60194), raddr=('192.168.yyy.zzz', 8899)> 2023-08-13 17:10:37.318 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.321 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [5] retry attempts left 2023-08-13 17:10:37.323 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.325 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [4] retry attempts left 2023-08-13 17:10:37.327 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.329 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [3] retry attempts left 2023-08-13 17:10:37.331 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.332 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [2] retry attempts left 2023-08-13 17:10:37.333 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.336 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [1] retry attempts left 2023-08-13 17:10:37.338 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed with exception [IllegalDataValueError] 2023-08-13 17:10:37.339 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying [3 - 128] failed, [0] retry attempts left 2023-08-13 17:10:37.340 WARNING (SyncWorker_2) [custom_components.solarman.solarman] Querying registers [3 - 128] failed, aborting

I really haven’t a clue where to start looking. I updated to the latest ‘Main’. (I was back an x-number of versions of the ‘Main’. I don’t know which moment did work)

Edit: I ‘downgraded’ to 1.4.3. I made a copy of the current deye_mppt2.yaml from Github and copied it to custom_parameters.yaml adjusted my configurations to use that file.

It works now for me, but the current Main does not.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 57 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Der Einwand mit der FW, kann ich ggf später / morgen prüfen. Da man die 2.27 nicht downloaden kann, vom FW-Server. Muss ich auf den Kollegen warten, der einen deye M80 mit diesem Relais bekommt.

Es gibt inzwischen die 2.30 und 2.31, die werden vermutlich ähnlich zur 2.27 sein und man kann sie vom FW-Server downloaden.

the problem is, both files 2mppt and 4mppt have a ending value of 0x0080.

In the PDF of the inverter the say: 0x0001~ 0x007D

my guess is:

requests:

  • start: 0x0003 end: 0x007D mb_functioncode: 0x03

may fix it. you can give it a try, i cant test because around 2000 the thing went offline.

Result: 2023-09-04 07:57:50.515 DEBUG (SyncWorker_9) [custom_components.solarman.solarman] Querying [3 - 112] succeeded 2023-09-04 07:57:50.515 DEBUG (SyncWorker_9) [custom_components.solarman.solarman] All queries succeeded, exposing updated values.****

looks good for far, have no time to check the entities right now

WR: SUN1600G3-EU-230 (4xMPPT) Firmware VersionMW3_16U_5406_1.53

Es läuft endlich, danke der Yaml-Datei vom Post 367. Mir fehlen leider noch die Eingänge von 3 und 4. Hat da jemand noch eine Übersicht welche register dafür gibt?

Nur einen HA ist am start.

meinst du mit 3 und 4 die von PV-3 und PV-4 ?

hier ist die PDF die ich nutze Deye_Modbus.-.-.V118.pdf

@niclas911 Change the first lines of /config/custom_components/solarman/inverter_definitions/deye_2mppt.yaml:

# First version : 22.2.2023
# Microinverter SUN600G3 (DEYE/VESDAS)
# 2x MPPT, 2x inverter
# 1x Logger, 2x Module, 

requests:
  - start: 0x0001
    end:  0x007D
    mb_functioncode: 0x03


Restart home-assistant. Works for me.

Yep, all values are shown and seem to make sense.

With these changes, it also works for the Deye SUN-M60G3-EU-Q0 start: 0x0001 end: 0x007D mb_functioncode: 0x03

requests:
  - start: 0x0001`
    end: 0x007D`
    mb_functioncode: 0x03
2023-09-06 08:04:20.833 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] Starting to query for [1] ranges...

2023-09-06 08:04:20.833 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] Querying [1 - 125]...

2023-09-06 08:04:20.833 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] SENT: a5 17 00 10 45 07 00 d0 99 4f e9 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 01 00 7d d4 2b 97 15

2023-09-06 08:04:27.212 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] RECD: a5 0d 01 10 15 07 34 d0 99 4f e9 02 01 85 96 07 00 0c 11 00 00 e5 7f f0 64 01 03 fa 01 00 02 01 32 33 30 34 32 33 33 32 35 39 00 01 00 00 12 0c 07 00 01 02 01 17 12 18 00 00 1f 40 00 00 02 01 00 4b 00 00 00 3c 17 09 06 08 04 13 00 00 00 00 0a be 07 08 14 50 12 8e 00 00 00 00 00 00 13 9c 00 2c 00 00 00 00 00 00 00 00 00 64 00 00 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 01 ff d5 00 00 00 0a 00 02 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 01 27 00 00 00 00 00 00 00 00 00 00 00 90 00 00 00 90 00 00 09 4c 00 00 00 00 00 01 00 00 00 00 13 88 00 00 00 00 00 00 00 00 00 00 00 00 01 86 00 00 00 00 00 00 0c 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 be 00 02 01 4c 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4b 30 20 15

2023-09-06 08:04:27.213 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] Querying [1 - 125] succeeded

2023-09-06 08:04:27.213 DEBUG (SyncWorker_10) [custom_components.solarman.solarman] All queries succeeded, exposing updated values.

With Deye Sun800 G3 EU and FW 2.06

My Serial starts with 39xxx

hf!

Edit: pretty odd… i just updated a component, and had to restart HA… and zing this pops up again:

2023-09-06 08:50:12.582 WARNING (SyncWorker_4) [custom_components.solarman.solarman] Querying 1 - 125 - failed with exception :V5FrameError: V5 frame contains invalid start or end values

2023-09-06 08:50:12.913 WARNING (SyncWorker_4) [custom_components.solarman.solarman] Querying [1 - 125] failed, [0] retry attempts left

no values are exposed. i would say my logger is not on v5 or something, but then it works somehow.