rcasula / kostalpiko-homeassistant

19 stars 15 forks source link

adding multiple inverters confuses the configuration #23

Open redlefloh opened 1 year ago

redlefloh commented 1 year ago

Hi, I am trying to add 3 Kostal inverters to my HA with this integration. Unfortunately the integration seems to get confused and doesn't cleanly create the 3 devices. I have a Kostal Piko 3.6, a Kostal Piko 5.5, and a Kostal Piko 10.1.
Here is what happens:

Here is how it looks like: 01 Adding Piko 3 6 02 Created Piko 3 6 03 Adding Piko 5 5 04 Created Piko 5 5 05 Adding Piko 10 1 06 Created Piko 10 1 07 Overview of the Integrations 08 Opening kostal_piko_10_1 09 Opening kostal_piko_3_6 10 Opening kostal_piko_5_5 11 Clicking on 2 devices in kostal_piko_3_6 12 First device in kostal_piko_3_6 is the actual Piko 3 6 13 Second device in kostal_piko_3_6 is actually the Piko 5 5 14 And the device in kostal_piko_5_5 is actually the Piko 10 1

I see a bunch of error messages in the log: home-assistant.log:2023-01-30 20:36:27.222 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 Current power already exists - ignoring sensor.kostal_piko_3_6_current_power_2 home-assistant.log:2023-01-30 20:36:27.224 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 Total energy already exists - ignoring sensor.kostal_piko_3_6_total_energy_2 home-assistant.log:2023-01-30 20:36:27.226 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 Daily energy already exists - ignoring sensor.kostal_piko_3_6_daily_energy_2 home-assistant.log:2023-01-30 20:36:27.227 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 String 1 voltage already exists - ignoring sensor.kostal_piko_3_6_string_1_voltage_2 home-assistant.log:2023-01-30 20:36:27.229 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 String 1 current already exists - ignoring sensor.kostal_piko_3_6_string_1_current_2 home-assistant.log:2023-01-30 20:36:27.231 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L1 voltage already exists - ignoring sensor.kostal_piko_3_6_l1_voltage_2 home-assistant.log:2023-01-30 20:36:27.232 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L1 power already exists - ignoring sensor.kostal_piko_3_6_l1_power_2 home-assistant.log:2023-01-30 20:36:27.234 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L2 voltage already exists - ignoring sensor.kostal_piko_3_6_l2_voltage home-assistant.log:2023-01-30 20:36:27.235 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L2 power already exists - ignoring sensor.kostal_piko_3_6_l2_power home-assistant.log:2023-01-30 20:36:27.237 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L3 voltage already exists - ignoring sensor.kostal_piko_3_6_l3_voltage home-assistant.log:2023-01-30 20:36:27.238 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 L3 power already exists - ignoring sensor.kostal_piko_3_6_l3_power home-assistant.log:2023-01-30 20:36:27.240 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90506NHP00013 Status already exists - ignoring sensor.kostal_piko_3_6_status_2 home-assistant.log:2023-01-30 20:37:26.986 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.kostal_piko_5_5_daily_energy (<class 'custom_components.kostal.sensor.PikoSensor'>) with state_class measurement has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom integration author. home-assistant.log:2023-01-30 20:37:27.152 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Current power already exists - ignoring sensor.kostal_piko_5_5_current_power home-assistant.log:2023-01-30 20:37:27.155 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Total energy already exists - ignoring sensor.kostal_piko_5_5_total_energy home-assistant.log:2023-01-30 20:37:27.157 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Daily energy already exists - ignoring sensor.kostal_piko_5_5_daily_energy home-assistant.log:2023-01-30 20:37:27.159 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 1 voltage already exists - ignoring sensor.kostal_piko_5_5_string_1_voltage home-assistant.log:2023-01-30 20:37:27.162 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 1 current already exists - ignoring sensor.kostal_piko_5_5_string_1_current home-assistant.log:2023-01-30 20:37:27.164 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 2 voltage already exists - ignoring sensor.kostal_piko_5_5_string_2_voltage home-assistant.log:2023-01-30 20:37:27.166 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 2 current already exists - ignoring sensor.kostal_piko_5_5_string_2_current home-assistant.log:2023-01-30 20:37:27.168 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L1 voltage already exists - ignoring sensor.kostal_piko_5_5_l1_voltage home-assistant.log:2023-01-30 20:37:27.169 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L1 power already exists - ignoring sensor.kostal_piko_5_5_l1_power home-assistant.log:2023-01-30 20:37:27.171 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L2 voltage already exists - ignoring sensor.kostal_piko_5_5_l2_voltage home-assistant.log:2023-01-30 20:37:27.172 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L2 power already exists - ignoring sensor.kostal_piko_5_5_l2_power home-assistant.log:2023-01-30 20:37:27.174 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L3 power already exists - ignoring sensor.kostal_piko_5_5_l3_power home-assistant.log:2023-01-30 20:37:27.176 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Status already exists - ignoring sensor.kostal_piko_5_5_status home-assistant.log:2023-01-30 20:37:27.177 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L3 voltage already exists - ignoring sensor.kostal_piko_5_5_l3_voltage home-assistant.log:2023-01-30 20:37:27.874 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Current power already exists - ignoring sensor.kostal_piko_5_5_current_power home-assistant.log:2023-01-30 20:37:27.875 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Total energy already exists - ignoring sensor.kostal_piko_5_5_total_energy home-assistant.log:2023-01-30 20:37:27.877 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Daily energy already exists - ignoring sensor.kostal_piko_5_5_daily_energy home-assistant.log:2023-01-30 20:37:27.878 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 1 voltage already exists - ignoring sensor.kostal_piko_5_5_string_1_voltage home-assistant.log:2023-01-30 20:37:27.880 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 1 current already exists - ignoring sensor.kostal_piko_5_5_string_1_current home-assistant.log:2023-01-30 20:37:27.881 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 2 voltage already exists - ignoring sensor.kostal_piko_5_5_string_2_voltage home-assistant.log:2023-01-30 20:37:27.883 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 String 2 current already exists - ignoring sensor.kostal_piko_5_5_string_2_current home-assistant.log:2023-01-30 20:37:27.885 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L1 voltage already exists - ignoring sensor.kostal_piko_5_5_l1_voltage home-assistant.log:2023-01-30 20:37:27.886 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L1 power already exists - ignoring sensor.kostal_piko_5_5_l1_power home-assistant.log:2023-01-30 20:37:27.888 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L2 voltage already exists - ignoring sensor.kostal_piko_5_5_l2_voltage home-assistant.log:2023-01-30 20:37:27.889 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L2 power already exists - ignoring sensor.kostal_piko_5_5_l2_power home-assistant.log:2023-01-30 20:37:27.891 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L3 power already exists - ignoring sensor.kostal_piko_5_5_l3_power home-assistant.log:2023-01-30 20:37:27.892 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 Status already exists - ignoring sensor.kostal_piko_5_5_status home-assistant.log:2023-01-30 20:37:27.894 ERROR (MainThread) [homeassistant.components.sensor] Platform kostal does not generate unique IDs. ID 90342MAI00010 L3 voltage already exists - ignoring sensor.kostal_piko_5_5_l3_voltage

I tried restarting HA between adding every inverter, cleared the browser cache, removed the home-assistant_v2.db file, rebooted the RasPi but no success. After 5 hrs of trying, I thought I reach out for help here. Can you help so that I get to a clean state of having the three inverters in my HA?

Thanks much!

redlefloh commented 1 year ago

I just realised that this is the same issue as mentioned here: https://github.com/rcasula/kostalpiko-homeassistant/issues/8 by @DrNoGo, but maybe my logs help @rcasula to fix the issue? It seems to be related to not providing unique identifiers to the additional inverters.