Open EdoTraverso opened 1 week ago
Hi, what append since the last time ? errors occur after a simple HA restart ? In the log, it's not koolnova 1 but koolnova 2.
Line 367: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Device-sensor already exists - ignoring sensor.koolnova_2_device
Line 368: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Address-sensor already exists - ignoring sensor.koolnova_2_address
Line 369: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Modbus-RTU-sensor already exists - ignoring sensor.koolnova_2_koolnova_2_modbus_rtu
Line 370: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC1-throughput-sensor already exists - ignoring sensor.koolnova_2_engine_ac1_throughput
Line 371: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC1-temp-order-sensor already exists - ignoring sensor.koolnova_2_engine_ac1_temperature_order
Line 372: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC2-throughput-sensor already exists - ignoring sensor.koolnova_2_engine_ac2_throughput
Line 373: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC2-temp-order-sensor already exists - ignoring sensor.koolnova_2_engine_ac2_temperature_order
Line 374: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC3-throughput-sensor already exists - ignoring sensor.koolnova_2_engine_ac3_throughput
Line 375: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC3-temp-order-sensor already exists - ignoring sensor.koolnova_2_engine_ac3_temperature_order
Line 376: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC4-throughput-sensor already exists - ignoring sensor.koolnova_2_engine_ac4_throughput
Line 377: 2024-11-20 14:53:51.333 ERROR (MainThread) [homeassistant.components.sensor] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC4-temp-order-sensor already exists - ignoring sensor.koolnova_2_engine_ac4_temperature_order
Line 378: 2024-11-20 14:53:51.334 INFO (MainThread) [homeassistant.components.select] Setting up koolnova_bms.select
Line 379: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Global-HVACMode-select already exists - ignoring select.koolnova_2_global_hvac_mode
Line 380: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Global-HVACEff-select already exists - ignoring select.koolnova_2_global_hvac_efficiency
Line 381: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC1-State-select already exists - ignoring select.koolnova_2_engine_ac1_state
Line 382: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC2-State-select already exists - ignoring select.koolnova_2_engine_ac2_state
Line 383: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC3-State-select already exists - ignoring select.koolnova_2_engine_ac3_state
Line 384: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.select] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Engine-AC4-State-select already exists - ignoring select.koolnova_2_engine_ac4_state
Line 385: 2024-11-20 14:53:51.334 INFO (MainThread) [homeassistant.components.switch] Setting up koolnova_bms.switch
Line 386: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.switch] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Global-HVAC-State-switch already exists - ignoring switch.koolnova_2_koolnova_2_global_hvac_state
Line 387: 2024-11-20 14:53:51.334 ERROR (MainThread) [homeassistant.components.switch] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Modbus-Debug-switch already exists - ignoring switch.koolnova_2_koolnova_2_modbus_debug
Line 388: 2024-11-20 14:53:51.335 INFO (MainThread) [homeassistant.components.climate] Setting up koolnova_bms.climate
Line 389: 2024-11-20 14:53:51.335 ERROR (MainThread) [homeassistant.components.climate] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Area 1-area-climate already exists - ignoring climate.koolnova_2_area_1
Line 390: 2024-11-20 14:53:51.335 ERROR (MainThread) [homeassistant.components.climate] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Area 2-area-climate already exists - ignoring climate.koolnova_2_area_2
Line 391: 2024-11-20 14:53:51.335 ERROR (MainThread) [homeassistant.components.climate] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Area 3-area-climate already exists - ignoring climate.koolnova_2_area_3
Line 392: 2024-11-20 14:53:51.335 ERROR (MainThread) [homeassistant.components.climate] Platform koolnova_bms does not generate unique IDs. ID koolnova_bms-koolnova 2-Area 4-area-climate already exists - ignoring climate.koolnova_2_area_4
Yes, I just needed to restart HA, nothing else.
I can try to re-add the systems and keep an eye on the integration and send you the logs.
Ok I found out that the situation is now the opposite, where now I can see the entities correctly under each system but now koolnova 1 is working while koolnova 2 is not working. home-assistant-1.log [home-assistant-2.log](https://github.com/user-attachments/files/17844825/home-assistant-2.lo g)
I attach two logs, log 1 is before the restart of HA and the second after. I also attach the screenshots of the integration.
Log analysis shows that there was a disconnection of the modbus client during the integration setup after restarting Home Assistant.
Ligne 194: 2024-11-21 11:27:32.609 DEBUG (MainThread) [custom_components.koolnova_bms.koolnova.operations] [OPERATION] dict: {'_mode': 'Modbus RTU', '_timeout': 5, '_debug': False, 'port': '/dev/ttyUSB1', 'addr': 49, 'baudrate': '9600', 'parity': 'E', 'bytesize': 8, 'stopbits': 1}
Ligne 195: 2024-11-21 11:27:32.611 DEBUG (MainThread) [custom_components.koolnova_bms.koolnova.device] Retreive system status ...
Ligne 196: 2024-11-21 11:27:32.611 DEBUG (MainThread) [custom_components.koolnova_bms.koolnova.operations] reading holding register: 0x50 - Slave: 49
Ligne 197: 2024-11-21 11:27:32.612 DEBUG (MainThread) [custom_components.koolnova_bms.koolnova.operations] [OPERATION] dict: {'_mode': 'Modbus RTU', '_timeout': 5, '_debug': False, 'port': '/dev/ttyUSB2', 'addr': 49, 'baudrate': '9600', 'parity': 'E', 'bytesize': 8, 'stopbits': 1}
Ligne 199: 2024-11-21 11:27:32.612 DEBUG (MainThread) [custom_components.koolnova_bms.koolnova.device] Retreive system status ...
Ligne 200: 2024-11-21 11:27:32.612 ERROR (MainThread) [custom_components.koolnova_bms] Something went wrong ... Client Modbus not connected
Ligne 202: File "/config/custom_components/koolnova_bms/__init__.py", line 69, in async_setup_entry
Ligne 205: File "/config/custom_components/koolnova_bms/koolnova/device.py", line 303, in async_update
Ligne 208: File "/config/custom_components/koolnova_bms/koolnova/operations.py", line 242, in async_system_status
Ligne 211: File "/config/custom_components/koolnova_bms/koolnova/operations.py", line 78, in __async_read_register
Ligne 213: custom_components.koolnova_bms.koolnova.operations.ModbusConnexionError: Client Modbus not connected
You could play with the Timeout setting (default: 5 seconds) on the integration configuration page and increase it to 15 seconds (Max: 30 seconds).
Hi,
this morning I noticed that now the Koolnova 1 is not available, I attach both screenshots and log.
Thank you
home-assistant-2.log