StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
508 stars 191 forks source link

CRCError: CRC validation failed #469

Open onetoomany opened 6 months ago

onetoomany commented 6 months ago

My logs are full of the following error message:

2023-12-17 17:35:13.681 WARNING (SyncWorker_1) [custom_components.solarman.solarman] Querying [512 - 597] failed with exception [CRCError: CRC validation failed.]
2023-12-17 17:35:14.182 WARNING (SyncWorker_1) [custom_components.solarman.solarman] Querying [512 - 597] failed, [1] retry attempts left
2023-12-17 17:46:14.017 WARNING (SyncWorker_0) [custom_components.solarman.solarman] Querying [4272 - 4284] failed with exception [CRCError: CRC validation failed.]
2023-12-17 17:46:14.517 WARNING (SyncWorker_0) [custom_components.solarman.solarman] Querying [4272 - 4284] failed, [1] retry attempts left

My inverter type is Sofar HYD 5000 ES (SM1ES150). Firmware G360.

The data seems to be read ok, with the exception of 0x022B - "Inverter alert message"; this appears to be classed incorrectly as an alert for my system.

jayzees commented 4 months ago

same here with the same setup

darkman82 commented 3 months ago

Same with HYD 6000 (ZM1ES060) with Firmware G363. HA on raspberry Pi 3+.

Usually 30% of readings fail with that error, the read is ok after 1-2 attempts.

CRC errors come from uModbus library.

Already tried two different stick loggers 17 and 27 . Same results.

sjmtlewy commented 1 month ago

I'm getting this as well. I've worked round it by upping the retry limit to 4

darkman82 commented 1 month ago

@sjmtlewy I'd suggest you put a sleep between retries. It helped. 1 second is enough in my case.

Have a look at #523 too. I left a piece of code you could try.