davidrapan / ha-solarman

⚡ Solarman Stick Logger integration for 🏠 Home Assistant
MIT License
110 stars 25 forks source link

CRCError linking ZCS Azzurro HYD 3000-ZSS using sofar_hyd-es.yaml definition #236

Closed rdl987 closed 1 month ago

rdl987 commented 1 month ago

Description

I'm trying to link my ZCS Azzurro HYD 3000-ZSS to home assistant via this integration but using the sofar_hyd-es.yaml definition I got CRCError: CRC validation failed.

Could you please help me?

Thank you

Reproduction Steps

After adding new device I get the error during the initializing process

Log

2024-10-24 14:24:01.562 DEBUG (MainThread) [custom_components.solarman] async_setup_entry({'created_at': '2024-10-24T12:13:46.529189+00:00', 'data': {'name': 'Inverter', 'inverter_serial': 2756684434, 'inverter_host': '192.168.178.116', 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'sofar_hyd-es.yaml', 'battery_nominal_voltage': 48, 'battery_life_cycle_rating': 6000}, 'discovery_keys': {}, 'disabled_by': None, 'domain': 'solarman', 'entry_id': '01JAZ74YN1HDDPB77VT40F5Q2S', 'minor_version': 1, 'modified_at': '2024-10-24T12:13:46.529192+00:00', 'options': {'name': 'Inverter', 'inverter_serial': 2756684434, 'inverter_host': '192.168.178.116', 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'sofar_hyd-es.yaml', 'battery_nominal_voltage': 48, 'battery_life_cycle_rating': 6000}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'title': 'Inverter', 'unique_id': 'solarman_2756684434', 'version': 1}) 2024-10-24 14:24:01.562 DEBUG (MainThread) [custom_components.solarman.discovery] discover 2024-10-24 14:24:01.562 DEBUG (MainThread) [custom_components.solarman.discovery] _discover_all: Broadcasting on 192.168.178.116 2024-10-24 14:24:01.563 DEBUG (MainThread) [custom_components.solarman.discovery] _discover 2024-10-24 14:24:01.566 DEBUG (MainThread) [custom_components.solarman.discovery] _discover: [192.168.178.116, E8FDF8E995B4, 2756684434] 2024-10-24 14:24:01.745 DEBUG (MainThread) [custom_components.solarman.parser] Defaults for update_interval: 5, code: 3, min_span: 25, digits: 6 2024-10-24 14:24:01.745 DEBUG (MainThread) [custom_components.solarman.api] {'connections': {('mac', 'e8:fd:f8:e9:95:b4')}, 'identifiers': {('solarman', 2756684434)}, 'serial_number': 2756684434, 'manufacturer': 'Sofar', 'model': 'HYD-ES', 'name': 'Inverter'} 2024-10-24 14:24:01.745 DEBUG (MainThread) [custom_components.solarman] async_setup: coordinator.async_config_entry_first_refresh 2024-10-24 14:24:01.746 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Scheduling 2 query requests. #0 2024-10-24 14:24:01.746 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 ... 2024-10-24 14:24:01.746 INFO (MainThread) [custom_components.solarman.api] [2756684434] Connecting to 192.168.178.116:8899 2024-10-24 14:24:01.755 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] SENT: a5 17 00 10 45 0d 00 92 aa 4f a4 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 02 00 00 56 c4 4c 16 15 2024-10-24 14:24:01.811 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] RECD: a5 13 00 10 15 0d 04 92 aa 4f a4 02 01 21 62 da 01 27 1e 00 00 3f da 3f 65 01 90 02 04 00 72 15 2024-10-24 14:24:01.812 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 failed, attempts left: 4 [CRCError: CRC validation failed.] 2024-10-24 14:24:02.013 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] SENT: a5 17 00 10 45 0e 00 92 aa 4f a4 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 02 00 00 56 c4 4c 17 15 2024-10-24 14:24:02.083 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] RECD: a5 13 00 10 15 0e 05 92 aa 4f a4 02 01 21 62 da 01 27 1e 00 00 3f da 3f 65 01 90 02 04 00 74 15 2024-10-24 14:24:02.083 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 failed, attempts left: 3 [CRCError: CRC validation failed.] 2024-10-24 14:24:02.484 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] SENT: a5 17 00 10 45 0f 00 92 aa 4f a4 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 02 00 00 56 c4 4c 18 15 2024-10-24 14:24:02.556 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] RECD: a5 13 00 10 15 0f 06 92 aa 4f a4 02 01 22 62 da 01 27 1e 00 00 3f da 3f 65 01 90 02 04 00 77 15 2024-10-24 14:24:02.556 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 failed, attempts left: 2 [CRCError: CRC validation failed.] 2024-10-24 14:24:03.158 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] SENT: a5 17 00 10 45 10 00 92 aa 4f a4 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 02 00 00 56 c4 4c 19 15 2024-10-24 14:24:03.233 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] RECD: a5 13 00 10 15 10 07 92 aa 4f a4 02 01 23 62 da 01 28 1e 00 00 3f da 3f 65 01 90 02 04 00 7b 15 2024-10-24 14:24:03.234 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 failed, attempts left: 1 [CRCError: CRC validation failed.] 2024-10-24 14:24:04.037 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] SENT: a5 17 00 10 45 11 00 92 aa 4f a4 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 02 00 00 56 c4 4c 1a 15 2024-10-24 14:24:04.102 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] RECD: a5 13 00 10 15 11 08 92 aa 4f a4 02 01 24 62 da 01 29 1e 00 00 3f da 3f 65 01 90 02 04 00 7f 15 2024-10-24 14:24:04.102 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Querying 0512 - 0597 | 0x0200 - 0x0255 # 086 failed, attempts left: 0, aborting. [CRCError: CRC validation failed.] 2024-10-24 14:24:04.102 DEBUG (MainThread) [custom_components.solarman.api] [2756684434] Fetching failed. [Previous State: Disconnected (-1)] 2024-10-24 14:24:04.102 INFO (MainThread) [custom_components.solarman.api] [2756684434] Disconnecting from 192.168.178.116:8899 2024-10-24 14:24:04.103 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching Inverter data in 2.357 seconds (success: False) 2024-10-24 14:24:04.103 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown 2024-10-24 14:24:04.103 INFO (MainThread) [custom_components.solarman.api] [2756684434] Disconnecting from 192.168.178.116:8899

Version

v24.10.16