megakid / ha_octopus_intelligent

Apache License 2.0
86 stars 10 forks source link

IO with two accounts doesn't seem to work #20

Open mtedds opened 1 year ago

mtedds commented 1 year ago

I have two different properties / accounts. They seem to have the same API key but can be differentiated by the Account number. Both are on IO.

When I try to set up the second account, it doesn't work and I find the following in the log: [ loads of very long lines... ! then ] 2023-07-11 18:32:04.785 DEBUG (MainThread) [custom_components.octopus_intelligent.octopus_intelligent_system] Finished fetching Octopus Intelligent data in 7.671 seconds (success: True) 2023-07-11 18:32:04.785 DEBUG (MainThread) [custom_components.octopus_intelligent] Octopus Intelligent System component setup finished 2023-07-11 18:32:04.786 INFO (MainThread) [homeassistant.components.switch] Setting up switch.octopus_intelligent 2023-07-11 18:32:04.787 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.octopus_intelligent 2023-07-11 18:32:04.787 INFO (MainThread) [homeassistant.components.select] Setting up select.octopus_intelligent 2023-07-11 18:32:04.787 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.octopus_intelligent 2023-07-11 18:32:04.789 ERROR (MainThread) [homeassistant.components.switch] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_smart_charging already exists - ignoring switch.octopus_smart_charging 2023-07-11 18:32:04.790 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_slot already exists - ignoring binary_sensor.octopus_intelligent_slot 2023-07-11 18:32:04.790 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_slot_next_1_hour already exists - ignoring binary_sensor.octopus_intelligent_slot_next_1_hour 2023-07-11 18:32:04.790 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_slot_next_2_hours already exists - ignoring binary_sensor.octopus_intelligent_slot_next_2_hours 2023-07-11 18:32:04.791 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_slot_next_3_hours already exists - ignoring binary_sensor.octopus_intelligent_slot_next_3_hours 2023-07-11 18:32:04.791 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_planned_dispatch_slot already exists - ignoring binary_sensor.octopus_intelligent_planned_dispatch_slot 2023-07-11 18:32:04.791 ERROR (MainThread) [homeassistant.components.select] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_target_soc already exists - ignoring select.octopus_target_state_of_charge 2023-07-11 18:32:04.792 ERROR (MainThread) [homeassistant.components.select] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_target_time already exists - ignoring select.octopus_target_ready_by_time 2023-07-11 18:32:04.792 ERROR (MainThread) [homeassistant.components.sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_next_offpeak_start already exists - ignoring sensor.octopus_intelligent_next_offpeak_start 2023-07-11 18:32:04.792 ERROR (MainThread) [homeassistant.components.sensor] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_offpeak_end already exists - ignoring sensor.octopus_intelligent_offpeak_end 2023-07-11 18:32:05.625 DEBUG (MainThread) [custom_components.octopus_intelligent.octopus_intelligent_system] Finished fetching Octopus Intelligent data in 0.832 seconds (success: True) 2023-07-11 18:32:05.625 ERROR (MainThread) [homeassistant.components.switch] Platform octopus_intelligent does not generate unique IDs. ID octopus_intelligent_bump_charge already exists - ignoring switch.octopus_bump_charge

I renamed the original integration but that made no difference. Is there a way to add a second account?

Thanks!