Done it and it appears. No reason without more information.
Hi,
Thanks for your swift answer !
I changed my config as follows:
sensor:
- platform: powercalc
create_group: All Hue Lights
entities:
- entity_id: light.hue_lightstrip_kast
- entity_id: light.hue_lightstrip_bar
- entity_id: light.hue_ambiance_lamp_1_gang
- entity_id: light.hue_ambiance_lamp_2_gang
- entity_id: light.hue_color_spot_1_overkapping
- entity_id: light.hue_color_spot_2_overkapping
- entity_id: light.hue_color_spot_3_overkapping
- entity_id: light.hue_color_spot_4_overkapping
- entity_id: light.hue_color_spot_5_overkapping
- entity_id: light.hue_color_spot_6_overkapping
- entity_id: light.hue_color_lamp_1_overkapping
- entity_id: light.hue_go_master
- entity_id: light.hue_go_master_2
- entity_id: light.dimmable_light_6
- entity_id: light.dimmable_light_7
But there is still no group all_hue_lights or something with a powersensor attributeâŚ
Could you please enable debug logging? See last chapter in readme. Letâs see if this can shed some light on whatâs going wrong.
Hi Bram,
I managed to configure the debug, but in my logbook no errors are shownâŚ
When powercalc has created any entities there must be log entries available with (DEBUG)
.
Did you restart after enabling debug logging.
En what do you mean with âgot a powersensor attributeâ. Powercalc only creates extra entities. ie. sensor.hue_ambiance_lamp_1_gang_power
, it does not extend existing entities with extra attributes in any way.
Hi Bram,
In best case, I have one entity all_lights_hue with itâs total power and energy meter.
Please find below the debug log, but I think it was the case without the entity_id before the entities:
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] Start auto discovering entities
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_ambiance_lamp_1_gang: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LTW001/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_1_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_5_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_2_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.rgb_tradfri: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb E27 CWS opal 600lm)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/ikea/LED1624G9/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_go_master: Auto discovered model (manufacturer=Signify Netherlands B.V., model=7602031P7)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] light.hue_go_master: Model not found in library, skipping auto configuration
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_ambiance_lamp_2_gang: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LTW001)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LTW001/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_lightstrip_bar: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LST002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LST002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_4_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_white_lamp_1_berging: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LWB006)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LWB006/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_6_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_spot_3_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCG002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCG002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_color_lamp_1_overkapping: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LCA001)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LCA001/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_lightstrip_kast: Auto discovered model (manufacturer=Signify Netherlands B.V., model=LST002)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/signify/LST002/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.on_off_plug_1: Auto discovered model (manufacturer=innr, model=SP 120)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] light.on_off_plug_1: Model not found in library, skipping auto configuration
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.hue_go_master_2: Auto discovered model (manufacturer=Signify Netherlands B.V., model=7602031P7)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] light.hue_go_master_2: Model not found in library, skipping auto configuration
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.dimmable_light_6: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb GU10 W 400lm)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/ikea/LED1650R5/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.dimmable_light_7: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb GU10 W 400lm)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.light_model] Loading /config/custom_components/powercalc/data/ikea/LED1650R5/model.json
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.model_discovery] light.aqara_hub_m1s_44e4: Auto discovered model (manufacturer=Aqara, model=HM1S-G01)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] light.aqara_hub_m1s_44e4: Model not found in library, skipping auto configuration
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc] Done auto discovering entities
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/signify/LTW001/color_temp.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1813 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_ambiance_lamp_1_gang sensor_name=Hal Lamp 1 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.4 unique_id=d3441e36-2102-4536-95a6-1ef3fd60b9de)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Hal Lamp 1 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 1 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 1 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 1 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/signify/LCG002/color_temp.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1872 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_1_overkapping sensor_name=Overkapping S1 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=c4612312-ca1c-4b93-92e3-fe1f206fffa8)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S1 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S1 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S1 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S1 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_5_overkapping sensor_name=Overkapping S5 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=a84c1443-29de-458c-9517-a3ec4e1df939)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S5 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S5 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S5 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S5 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_2_overkapping sensor_name=Overkapping S2 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=d5719e82-7c40-40d2-ac55-70a7839b2369)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S2 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S2 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S2 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S2 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.rgb_tradfri sensor_name=WC Powersensor strategy=LutStrategy manufacturer=IKEA of Sweden model=TRADFRI bulb E27 CWS opal 600lm standby_power=0.48 unique_id=c5022e09-7190-4659-932e-43912f7e5798)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: WC energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: WC energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: WC energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: WC energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_ambiance_lamp_2_gang sensor_name=Hal Lamp 2 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LTW001 standby_power=0.4 unique_id=e139abe5-27f4-415b-b50b-7ceb77765441)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Hal Lamp 2 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 2 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 2 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Hal Lamp 2 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/signify/LST002/color_temp.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 2958 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_lightstrip_bar sensor_name=Bar Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LST002 standby_power=0.18 unique_id=cde60d2c-35d8-4092-ad96-eb33ff9f1ec1)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Bar energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Bar energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Bar energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Bar energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_4_overkapping sensor_name=Overkapping S4 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=e8569a95-f4da-4dc4-b482-7f430236bd8c)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S4 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S4 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S4 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S4 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/signify/LWB006/brightness.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_white_lamp_1_berging sensor_name=Berging Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LWB006 standby_power=0.4 unique_id=7ab9726e-2ff0-42fb-b03f-49edcfac18ad)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Berging energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Berging energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Berging energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Berging energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_6_overkapping sensor_name=Overkapping S6 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=31d615ce-69a8-4771-a13a-78c05027629a)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S6 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S6 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S6 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S6 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_spot_3_overkapping sensor_name=Overkapping S3 Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCG002 standby_power=0.4 unique_id=eb93b422-a184-4a36-8767-9083ba4ad79d)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping S3 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S3 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S3 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping S3 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/signify/LCA001/color_temp.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 2025 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_color_lamp_1_overkapping sensor_name=Overkapping Lamp Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LCA001 standby_power=0.33 unique_id=e7c7f1d9-34d0-4d77-8cfd-262acd43665a)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Overkapping Lamp energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping Lamp energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping Lamp energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Overkapping Lamp energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hue_lightstrip_kast sensor_name=Boekenkast Powersensor strategy=LutStrategy manufacturer=Signify Netherlands B.V. model=LST002 standby_power=0.18 unique_id=2dab9ae7-93bf-4f76-89af-aeeb1df52df5)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Boekenkast energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Boekenkast energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Boekenkast energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Boekenkast energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/data/ikea/LED1650R5/brightness.csv.gz
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.dimmable_light_6 sensor_name=Keuken S1 Powersensor strategy=LutStrategy manufacturer=IKEA of Sweden model=TRADFRI bulb GU10 W 400lm standby_power=0.38 unique_id=08:6b:d7:ff:fe:05:72:29-01)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Keuken S1 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S1 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S1 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S1 energy monthly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.dimmable_light_7 sensor_name=Keuken S2 Powersensor strategy=LutStrategy manufacturer=IKEA of Sweden model=TRADFRI bulb GU10 W 400lm standby_power=0.38 unique_id=00:0d:6f:ff:fe:ff:2f:73-01)
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Keuken S2 energy
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S2 energy daily
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S2 energy weekly
2022-01-31 11:44:55 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor: Keuken S2 energy monthly
2022-01-31 11:44:55 WARNING (MainThread) [homeassistant.components.integration.sensor] Could not restore last state: [<class 'decimal.ConversionSyntax'>]
2022-01-31 11:44:55 ERROR (MainThread) [homeassistant.components.utility_meter.sensor] Could not restore state <unknown>. Resetting utility_meter.Hal Lamp 1 energy monthly
2022-01-31 11:44:55 WARNING (MainThread) [homeassistant.components.integration.sensor] Could not restore last state: [<class 'decimal.ConversionSyntax'>]
2022-01-31 11:44:55 ERROR (MainThread) [homeassistant.components.utility_meter.sensor] Could not restore state <unknown>. Resetting utility_meter.WC energy monthly
2022-01-31 11:44:55 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform powercalc
Could you edit your post to create a preformatted code block for the logs? See the </>
icon in WYSIWYG editor.
The logs should include âCreating grouped power sensorâ when it tries to create the group sensor, I donât see that at all, so there is definitely something not right. I would suggest you to turn off auto discovery first as you setup all your entity_idâs manual anyway.
powercalc:
enable_autodiscovery: false
Than you should only see log entries caused by your sensor
configuration and also make sure there are no conflicts.
When you donât see any log entries after that than make sure your sensor:
configuration which you referenced above is actually loading. Maybe you have it in a yml include and there is something wrong with the naming.
Itâs not possible to only have a group sensor. Powercalc needs to calculate the correct power for individual lights first (as they all have different models, and configuration methods). Than later on it can aggregate (sum) all the power values of the individual entities into a group sensor.
Unavailable and ârestored: trueâ indicates to me that they are not created anymore by powercalc (because you have disabled auto discovery now). Because they previously had a state in the database HA will recreated them and list them as unavailable.
This also means that your sensor:
configuration is probably not loaded:
sensor:
- platform: powercalc
create_group: All Hue Lights
entities:
- entity_id: light.hue_lightstrip_kast
- entity_id: light.hue_lightstrip_bar
You can verify this by checking the logs, there should still be tens of lines of powercalc log entries. As you had previously.
Otherwise you need to debug why the configuration is not loaded correctly. Maybe you have a duplicate sensor:
entry or some other issue. I think HA will prevent restarting when this is the case, but Iâm not 100% sure. You should also find some clues in the error logs somehow.
I removed everything and started from scratch and its now workingâŚsomething somewhere must not have been right first time around.
@tom_l Just wanted to let you know we are making some progress supporting the LIFX lights with the efforts of @jamiedevivoo and myself. See https://github.com/bramstroker/homeassistant-powercalc/pull/566
Hi,
Thank you for the work you have put.
I monitor power with the help of some nice zigbee plugs and for lights i have only ikea models tht are in dictionary so i am super happy.
Single thing is that i uset parameter create_group to gather all lights and the sensor that counts them has 4 decimals and i didnât see (or i skipped) how to round the value to 2 decimals:
- platform: powercalc
create_group: "all lights"
entities:
- entity_id: light.bulb_bedroom
- entity_id: light.entry_light
- entity_id: light.bec_bucatarie_1
- entity_id: light.bec_bucatarie_2
- entity_id: light.bulb_living_one
- entity_id: light.bulb_living_two
- entity_id: light.hallway
- entity_id: light.bedroom_lamp
you can add energy_sensor_precision
to the global options. However this is only available starting from version 0.18.0, which is currently in beta. If you want you can install the beta v0.18.0-beta.5 or wait a bit for the stable version.
powercalc:
energy_sensor_precision: 2
What does mean Error Unable to prepare setup for platform powercalc.sensor: (DependencyError(...), 'Could not setup dependencies: device_tracker')
Thanks @bramski for the excellent work, and your super quick turnaround on reported issues. I wrote a blog post with details of how I used Powercalc to use to monitor power consumption of 60 out of 69 devices in my house. I included my full config, in case its useful to anyone. Virtual Energy Meters with PowerCalc - Sean Blanchfield's Blog
Very strange because the device_tracker
integration is a core integration. Powercalc waits for this integration to load succesfully before it starts itâs own setup. Any other errors in the logs? I have no clue really.
@seanblanchfield Awesome write up! Cool to see you are using the component this extensive and you got great results. This gives you a lot of insight into power consumption across your house and discover opportunities to save energy.
I also donât know what is the connection between device_tracker
and Powercalc.
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of powercalc. Setup failed for dependencies: device_tracker
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Setup failed for powercalc: (DependencyError(...), 'Could not setup dependencies: device_tracker')
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of powercalc. Setup failed for dependencies: device_tracker
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform powercalc.sensor: (DependencyError(...), 'Could not setup dependencies: device_tracker')
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of powercalc. Setup failed for dependencies: device_tracker
2022-02-24 21:00:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform powercalc.sensor: (DependencyError(...), 'Could not setup dependencies: device_tracker')
Did powercalc work for you before or did you always get this error?
This is one of the dependencies of powercalc. I have added that because you can also create power sensors based on the state of device trackers. To make sure the device_tracker entities are created before powercalc entities.
I did test on my development machine and it seems without this dependency it is also working. So I think it can be safely removed. Will do that soon.
Fingers crossed you are right because I use the device_tracker functionality