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 #456

Closed AnnoyingTechnology closed 7 months ago

AnnoyingTechnology commented 7 months ago
2023-11-28 19:46:13.096 WARNING (SyncWorker_3) [custom_components.solarman.solarman] Querying [512 - 597] failed with exception [CRCError: CRC validation failed.]
2023-11-28 19:46:13.595 WARNING (SyncWorker_3) [custom_components.solarman.solarman] Querying [512 - 597] failed, [1] retry attempts left
2023-11-28 19:46:13.676 WARNING (SyncWorker_3) [custom_components.solarman.solarman] Querying [512 - 597] failed with exception [CRCError: CRC validation failed.]

Any ideas ?

edit: DEBUG logs

2023-11-28 20:01:58.055 INFO (SyncWorker_4) [custom_components.solarman.solarman] Connecting to solarman data logger 192.168.1.60:8899
2023-11-28 20:01:58.060 DEBUG (SyncWorker_4) [custom_components.solarman.solarman] Socket setup completed... <socket.socket fd=41, family=2, type=1, proto=6,
laddr=('192.168.1.160', 55218), raddr=('192.168.1.60', 8899)>
2023-11-28 20:01:58.061 DEBUG (SyncWorker_4) [custom_components.solarman.solarman] SENT: a5 17 00 10 45 5b 00 7d fe f5 8e 02 00 00 00 00 00 00 00 00 00 00 00
00 00 00 01 03 02 00 00 56 c4 4c 33 15
2023-11-28 20:01:58.192 DEBUG (SyncWorker_4) [custom_components.solarman.solarman] RECD: a5 13 00 10 15 5b 83 7d fe f5 8e 02 01 07 7a 6d 00 32 15 00 00 1d bf
f8 64 01 90 02 00 03 1a 15
2023-11-28 20:01:58.192 WARNING (SyncWorker_4) [custom_components.solarman.solarman] Querying [512 - 597] failed with exception [CRCError: CRC validation fail
ed.]
2023-11-28 20:01:58.192 INFO (SyncWorker_4) [custom_components.solarman.solarman] Disconnecting from solarman data logger 192.168.1.60:8899

Tried :

AnnoyingTechnology commented 7 months ago

Ok so the register are totally different between ES and EP.

Using registers from sofar2mqtt project seems to work. I'll be creating a specific .yaml file for HYD-3k-6k-EP soon if this is confirmed.

AnnoyingTechnology commented 7 months ago

My bad, I was using hyd-zss-hp-3k-6k.yaml when it worked. This is what should be used with HYD-3k-6k-EP.