Error while setting up powercalc platform for sensor 'IndexError: list index out of range'
Thanks for this integration it is excellent. I am having a persistent error message on startup of home assistant which I'm not sure what is causing it.
I have attached the debug log and my config below.
configuration.yaml:
powercalc:
power_sensor_naming: "{} Power"
energy_sensor_naming: "{} Energy"
create_domain_groups:
- light
log file:
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] Start auto discovering entities
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCL001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCL001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LWB010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LWB010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LWB010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LWB010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LST002)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LST002/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.dining_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.front_door_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.laundry_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.lounge_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.shelf_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light_bar_left: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT024)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT024/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light_bar_right: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT024)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT024/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCX001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] light.tv_lightstrip: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.wardrobe_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.living_room_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_sonos_roam_crossfade: Auto discovered model (manufacturer=Sonos, model=Roam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_sonos_roam_crossfade: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_crossfade: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_crossfade: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_night_sound: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_night_sound: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_study_crossfade: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_study_crossfade: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_bedroom_crossfade: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_bedroom_crossfade: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_surround_enabled: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_surround_enabled: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_speech_enhancement: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_speech_enhancement: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.dryer: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.dryer: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.washing_machine: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.washing_machine: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.study_grow_light: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.study_grow_light: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_lightstrip: Auto discovered model (manufacturer=TuYa, model=TS0505B)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/tuya/NO66-ZB/length_5/model.json
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bedroom_side_tables: Auto discovered model (manufacturer=IKEA of Sweden, model=ICPSHC24-10EU-IL-1)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] light.bedroom_side_tables: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bathroom_downlight_1: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.bathroom_downlight_1: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bathroom_downlight_2: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.bathroom_downlight_2: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.exhaust_fan: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.exhaust_fan: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.fridge: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.fridge: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_grow_light: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] light.study_grow_light: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_downlight_1: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] light.bathroom_downlight_1: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_downlight_2: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] light.bathroom_downlight_2: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.study_loudness: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.study_loudness: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bedroom_loudness: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.bedroom_loudness: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.living_room_loudness: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.living_room_loudness: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.living_room_surround_music_full_volume: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.living_room_surround_music_full_volume: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_roam_loudness: Auto discovered model (manufacturer=Sonos, model=Roam)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_roam_loudness: Model not found in library, skipping auto configuration
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc] Done auto discovering entities
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCL001/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_lightstrip entity_category=None, sensor_name=Kitchen Lightstrip Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCL001 standby_power=0.40 unique_id=577d94f5-3ac5-4913-91d2-9016346cc560)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Lightstrip Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT010/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1785 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bathroom_light entity_category=None, sensor_name=Bathroom Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=2e4b912e-c0ef-4977-9638-ec56c888c84e)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bathroom Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LWB010/brightness.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_light_1 entity_category=None, sensor_name=Bed Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LWB010 standby_power=0.39 unique_id=31a55dfe-ac7e-490b-8d56-2eaf30892039)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Light 1 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_light_2 entity_category=None, sensor_name=Bed Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LWB010 standby_power=0.39 unique_id=d77df327-a702-4ed2-aeb0-08b0b5092d49)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Light 2 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LST002/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 2958 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_lightstrip entity_category=None, sensor_name=Bed Lightstrip Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LST002 standby_power=0.18 unique_id=79bf4f32-217c-41ca-80fb-57bc8632f3ff)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Lightstrip Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.dining_light entity_category=None, sensor_name=Dining Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=a4d94feb-7a30-436e-8c9f-e1157347a9e3)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Dining Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT001/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.front_door_light entity_category=None, sensor_name=Front Door Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=2d98e10d-fea3-497a-8b14-e0bed81056a4)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Front Door Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_light_1 entity_category=None, sensor_name=Kitchen Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=a949bc5d-9b92-408f-b18b-423e0e61edf3)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Light 1 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_light_2 entity_category=None, sensor_name=Kitchen Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=6f0dcd0b-9f64-45d3-853f-59147778c644)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Light 2 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.laundry_light entity_category=None, sensor_name=Laundry Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=36f2ce2e-54d6-418f-baa2-107a3b09a25a)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Laundry Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT007/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.lounge_light entity_category=None, sensor_name=Lounge Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=a21404e9-ab11-4e80-87a6-2c8a9d73b0d2)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Lounge Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.shelf_light entity_category=None, sensor_name=Shelf Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=a361a9d5-14cd-4adf-9188-b7351dd19278)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Shelf Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LTW001/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1813 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.study_light_1 entity_category=None, sensor_name=Study Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=bc07ad56-39d6-4413-a5d3-9fb3a469a3d6)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Study Light 1 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.study_light_2 entity_category=None, sensor_name=Study Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=c888b228-7f67-4d29-ab7b-ef026ffbcd15)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Study Light 2 Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light entity_category=None, sensor_name=TV Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=aa3f5c82-092a-4137-85d5-fb8431ff6ed1)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT024/color_temp.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light_bar_left entity_category=None, sensor_name=TV Light Bar Left Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT024 standby_power=0.10 unique_id=01570b06-a9d8-4ada-b70e-28933c17b7db)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Bar Left Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light_bar_right entity_category=None, sensor_name=TV Light Bar Right Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT024 standby_power=0.10 unique_id=29f55991-91a0-40cb-be9f-83f5a673bd0d)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Bar Right Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wardrobe_light entity_category=None, sensor_name=Wardrobe Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=79739a3e-780b-4c41-a861-1de0a6582b12)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Wardrobe Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.living_room_light entity_category=None, sensor_name=Living Room Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=933248f1-6e2c-4568-9066-ad4be1450051)
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Living Room Light Energy
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_lightstrip: State changed to "off". Power:0.40
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_light: State changed to "off". Power:0.35
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_light_1: State changed to "off". Power:0.39
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_light_2: State changed to "off". Power:0.39
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LST002/hs.csv.gz
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 10582 lines
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.bed_lightstrip: Looking up power usage for bri:153 hue:53 sat:204}
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.bed_lightstrip: Calculated power:3.196000000000000174082970261224545538425445556640625
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_lightstrip: State changed to "on". Power:3.20
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.dining_light: State changed to "off". Power:0.35
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.front_door_light: State changed to "off". Power:0.22
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_light_1: State changed to "off". Power:0.35
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_light_2: State changed to "off". Power:0.35
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.laundry_light: State changed to "off". Power:0.22
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.lounge_light: State changed to "off". Power:0.33
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.shelf_light: State changed to "off". Power:0.22
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.study_light_1: State changed to "off". Power:0.40
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.study_light_2: State changed to "off". Power:0.40
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light: State changed to "off". Power:0.33
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light_bar_left: State changed to "off". Power:0.10
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light_bar_right: State changed to "off". Power:0.10
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wardrobe_light: State changed to "off". Power:0.40
2022-07-27 09:42:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_light: State changed to "off". Power:0.33
2022-07-27 09:42:55 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up powercalc platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/powercalc/sensor.py", line 244, in async_setup_platform
await _async_setup_entities(hass, config, async_add_entities, discovery_info)
File "/config/custom_components/powercalc/sensor.py", line 283, in _async_setup_entities
entities = await create_sensors(hass, config, discovery_info)
File "/config/custom_components/powercalc/sensor.py", line 397, in create_sensors
return await create_individual_sensors(
File "/config/custom_components/powercalc/sensor.py", line 517, in create_individual_sensors
power_sensor = await create_power_sensor(
File "/config/custom_components/powercalc/sensors/power.py", line 84, in create_power_sensor
return await create_virtual_power_sensor(
File "/config/custom_components/powercalc/sensors/power.py", line 126, in create_virtual_power_sensor
mode = light_model.supported_modes[0]
IndexError: list index out of range
2022-07-27 09:42:58 DEBUG (MainThread) [custom_components.powercalc] Setting up domain based group sensors..
2022-07-27 09:42:58 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: All light Power
2022-07-27 09:42:58 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: All light Energy
I have added better error logging, so we can see what the root cause of this issue is. Code is in master, so you can install this one, or wait for next release.
Post your logs again when it provides more information.
Thanks @bramstroker I saw the new release included the logging change.
I have installed the new version and here are the logs. The crash is now gone and replaced with which I think is the cause, the Tuya Bathroom Lightstrip.
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] Start auto discovering entities
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCL001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCL001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LWB010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LWB010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LWB010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LWB010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bed_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LST002)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LST002/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.dining_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.front_door_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.kitchen_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT010)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT010/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.laundry_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.lounge_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.shelf_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_light_1: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_light_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light_bar_left: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT024)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT024/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_light_bar_right: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT024)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT024/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.tv_lightstrip: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCX001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] light.tv_lightstrip: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.wardrobe_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LTW001/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.living_room_light: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCT007)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/signify/LCT007/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_sonos_roam_crossfade: Auto discovered model (manufacturer=Sonos, model=Roam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_sonos_roam_crossfade: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_crossfade: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_crossfade: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_night_sound: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_night_sound: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_study_crossfade: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_study_crossfade: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_bedroom_crossfade: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_bedroom_crossfade: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_surround_enabled: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_surround_enabled: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_living_room_speech_enhancement: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_living_room_speech_enhancement: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.dryer: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.dryer: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.washing_machine: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.washing_machine: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.study_grow_light: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.study_grow_light: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_lightstrip: Auto discovered model (manufacturer=TuYa, model=TS0505B)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.light_model] Loading /config/custom_components/powercalc/power_profile/../data/tuya/NO66-ZB/length_5/model.json
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bedroom_side_tables: Auto discovered model (manufacturer=IKEA of Sweden, model=ICPSHC24-10EU-IL-1)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] light.bedroom_side_tables: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bathroom_downlight_1: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.bathroom_downlight_1: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bathroom_downlight_2: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.bathroom_downlight_2: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.exhaust_fan: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.exhaust_fan: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.fridge: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.fridge: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.study_grow_light: Auto discovered model (manufacturer=SmartThings, model=GP-WOU019BBDWG)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] light.study_grow_light: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_downlight_1: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] light.bathroom_downlight_1: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] light.bathroom_downlight_2: Auto discovered model (manufacturer=Aqara, model=ZNCZ02LM)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] light.bathroom_downlight_2: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.study_loudness: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.study_loudness: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.bedroom_loudness: Auto discovered model (manufacturer=Sonos, model=One)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.bedroom_loudness: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.living_room_loudness: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.living_room_loudness: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.living_room_surround_music_full_volume: Auto discovered model (manufacturer=Sonos, model=Beam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.living_room_surround_music_full_volume: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.power_profile.model_discovery] switch.sonos_roam_loudness: Auto discovered model (manufacturer=Sonos, model=Roam)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] switch.sonos_roam_loudness: Model not found in library, skipping auto configuration
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc] Done auto discovering entities
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCL001/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_lightstrip entity_category=None, sensor_name=Kitchen Lightstrip Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCL001 standby_power=0.40 unique_id=577d94f5-3ac5-4913-91d2-9016346cc560)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Lightstrip Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT010/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1785 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bathroom_light entity_category=None, sensor_name=Bathroom Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=2e4b912e-c0ef-4977-9638-ec56c888c84e)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bathroom Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LWB010/brightness.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_light_1 entity_category=None, sensor_name=Bed Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LWB010 standby_power=0.39 unique_id=31a55dfe-ac7e-490b-8d56-2eaf30892039)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Light 1 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_light_2 entity_category=None, sensor_name=Bed Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LWB010 standby_power=0.39 unique_id=d77df327-a702-4ed2-aeb0-08b0b5092d49)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Light 2 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LST002/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 2958 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bed_lightstrip entity_category=None, sensor_name=Bed Lightstrip Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LST002 standby_power=0.18 unique_id=79bf4f32-217c-41ca-80fb-57bc8632f3ff)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bed Lightstrip Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.dining_light entity_category=None, sensor_name=Dining Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=a4d94feb-7a30-436e-8c9f-e1157347a9e3)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Dining Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT001/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.front_door_light entity_category=None, sensor_name=Front Door Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=2d98e10d-fea3-497a-8b14-e0bed81056a4)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Front Door Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_light_1 entity_category=None, sensor_name=Kitchen Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=a949bc5d-9b92-408f-b18b-423e0e61edf3)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Light 1 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_light_2 entity_category=None, sensor_name=Kitchen Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT010 standby_power=0.35 unique_id=6f0dcd0b-9f64-45d3-853f-59147778c644)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Kitchen Light 2 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.laundry_light entity_category=None, sensor_name=Laundry Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=36f2ce2e-54d6-418f-baa2-107a3b09a25a)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Laundry Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT007/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.lounge_light entity_category=None, sensor_name=Lounge Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=a21404e9-ab11-4e80-87a6-2c8a9d73b0d2)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Lounge Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.shelf_light entity_category=None, sensor_name=Shelf Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT001 standby_power=0.22 unique_id=a361a9d5-14cd-4adf-9188-b7351dd19278)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Shelf Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LTW001/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1813 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.study_light_1 entity_category=None, sensor_name=Study Light 1 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=bc07ad56-39d6-4413-a5d3-9fb3a469a3d6)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Study Light 1 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.study_light_2 entity_category=None, sensor_name=Study Light 2 Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=c888b228-7f67-4d29-ab7b-ef026ffbcd15)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Study Light 2 Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light entity_category=None, sensor_name=TV Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=aa3f5c82-092a-4137-85d5-fb8431ff6ed1)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/signify/LCT024/color_temp.csv.gz
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light_bar_left entity_category=None, sensor_name=TV Light Bar Left Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT024 standby_power=0.10 unique_id=01570b06-a9d8-4ada-b70e-28933c17b7db)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Bar Left Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.tv_light_bar_right entity_category=None, sensor_name=TV Light Bar Right Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT024 standby_power=0.10 unique_id=29f55991-91a0-40cb-be9f-83f5a673bd0d)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: TV Light Bar Right Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wardrobe_light entity_category=None, sensor_name=Wardrobe Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.40 unique_id=79739a3e-780b-4c41-a861-1de0a6582b12)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Wardrobe Light Energy
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.living_room_light entity_category=None, sensor_name=Living Room Light Power strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCT007 standby_power=0.33 unique_id=933248f1-6e2c-4568-9066-ad4be1450051)
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Living Room Light Energy
2022-07-28 10:59:47 ERROR (MainThread) [custom_components.powercalc.sensors.power] Skipping sensor setup light.bathroom_lightstrip: Power profile has no supported_modes in model.json. manufacturer: TuYa, model: TS0505B
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_lightstrip: State changed to "off". Power:0.40
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_light: State changed to "off". Power:0.35
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_light_1: State changed to "off". Power:0.39
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_light_2: State changed to "off". Power:0.39
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bed_lightstrip: State changed to "off". Power:0.18
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.dining_light: State changed to "off". Power:0.35
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.front_door_light: State changed to "off". Power:0.22
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_light_1: State changed to "off". Power:0.35
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_light_2: State changed to "off". Power:0.35
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.laundry_light: State changed to "off". Power:0.22
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.lounge_light: State changed to "off". Power:0.33
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.shelf_light: State changed to "off". Power:0.22
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.study_light_1: State changed to "off". Power:0.40
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.study_light_2: State changed to "off". Power:0.40
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light: State changed to "off". Power:0.33
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light_bar_left: State changed to "off". Power:0.10
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.tv_light_bar_right: State changed to "off". Power:0.10
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wardrobe_light: State changed to "off". Power:0.40
2022-07-28 10:59:47 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_light: State changed to "off". Power:0.33
The error is:
Skipping sensor setup light.bathroom_lightstrip: Power profile has no supported_modes in model.json. manufacturer: TuYa, model: TS0505B
This is not a model which powercalc provides a profile for, so I suspect you create a LUT for this yourself in custom model directory? Is that correct?
No I don’t have any custom files or haven’t done anything to support this lightstrip. So I expect that it would be skipped by powercalc but probably not generate an error.
Hmm very strange. I will have another look into the code how this error could be triggered, and see if I can reproduce.
Btw what does your full powercalc config look like?
@adamrutt, could you share your configuration? that would probably help a lot solving this issue.
Here it is:
powercalc:
power_sensor_naming: "{} Power"
energy_sensor_naming: "{} Energy"
create_domain_groups:
- light
I have found the issue. Here an alias for this model was introduced. https://github.com/bramstroker/homeassistant-powercalc/blob/master/custom_components/powercalc/aliases.py#L120
However this ledstrip has multiple profiles depending on the length of the lightstrip:
https://github.com/bramstroker/homeassistant-powercalc/tree/master/custom_components/powercalc/data/tuya/NO66-ZB
- length1
- length2
- length5
The alias mechanism is not designed to work with these subprofiles. At least not yet. When a light has sub profiles it MUST be setup manual. Not sure why I missed this when reviewing the PR, this alias should never be in the codebase, so I will remove it.
To setup the light manual you must use YAML now, I will also add support for these "sub profiles" in the config flow in the future.
Here is an example:
sensor:
- platform: powercalc
entity_id: light.bathroom_lightstrip
manufacturer: tuya
model: NO66-ZB/length5