davidrapan / ha-solarman

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

Deye SUN-9K-G03 with LSW3_15_FFFF_1.0.9E #43

Closed Soltinioo closed 3 months ago

Soltinioo commented 4 months ago

HELLO. I've used Stefan's integration so far. Version 1.4.3 only works. I wanted to try yours. Unfortunately it doesn't connect. I'm pasting the log. Can you help with this?

2024-07-27 18:50:19.066 DEBUG (MainThread) [custom_components.solarman] async_setup_entry({'data': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'disabled_by': None, 'domain': 'solarman', 'entry_id': '01J3TGKF6N6NEHJ8185ANV7601', 'minor_version': 1, 'options': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'title': 'Inverter', 'unique_id': None, 'version': 1}) 2024-07-27 18:50:19.066 DEBUG (MainThread) [custom_components.solarman.discovery] discover 2024-07-27 18:50:19.096 DEBUG (MainThread) [custom_components.solarman.discovery] _discover: [192.168.1.7, 34EAE7B65472, 1782345394] 2024-07-27 18:50:20.185 DEBUG (MainThread) [custom_components.solarman.api] {'connections': {('mac', '34:ea:e7:b6:54:72')}, 'identifiers': {('solarman', 1782345394)}, 'name': 'Inverter', 'manufacturer': 'Deye', 'model': 'STRING', 'serial_number': 1782345394} 2024-07-27 18:50:20.186 DEBUG (MainThread) [custom_components.solarman] async_setup: coordinator.async_config_entry_first_refresh 2024-07-27 18:50:20.186 DEBUG (MainThread) [custom_components.solarman.parser] Defaults for update_interval: 5, code: 3, min_span: 25, digits: 6 2024-07-27 18:50:20.186 DEBUG (MainThread) [custom_components.solarman.api] Scheduling 2 query requests. #0 2024-07-27 18:50:20.187 DEBUG (MainThread) [custom_components.solarman.api] Querying (3 - 7) ... 2024-07-27 18:50:20.187 INFO (MainThread) [custom_components.solarman.api] Connecting to 192.168.1.7:8899 2024-07-27 18:50:20.192 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 8f 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 0d 15 2024-07-27 18:50:28.505 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 8f 41 b2 6e 3c 6a 02 01 f1 16 ee 00 f5 19 00 00 61 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 18 15 2024-07-27 18:50:28.506 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:50:29.507 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 4 2024-07-27 18:50:29.508 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:50:29.517 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:50:29.518 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 90 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 0e 15 2024-07-27 18:50:29.639 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 90 42 b2 6e 3c 6a 02 01 f2 16 ee 00 f6 19 00 00 61 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 1c 15 2024-07-27 18:50:29.640 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:50:30.642 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 3 2024-07-27 18:50:30.642 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:50:30.647 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:50:30.648 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 91 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 0f 15 2024-07-27 18:50:32.397 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 91 44 b2 6e 3c 6a 02 01 f5 16 ee 00 f9 19 00 00 61 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 25 15 2024-07-27 18:50:32.398 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:50:33.399 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 2 2024-07-27 18:50:33.399 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:50:33.406 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:50:33.407 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 92 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 10 15 2024-07-27 18:50:33.520 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 92 45 b2 6e 3c 6a 02 01 f6 16 ee 00 fa 19 00 00 61 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 29 15 2024-07-27 18:50:33.521 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:50:34.522 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 1 2024-07-27 18:50:34.522 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:50:34.529 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:50:34.530 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 93 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 11 15 2024-07-27 18:50:34.644 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 93 46 b2 6e 3c 6a 02 01 f7 16 ee 00 fb 19 00 00 61 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 2d 15 2024-07-27 18:50:34.645 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:50:35.646 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 0, aborting. 2024-07-27 18:50:35.647 DEBUG (MainThread) [custom_components.solarman.api] Request failed. [Previous Status: Disconnected] 2024-07-27 18:50:35.647 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:50:35.649 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching Inverter data in 15.463 seconds (success: False) 2024-07-27 18:50:35.650 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown 2024-07-27 18:50:35.650 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:50:35.651 DEBUG (MainThread) [custom_components.solarman.api] Connection lost can be during closing ignored. 2024-07-27 18:51:55.828 DEBUG (MainThread) [custom_components.solarman] async_setup_entry({'data': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'disabled_by': None, 'domain': 'solarman', 'entry_id': '01J3TGKF6N6NEHJ8185ANV7601', 'minor_version': 1, 'options': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'title': 'Inverter', 'unique_id': None, 'version': 1}) 2024-07-27 18:51:55.828 DEBUG (MainThread) [custom_components.solarman.discovery] discover 2024-07-27 18:51:55.901 DEBUG (MainThread) [custom_components.solarman.discovery] _discover: [192.168.1.7, 34EAE7B65472, 1782345394] 2024-07-27 18:51:57.005 DEBUG (MainThread) [custom_components.solarman.api] {'connections': {('mac', '34:ea:e7:b6:54:72')}, 'identifiers': {('solarman', 1782345394)}, 'name': 'Inverter', 'manufacturer': 'Deye', 'model': 'STRING', 'serial_number': 1782345394} 2024-07-27 18:51:57.005 DEBUG (MainThread) [custom_components.solarman] async_setup: coordinator.async_config_entry_first_refresh 2024-07-27 18:51:57.005 DEBUG (MainThread) [custom_components.solarman.parser] Defaults for update_interval: 5, code: 3, min_span: 25, digits: 6 2024-07-27 18:51:57.006 DEBUG (MainThread) [custom_components.solarman.api] Scheduling 2 query requests. #0 2024-07-27 18:51:57.006 DEBUG (MainThread) [custom_components.solarman.api] Querying (3 - 7) ... 2024-07-27 18:51:57.006 INFO (MainThread) [custom_components.solarman.api] Connecting to 192.168.1.7:8899 2024-07-27 18:51:57.018 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 06 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 84 15 2024-07-27 18:52:03.854 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 06 4b b2 6e 3c 6a 02 01 50 17 ee 00 54 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 5a 15 2024-07-27 18:52:03.855 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:52:04.858 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 4 2024-07-27 18:52:04.858 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:52:04.865 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:52:04.866 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 07 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 85 15 2024-07-27 18:52:04.974 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 07 4c b2 6e 3c 6a 02 01 52 17 ee 00 56 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 60 15 2024-07-27 18:52:04.975 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:52:05.976 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 3 2024-07-27 18:52:05.977 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:52:05.984 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:52:05.985 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 08 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 86 15 2024-07-27 18:52:06.100 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 08 4d b2 6e 3c 6a 02 01 53 17 ee 00 57 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 64 15 2024-07-27 18:52:06.101 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:52:07.102 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 2 2024-07-27 18:52:07.103 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:52:07.109 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:52:07.110 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 09 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 87 15 2024-07-27 18:52:07.215 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 09 4e b2 6e 3c 6a 02 01 54 17 ee 00 58 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 68 15 2024-07-27 18:52:07.216 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:52:08.219 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 1 2024-07-27 18:52:08.219 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:52:08.235 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:52:08.235 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 0a 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 88 15 2024-07-27 18:52:08.352 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 0a 4f b2 6e 3c 6a 02 01 55 17 ee 00 59 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 6c 15 2024-07-27 18:52:08.353 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:52:09.354 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 0, aborting. 2024-07-27 18:52:09.355 DEBUG (MainThread) [custom_components.solarman.api] Request failed. [Previous Status: Disconnected] 2024-07-27 18:52:09.355 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:52:09.359 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching Inverter data in 12.353 seconds (success: False) 2024-07-27 18:52:09.360 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown 2024-07-27 18:52:09.360 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:52:09.361 DEBUG (MainThread) [custom_components.solarman.api] Connection lost can be during closing ignored. 2024-07-27 18:53:29.691 DEBUG (MainThread) [custom_components.solarman] async_setup_entry({'data': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'disabled_by': None, 'domain': 'solarman', 'entry_id': '01J3TGKF6N6NEHJ8185ANV7601', 'minor_version': 1, 'options': {'name': 'Inverter', 'inverter_discovery': True, 'inverter_host': '192.168.1.7', 'inverter_serial': 1782345394, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'lookup_file': 'deye_string.yaml', 'battery_life_cycle_rating': 6000, 'battery_nominal_voltage': 48}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'title': 'Inverter', 'unique_id': None, 'version': 1}) 2024-07-27 18:53:29.691 DEBUG (MainThread) [custom_components.solarman.discovery] discover 2024-07-27 18:53:29.746 DEBUG (MainThread) [custom_components.solarman.discovery] _discover: [192.168.1.7, 34EAE7B65472, 1782345394] 2024-07-27 18:53:30.838 DEBUG (MainThread) [custom_components.solarman.api] {'connections': {('mac', '34:ea:e7:b6:54:72')}, 'identifiers': {('solarman', 1782345394)}, 'name': 'Inverter', 'manufacturer': 'Deye', 'model': 'STRING', 'serial_number': 1782345394} 2024-07-27 18:53:30.838 DEBUG (MainThread) [custom_components.solarman] async_setup: coordinator.async_config_entry_first_refresh 2024-07-27 18:53:30.838 DEBUG (MainThread) [custom_components.solarman.parser] Defaults for update_interval: 5, code: 3, min_span: 25, digits: 6 2024-07-27 18:53:30.839 DEBUG (MainThread) [custom_components.solarman.api] Scheduling 2 query requests. #0 2024-07-27 18:53:30.839 DEBUG (MainThread) [custom_components.solarman.api] Querying (3 - 7) ... 2024-07-27 18:53:30.839 INFO (MainThread) [custom_components.solarman.api] Connecting to 192.168.1.7:8899 2024-07-27 18:53:30.851 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 ba 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 38 15 2024-07-27 18:53:38.634 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 ba 50 b2 6e 3c 6a 02 01 af 17 ee 00 b3 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 d1 15 2024-07-27 18:53:38.636 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:53:39.280 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] COUNTER: a5 01 00 10 47 ba 51 b2 6e 3c 6a 00 29 15 2024-07-27 18:53:39.639 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 4 2024-07-27 18:53:39.639 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:53:39.646 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:53:39.647 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 bb 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 39 15 2024-07-27 18:53:39.771 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 bb 52 b2 6e 3c 6a 02 01 b0 17 ee 00 b4 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 d6 15 2024-07-27 18:53:39.773 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:53:40.776 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 3 2024-07-27 18:53:40.777 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:53:40.783 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:53:40.784 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 bc 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 3a 15 2024-07-27 18:53:40.903 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 bc 53 b2 6e 3c 6a 02 01 b1 17 ee 00 b6 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 db 15 2024-07-27 18:53:40.904 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:53:41.906 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 2 2024-07-27 18:53:41.906 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:53:41.925 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:53:41.925 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 bd 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 3b 15 2024-07-27 18:53:42.039 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 bd 54 b2 6e 3c 6a 02 01 b3 17 ee 00 b7 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 e0 15 2024-07-27 18:53:42.040 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:53:43.043 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 1 2024-07-27 18:53:43.043 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False. 2024-07-27 18:53:43.050 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] Successful reconnect 2024-07-27 18:53:43.050 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] SENT: a5 17 00 10 45 be 00 b2 6e 3c 6a 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 03 00 05 75 c9 3c 15 2024-07-27 18:53:43.159 DEBUG (MainThread) [custom_components.solarman.api] [1782345394] RECD: a5 1f 00 10 15 be 55 b2 6e 3c 6a 02 01 b4 17 ee 00 b8 1a 00 00 62 0e b7 65 01 03 0a 32 31 30 36 32 33 34 32 35 38 30 6e 00 00 e4 15 2024-07-27 18:53:43.160 WARNING (MainThread) [custom_components.solarman.api] Querying (3 - 7) failed. #0 [error: unpack requires a buffer of 10 bytes] 2024-07-27 18:53:44.162 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 0, aborting. 2024-07-27 18:53:44.163 DEBUG (MainThread) [custom_components.solarman.api] Request failed. [Previous Status: Disconnected] 2024-07-27 18:53:44.163 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:53:44.165 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching Inverter data in 13.327 seconds (success: False) 2024-07-27 18:53:44.166 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown 2024-07-27 18:53:44.167 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.7:8899 2024-07-27 18:53:44.167 DEBUG (MainThread) [custom_components.solarman.api] Connection lost can be during closing ignored.

davidrapan commented 4 months ago

Hi! Thank you for your post here!

I have some general idea why it is. So 1.4.3 of Stephans integration uses it's own implementation of solarman protocol. Newer version and then also mine integration uses pysolarmanv5 library which handles that.

That being said I have planned to also implement some sort of a support for also ethernet stick which would involve adding that legacy implementation for that case so maybe I could also solve your issue with that too. But it has a catch I would need your tight cooperation with me cause I have no way how to test it all afterwards, so...

What do you say?

Cheers!

Soltinioo commented 4 months ago

Sure. As soon as you create something I will test it. From what I saw on Stefan's github, many people only run version 1.4.3. We will all be grateful to you if there are finally no errors in the logs. 😀

davidrapan commented 4 months ago

Can you try something for me? Can you remove from the inverter definition profile which you are using (I believe it's deye_string?) that last sensor?:

- name: "Inverter ID"
  class: ""
  state_class: ""
  uom: ""
  scale: 1
  rule: 5
  registers: [0x0003, 0x0004, 0x0005, 0x0006, 0x0007]

And run it without it? Turn on the debug log, restart the HA and show me to logs please.

Thanks.

Soltinioo commented 4 months ago

error_log-1.txt

davidrapan commented 4 months ago

Can you tell me the exact model of the inverter you are using?

Soltinioo commented 4 months ago

inverter: DEYE SUN-9K-G03 Logger: LSW3 firmware LSW3_15_FFFF_1.0.9E

davidrapan commented 4 months ago

Hi @Soltinioo, so in 1af1143 is added some experimental support for your case. Could you try it?

You will have to manually download and override integration in your HA with latest code from this repo though as those changes are not yet part of any release.

Soltinioo commented 4 months ago

I did what you said. Everything works great! No errors in the logs! Thank you very much! I'm sure everyone using version 1.4.3 will switch to this integration 😁

davidrapan commented 4 months ago

Great. Can you maybe gather some debug logs for us?

Best would couple of random samples from multiple different days? That would be awesome! :)

Soltinioo commented 4 months ago

Sure, I'll be watching the integration. I'll post the logs soon

satyamedh commented 3 months ago

Heya! Running into the same issue here, similar model. I ended up modifying the two files in that commit and it does work now, but the power is quite different from the stick logger's online web interface and the one from HA

attached screenshots image image

Not sure if you'd prefer a new issue for this as it's based on an unreleased commit, so just posting here

davidrapan commented 3 months ago

Stick Logger local web is broken and I never saw it to show correct values with any inverter device.

satyamedh commented 3 months ago

oh is it? aight then thanks!

davidrapan commented 3 months ago

Yeah, mine (SG04LP3) for example shows with every restart random and totally different value than it should.

davidrapan commented 1 month ago

Hi @Soltinioo, not sure if this message will find you but I have a question for you. Could you please tell me what type of inverter it shows you in the Device sensor?

Thank you.

Soltinioo commented 1 month ago

Screenshot_2024-09-29-16-10-41-342_io homeassistant companion android is that what you asked?

davidrapan commented 1 month ago

Magnificent! Thank you very much!