Merci pour le tips , ça m’aide bien 
Les logs (pi, j’ai 2 inverters offline, c’est normal, il fait presque nuit, du coup, ils produisent plus)
Et, ‹ ai changé les n › de serie
2022-12-20 16:54:04.073 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration apsystems_ecur which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-20 16:54:09.312 DEBUG (MainThread) [custom_components.apsystems_ecur] config={'host': '192.168.1.189', 'scan_interval': 300}
2022-12-20 16:54:09.312 DEBUG (MainThread) [custom_components.apsystems_ecur] config={'host': '192.168.1.184', 'scan_interval': 300}
2022-12-20 16:54:09.313 DEBUG (SyncWorker_5) [custom_components.apsystems_ecur] Querying ECU
2022-12-20 16:54:09.314 DEBUG (SyncWorker_3) [custom_components.apsystems_ecur] Querying ECU
2022-12-20 16:54:24.332 DEBUG (SyncWorker_5) [custom_components.apsystems_ecur] Got data from ECU
2022-12-20 16:54:24.333 DEBUG (SyncWorker_5) [custom_components.apsystems_ecur] Returning {'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [230, 230], 'inverters': {'703000108888': {'uid': '703000108888', 'online': True, 'signal': 71, 'frequency': 49.9, 'temperature': 21, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [231, 231]}, '703000098899': {'uid': '703000098899', 'online': True, 'signal': 70, 'frequency': 49.9, 'temperature': 22, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [230, 230]}}, 'ecu_id': '216300010123', 'today_energy': 1.33, 'lifetime_energy': 521.4, 'current_power': 0, 'qty_of_inverters': 2, 'qty_of_online_inverters': 2, 'data_from_cache': False, 'querying': True, 'restart_ecu': False}
2022-12-20 16:54:24.333 DEBUG (MainThread) [custom_components.apsystems_ecur] Finished fetching apsystems_ecur data in 15.021 seconds (success: True)
2022-12-20 16:54:24.337 DEBUG (SyncWorker_3) [custom_components.apsystems_ecur] Got data from ECU
2022-12-20 16:54:24.337 DEBUG (SyncWorker_3) [custom_components.apsystems_ecur] Returning {'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0], 'inverters': {'703000095555': {'uid': '70300009555', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}, '703000099999': {'uid': '703000099999', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}}, 'ecu_id': '216300028888', 'today_energy': 1.38, 'lifetime_energy': 123.4, 'current_power': 0, 'qty_of_inverters': 2, 'qty_of_online_inverters': 0, 'data_from_cache': False, 'querying': True, 'restart_ecu': False}
2022-12-20 16:54:24.337 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up apsystems_ecur platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/apsystems_ecur/sensor.py", line 63, in async_setup_entry
inverters = coordinator.data.get("inverters", {})
AttributeError: 'NoneType' object has no attribute 'get'
2022-12-20 16:54:24.342 DEBUG (MainThread) [custom_components.apsystems_ecur] Finished fetching apsystems_ecur data in 15.029 seconds (success: True)
2022-12-20 16:54:24.343 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform apsystems_ecur
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 583, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 551, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 211, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/apsystems_ecur/binary_sensor.py", line 63, in is_on
return self.coordinator.data.get(self._field)
AttributeError: 'NoneType' object has no attribute 'get'
2022-12-20 16:54:24.347 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up apsystems_ecur platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 583, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 551, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 211, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/apsystems_ecur/binary_sensor.py", line 63, in is_on
return self.coordinator.data.get(self._field)
AttributeError: 'NoneType' object has no attribute 'get'
2022-12-20 16:54:24.367 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform apsystems_ecur does not generate unique IDs. ID 216300028888_data_from_cache already exists - ignoring binary_sensor.ecu_using_cached_data
2022-12-20 16:54:24.369 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform apsystems_ecur does not generate unique IDs. ID 216300028888_restart_ecu already exists - ignoring binary_sensor.ecu_restart
2022-12-20 16:54:24.369 ERROR (MainThread) [homeassistant.components.switch] Platform apsystems_ecur does not generate unique IDs. ID 216300028888_query_device already exists - ignoring switch.ecu_query_device
Aprés une suppression d’un ECU , un restart de Ha et un rajout, j’ai des logs de debugs qui sont top clean:
2022-12-20 17:04:08.607 DEBUG (MainThread) [custom_components.apsystems_ecur] config={'host': '192.168.1.184', 'scan_interval': 300}
2022-12-20 17:04:08.608 DEBUG (SyncWorker_4) [custom_components.apsystems_ecur] Querying ECU
2022-12-20 17:04:23.657 DEBUG (SyncWorker_4) [custom_components.apsystems_ecur] Got data from ECU
2022-12-20 17:04:23.657 DEBUG (SyncWorker_4) [custom_components.apsystems_ecur] Returning {'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0], 'inverters': {'703000095555': {'uid': '703000095555', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}, '703000099999': {'uid': '703000099999', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}}, 'ecu_id': '216300028000', 'today_energy': 1.38, 'lifetime_energy': 123.4, 'current_power': 0, 'qty_of_inverters': 2, 'qty_of_online_inverters': 0, 'data_from_cache': False, 'querying': True, 'restart_ecu': False}
2022-12-20 17:04:23.657 DEBUG (MainThread) [custom_components.apsystems_ecur] Finished fetching apsystems_ecur data in 15.050 seconds (success: True)
2022-12-20 17:05:03.622 DEBUG (MainThread) [custom_components.apsystems_ecur.config_flow] Starting config flow class...
2022-12-20 17:05:03.622 DEBUG (MainThread) [custom_components.apsystems_ecur.config_flow] Starting step_user
2022-12-20 17:05:03.622 DEBUG (MainThread) [custom_components.apsystems_ecur.config_flow] Returning to show form
2022-12-20 17:05:08.931 DEBUG (MainThread) [custom_components.apsystems_ecur.config_flow] Starting step_user
2022-12-20 17:05:08.931 DEBUG (MainThread) [custom_components.apsystems_ecur.config_flow] User Input is not none
2022-12-20 17:05:24.061 DEBUG (MainThread) [custom_components.apsystems_ecur] config={'host': '192.168.1.189', 'scan_interval': 300}
2022-12-20 17:05:24.062 DEBUG (SyncWorker_2) [custom_components.apsystems_ecur] Querying ECU
2022-12-20 17:05:39.169 DEBUG (SyncWorker_2) [custom_components.apsystems_ecur] Got data from ECU
2022-12-20 17:05:39.169 DEBUG (SyncWorker_2) [custom_components.apsystems_ecur] Returning {'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0], 'inverters': {'703000108000': {'uid': '703000108000', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}, '703000097777': {'uid': '703000097777', 'online': False, 'signal': 0, 'frequency': 0.0, 'model': 'YC600/DS3/DS3D-L', 'channel_qty': 2, 'power': [0, 0], 'voltage': [0, 0]}}, 'ecu_id': '216300010000', 'today_energy': 1.33, 'lifetime_energy': 521.4, 'current_power': 0, 'qty_of_inverters': 2, 'qty_of_online_inverters': 0, 'data_from_cache': False, 'querying': True, 'restart_ecu': False}
2022-12-20 17:05:39.170 DEBUG (MainThread) [custom_components.apsystems_ecur] Finished fetching apsystems_ecur data in 15.108 seconds (success: True)
J’imagine qu’un restart de HA va me ressortir le premier pavé avec les erreurs …