bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
1.03k stars 264 forks source link

energy counters misbehaving/reset/unavailable after 2023.5.0 #1664

Closed gribber closed 1 year ago

gribber commented 1 year ago

System Health details

System Information

version core-2023.5.2
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 5.10.0-19-amd64
arch x86_64
timezone Europe/Stockholm
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4632 Installed Version | 1.32.1 Stage | running Available Repositories | 1284 Downloaded Repositories | 50
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Debian GNU/Linux 11 (bullseye) -- | -- update_channel | stable supervisor_version | supervisor-2023.04.1 agent_version | 1.2.1 docker_version | 20.10.21 disk_total | 78.2 GB disk_used | 55.7 GB healthy | true supported | true supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.5.7), MariaDB (2.6.0), InfluxDB (4.6.0), Mosquitto broker (6.2.1), phpMyAdmin (0.8.5), ESPHome (2023.4.4), Frigate NVR Proxy (1.3), Node-RED (14.1.5), Zigbee2MQTT (1.30.4-1), Network UPS Tools (0.11.2)
Dashboards dashboards | 2 -- | -- resources | 30 views | 20 mode | storage
Recorder oldest_recorder_run | May 4, 2023 at 04:29 -- | -- current_recorder_run | May 8, 2023 at 08:47 estimated_db_size | 1681.28 MiB database_engine | mysql database_version | 10.6.12
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

Noticed today that all energy counters got reset, seems all groups are marked as unavailable until at least one lamp is turned on/off after reboot of HA

I have nestled groups, like "indoor lights -> roomX", like this: https://github.com/gribber/ha/blob/main/sensors/powercalc.yaml

every room which had at least one unavailable lamp is marked as unavailable (for example, I have some christmas lamps disconnected) Turing on any other lamp in that room makes the group energy counter available again, but with incorrect values

living room group image

main indoor light group image as seen, this groups hasn't changed since 06:24:55, which is exactly the time I updated to HA 2023.5.0

Reproduction steps

something like:

  1. update to 2023.5.0
  2. disconnect a lamp
  3. reboot

Debug logs

https://pastebin.com/PwTtu6Ls

Diagnostics dump or YAML config

bramstroker commented 1 year ago

Could you please try latest beta 1.6.0 of powercalc? A lot of things has been changed to improve the group energy sensors. Hope this also solves your issue. Please create a backup of your HA first just in case.

bramstroker commented 1 year ago

Btw these errors in your log are definitely related:

ValueError: Sensor sensor.kitchen_power has device class power, state class measurement unit W and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: unavailable (<class 'str'>)
2023-05-08 08:40:49.740 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up powercalc platform for sensor

There are a lot of integrations which are broken or misbehaving due to this change.

v1.6.0 of powercalc should also handle this case, but there are a lot of things changed in this version, mostly related to the way group sensors energy is calculated. See #796 for more information. I did not get any response from any user which has tested this version of powercalc and would really need some confirmations before releasing this to the public.

gribber commented 1 year ago

Could you please try latest beta 1.6.0 of powercalc? A lot of things has been changed to improve the group energy sensors. Hope this also solves your issue. Please create a backup of your HA first just in case.

Sure, I can try it out, what is the best way to switch to beta version?

bramstroker commented 1 year ago

In hacs you can click redownload and mark the check box with beta versions.

lagge78 commented 1 year ago

I tried the latest beta.9. I still doesnt see any energy value for the light group defined in config.yaml by "create_domain_group" , only unavailable. The power entity (W) works but not the energy (kWh) .

gribber commented 1 year ago

Updated to beta.9 Same result here, energy still unavailable

log:

``` Found 4 non-daemonic threads. [10:40:23] INFO: Home Assistant Core finish process exit code 0 [10:40:23] INFO: Home Assistant Core service shutdown s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting services-up: info: copying legacy longrun home-assistant (no readiness notification) s6-rc: info: service legacy-services successfully started 2023-05-08 12:40:29.120 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration powercalc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.121 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration energyscore which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.122 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration swemail which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.123 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.123 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.124 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration auto_backup which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.125 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration blitzortung which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.125 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dreame_vacuum which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.126 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sureha which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.127 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration kia_uvo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.127 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.128 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.128 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nordpool which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.129 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration husqvarna_automower which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.130 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mold_risk_index which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.130 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ferroamp which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.131 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration pax_ble which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.131 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration home_connect_alt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:29.132 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-08 12:40:43.091 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: parkering_och_uppfart 2023-05-08 12:40:43.093 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.entre_1', unique_id='0x84fd27fffeb32cc0_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='e76897dda0a1f08d893f942c80960d6b', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='efeed9360ecb093e0b1b49f80ea198de', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='entre_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.entre_2', unique_id='0x84fd27fffeab9599_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='b490e0e16be952eeccc825df7d611142', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='b39c171d9828058bf4309f2bd7da35cc', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='entre_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.parking_1', unique_id='0xcc86ecfffe1bd881_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='8af4d2acf3f765f5d6dbc06a68676115', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='e5c6ed34b9b9d891e983516df040e571', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='parking_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.garage_front', unique_id='0x84fd27fffeb30da6_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='c693fc5507d76d887b1c3fb1f0083918', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='b3a23bccd7c28b1b39392653a5e357f5', has_entity_name=False, name='Framsida garage', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='garage_front', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.parking_2', unique_id='0xcc86ecfffe1bd6f2_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='23bc52fc888649402e4a28932d208375', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='c26a9be5e03bb8eaeb3d70cf4a778b48', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='parking_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.parking_3', unique_id='0x84fd27fffeb0f857_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='66c2a7c58ba5d2097f5f69d4be20ada5', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='04788124a2c98a23e7c7e5aa46d252f6', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='parking_3', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.garage_side', unique_id='0x84fd27fffe2ce91c_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='5f332018ca05af7300efef50db568560', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='a013df8b41ced2b5eb3578bc34fae4f0', has_entity_name=False, name='Sida garage', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='garage_side', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.driveway_1', unique_id='0x84fd27fffeb31224_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='1c4ff4a1b08cfa55ff692cf04bb2c288', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='5223f878e8e82ba0d44afd5842723577', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='driveway_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.parkering_och_uppfart', unique_id='3_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='e222f8525f061f68f03d582116928905', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='beeed4c60774c2d252b0a1f22a08a37a', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='parkering_och_uppfart', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.earth_cellar', unique_id='0x84fd27fffeb0f4d9_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='ce27983fa32233d67ddc48a9db8e01fa', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='4c7b00931fede882f91335b80e81f36f', has_entity_name=False, name='Lampa utanför', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='earth_cellar', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.093 DEBUG (MainThread) [custom_components.powercalc.discovery] light.entre_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.097 DEBUG (MainThread) [custom_components.powercalc.discovery] light.entre_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.097 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.098 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_front: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.099 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.099 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.100 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_side: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.100 DEBUG (MainThread) [custom_components.powercalc.discovery] light.driveway_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.101 DEBUG (MainThread) [custom_components.powercalc.discovery] light.earth_cellar: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.101 DEBUG (MainThread) [custom_components.powercalc.discovery] light.entre_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.102 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED2003G10/color_temp.csv.gz 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1144 lines 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.entre_1 entity_category=None, sensor_name=entre_1 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeb32cc0_light_zigbee2mqtt) 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: entre_1 energy 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.discovery] light.entre_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.entre_2 entity_category=None, sensor_name=entre_2 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeab9599_light_zigbee2mqtt) 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: entre_2 energy 2023-05-08 12:40:43.104 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.parking_1 entity_category=None, sensor_name=parking_1 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0xcc86ecfffe1bd881_light_zigbee2mqtt) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: parking_1 energy 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_front: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.garage_front entity_category=None, sensor_name=Framsida garage power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeb30da6_light_zigbee2mqtt) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Framsida garage energy 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.parking_2 entity_category=None, sensor_name=parking_2 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0xcc86ecfffe1bd6f2_light_zigbee2mqtt) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: parking_2 energy 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.discovery] light.parking_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.parking_3 entity_category=None, sensor_name=parking_3 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeb0f857_light_zigbee2mqtt) 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: parking_3 energy 2023-05-08 12:40:43.105 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_side: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.garage_side entity_category=None, sensor_name=Sida garage power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffe2ce91c_light_zigbee2mqtt) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Sida garage energy 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.discovery] light.driveway_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.driveway_1 entity_category=None, sensor_name=driveway_1 power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeb31224_light_zigbee2mqtt) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: driveway_1 energy 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.discovery] light.earth_cellar: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.earth_cellar entity_category=None, sensor_name=Lampa utanför power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffeb0f4d9_light_zigbee2mqtt) 2023-05-08 12:40:43.106 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Lampa utanför energy 2023-05-08 12:40:43.107 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor parking driveway power (entity_id=sensor.outdoor_parking_driveway_power) 2023-05-08 12:40:43.107 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor parking driveway energy (entity_id=sensor.outdoor_parking_driveway_energy) 2023-05-08 12:40:43.107 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: dekoration_ute 2023-05-08 12:40:43.109 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.wall_6', unique_id='0x804b50fffe7a1821_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='6341fb38270bb68643ac9859dd5e7df3', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='2594964bb58747c0585ca34680cb5c3a', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_6', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_7', unique_id='0x842e14fffe40f219_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='e9c6f007f9e831c3691f13e5fc43b352', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='a0e16bd5d88d94cef6451bd0e3bc4f98', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_7', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_2', unique_id='0x804b50fffe79a338_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='65da297a982a9ebe9822a873aae7a6f9', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='4060ced99028b326e47ad7c752e5d937', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_5', unique_id='0x842e14fffe6b3165_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='e4bf3461730d4be56fb2c025ffc6eccd', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='868e9180aed6660283f43f68cf5e6b50', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_5', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.greenhouse_1', unique_id='0x804b50fffe79c287_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='f0f0116bc2d922e406637bc355d58250', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='0914a6194610d9de8f197c2458ccbe27', has_entity_name=False, name='Lampa utanför', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='greenhouse_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_1', unique_id='0x842e14fffe40f4dd_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='84c5f843b56dfb9ae61b79e9ca6dcc20', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='8c0634b5b4c9f7716551f4279fdb31ee', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_3', unique_id='0x804b50fffe7a1830_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='da910ade1490a9e5b8ff9ea27f3df0de', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='09504e7dc01f5fa85dd7f182764a8ac1', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_3', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.wall_4', unique_id='0x804b50fffe7a181c_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='dcf16486ecbcd79d19c1dd3026d2292c', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='f3c901ad830069c31c4ec4a678da95e2', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='wall_4', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.conservatory_1', unique_id='0x84fd27fffe2ce1d3_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='2e5f990fc475fa0f1edb75f39cfb806b', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='5cbeb430d62d3bc1205e1b73658734dc', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='conservatory_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.conservatory_2', unique_id='0x84fd27fffe2cdd2d_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='7336007b3c86bb636d14c087a6e2f7a8', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='fbf0dd6c3721e17c6fcf402ee351a1e1', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='conservatory_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.conservatory_3', unique_id='0xcc86ecfffe7dfc6f_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='de85f37f07e41b1333a49349bf5e8eb2', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='82b93351ff1da57d0e6cba499b5adff5', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='conservatory_3', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.109 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_6: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.109 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_7: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.110 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.111 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_5: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.112 DEBUG (MainThread) [custom_components.powercalc.discovery] light.greenhouse_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.112 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.113 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.113 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_4: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.113 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.114 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.115 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.116 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_6: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.116 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1934G3/brightness.csv.gz 2023-05-08 12:40:43.118 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 255 lines 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_6 entity_category=None, sensor_name=wall_6 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x804b50fffe7a1821_light_zigbee2mqtt) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_6 energy 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_7: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_7 entity_category=None, sensor_name=wall_7 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x842e14fffe40f219_light_zigbee2mqtt) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_7 energy 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_2 entity_category=None, sensor_name=wall_2 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x804b50fffe79a338_light_zigbee2mqtt) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_2 energy 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_5: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_5 entity_category=None, sensor_name=wall_5 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x842e14fffe6b3165_light_zigbee2mqtt) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_5 energy 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.discovery] light.greenhouse_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.greenhouse_1 entity_category=None, sensor_name=Lampa utanför power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x804b50fffe79c287_light_zigbee2mqtt) 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Lampa utanför energy 2023-05-08 12:40:43.119 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_1 entity_category=None, sensor_name=wall_1 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x842e14fffe40f4dd_light_zigbee2mqtt) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_1 energy 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_3 entity_category=None, sensor_name=wall_3 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x804b50fffe7a1830_light_zigbee2mqtt) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_3 energy 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wall_4: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wall_4 entity_category=None, sensor_name=wall_4 power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x804b50fffe7a181c_light_zigbee2mqtt) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wall_4 energy 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.120 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED2005R5/color_temp.csv.gz 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1144 lines 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.conservatory_1 entity_category=None, sensor_name=conservatory_1 power strategy=LutStrategy manufacturer=ikea model=LED2005R5 standby_power=0.20 unique_id=0x84fd27fffe2ce1d3_light_zigbee2mqtt) 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: conservatory_1 energy 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.conservatory_2 entity_category=None, sensor_name=conservatory_2 power strategy=LutStrategy manufacturer=ikea model=LED2005R5 standby_power=0.20 unique_id=0x84fd27fffe2cdd2d_light_zigbee2mqtt) 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: conservatory_2 energy 2023-05-08 12:40:43.126 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_3: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb GU10 345#slash#380 lumen, dimmable, white spectrum (LED2005R5)) 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.conservatory_3 entity_category=None, sensor_name=conservatory_3 power strategy=LutStrategy manufacturer=ikea model=LED2005R5 standby_power=0.20 unique_id=0xcc86ecfffe7dfc6f_light_zigbee2mqtt) 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: conservatory_3 energy 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor ambience power (entity_id=sensor.outdoor_ambience_power) 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor ambience energy (entity_id=sensor.outdoor_ambience_energy) 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor lights power (entity_id=sensor.outdoor_lights_power) 2023-05-08 12:40:43.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor lights energy (entity_id=sensor.outdoor_lights_energy) 2023-05-08 12:40:43.133 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: uterum 2023-05-08 12:40:43.134 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.conservatory_ceiling', unique_id='0x84fd27fffe581775_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='8b95874d125bbf906ff826fadb25d0d9', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='374d2653767cbf634bb56a8225385c49', has_entity_name=False, name='Tanklampan', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='conservatory_ceiling', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.rice_lamp', unique_id='0x588e81fffeb754eb_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='78e51e1a6b8374940bd8b4d77e4998f0', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='7d301c9c48fe9cbf2f8338cded569ab2', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='rice_lamp', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.135 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_ceiling: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.136 DEBUG (MainThread) [custom_components.powercalc.discovery] light.rice_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb E12#slash#E14#slash#E17 WS 450#slash#470#slash#440 lumen, dimmable, white spectrum, opal white (LED1903C5#slash#LED1835C6)) 2023-05-08 12:40:43.145 DEBUG (MainThread) [custom_components.powercalc.discovery] light.conservatory_ceiling: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.145 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.conservatory_ceiling entity_category=None, sensor_name=Tanklampan power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x84fd27fffe581775_light_zigbee2mqtt) 2023-05-08 12:40:43.145 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Tanklampan energy 2023-05-08 12:40:43.145 DEBUG (MainThread) [custom_components.powercalc.discovery] light.rice_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb E12#slash#E14#slash#E17 WS 450#slash#470#slash#440 lumen, dimmable, white spectrum, opal white (LED1903C5#slash#LED1835C6)) 2023-05-08 12:40:43.146 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1835C6/color_temp.csv.gz 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1144 lines 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.rice_lamp entity_category=None, sensor_name=rice_lamp power strategy=LutStrategy manufacturer=ikea model=LED1835C6 standby_power=0.25 unique_id=0x588e81fffeb754eb_light_zigbee2mqtt) 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: rice_lamp energy 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: conservatory power (entity_id=sensor.conservatory_power) 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: conservatory energy (entity_id=sensor.conservatory_energy) 2023-05-08 12:40:43.148 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: kitchen 2023-05-08 12:40:43.150 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.kitchen_island', unique_id='de411e50-39d7-4f1e-8d87-1c1e3542aed6', platform='group', aliases=set(), area_id='kitchen', capabilities={'supported_color_modes': ['onoff']}, config_entry_id=None, device_class=None, device_id=None, disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='62fe20a38bf7b22da7256e3f07b84f55', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon='mdi:lightbulb-group', original_name='kitchen_island', supported_features=0, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.kitchen_sink', unique_id='0x0c4314fffe329e28_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='659204fba34bdef2cd8aafaa261b857f', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='910e958f4e29d8cef29b712e3b8a857b', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='kitchen_sink', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.kitchen_table', unique_id='0x04cd15fffecc7eec_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='656b09babb8352262dfcddc882ef9b71', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='9ecf1a777c9fc610b37169f46bfc0cb3', has_entity_name=False, name='Taklampa', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='kitchen_table', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.kitchen_window_1', unique_id='0x50325ffffec11f62_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='8689f2ff656691985596b09007261aff', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='d390d26e77bd4860ada1417a6962c86b', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='kitchen_window_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.kitchen_lamp', unique_id='0x14b457fffe3f56b7_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='078e27299fd7b1e92583f85b3f2e5b0b', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='1c99172e0e49b384ae0e7b064b584584', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='kitchen_lamp', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.kitchen_bench', unique_id='0xb4e3f9fffe6e97a1_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='a5b345eeda05e3e64cd0e7c19abc0d3b', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='3cc12afa6b14ab994211cbd4d381a3d3', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='kitchen_bench', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.150 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI driver for wireless control (30 watt) (ICPSHC24-30EU-IL-1)) 2023-05-08 12:40:43.151 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_table: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.151 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 WW clear 250 lumen, dimmable (LED1935C3)) 2023-05-08 12:40:43.152 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1842G3)) 2023-05-08 12:40:43.152 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_bench: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI driver for wireless control (10 watt) (ICPSHC24-10EU-IL-1)) 2023-05-08 12:40:43.153 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_table: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.153 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_table entity_category=None, sensor_name=Taklampa power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x04cd15fffecc7eec_light_zigbee2mqtt) 2023-05-08 12:40:43.153 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Taklampa energy 2023-05-08 12:40:43.153 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 WW clear 250 lumen, dimmable (LED1935C3)) 2023-05-08 12:40:43.153 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1935C3/brightness.csv.gz 2023-05-08 12:40:43.154 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 255 lines 2023-05-08 12:40:43.155 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_window_1 entity_category=None, sensor_name=kitchen_window_1 power strategy=LutStrategy manufacturer=ikea model=LED1935C3 standby_power=0.10 unique_id=0x50325ffffec11f62_light_zigbee2mqtt) 2023-05-08 12:40:43.155 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: kitchen_window_1 energy 2023-05-08 12:40:43.155 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1842G3)) 2023-05-08 12:40:43.155 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1842G3/brightness.csv.gz 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 255 lines 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.kitchen_lamp entity_category=None, sensor_name=kitchen_lamp power strategy=LutStrategy manufacturer=ikea model=LED1842G3 standby_power=0.55 unique_id=0x14b457fffe3f56b7_light_zigbee2mqtt) 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: kitchen_lamp energy 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: kitchen power (entity_id=sensor.kitchen_power) 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: kitchen energy (entity_id=sensor.kitchen_energy) 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: allrum 2023-05-08 12:40:43.157 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.family_room_window_1', unique_id='0xcc86ecfffe895f95_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='9b64ce47727a6395bd320c701e8a2525', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='bc50c9312275e4619a7ab4aa86503659', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='family_room_window_1', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.158 DEBUG (MainThread) [custom_components.powercalc.discovery] light.family_room_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.159 DEBUG (MainThread) [custom_components.powercalc.discovery] light.family_room_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.160 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1949C5/color_temp.csv.gz 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1144 lines 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.family_room_window_1 entity_category=None, sensor_name=family_room_window_1 power strategy=LutStrategy manufacturer=ikea model=LED1949C5 standby_power=0.20 unique_id=0xcc86ecfffe895f95_light_zigbee2mqtt) 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: family_room_window_1 energy 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: family room power (entity_id=sensor.family_room_power) 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: family room energy (entity_id=sensor.family_room_energy) 2023-05-08 12:40:43.162 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: badrum_nere 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.bathroom_downstairs_mirror', unique_id='0x842e14fffe5666f0_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='a2282cdb5f629eaf14e8bcd59a1fc166', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='a455fff7bb044a3d88213eb624c0f60b', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='bathroom_downstairs_mirror', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Auto discovered model (manufacturer=IKEA of Sweden, model=SILVERGLANS IP44 LED driver for wireless control (30 watt) (ICPSHC24-30-IL44-1)) 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bathroom_downstairs_mirror entity_category=None, sensor_name=bathroom_downstairs_mirror power strategy=FixedStrategy manufacturer= model= standby_power=1.20 unique_id=0x842e14fffe5666f0_light_zigbee2mqtt) 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: bathroom_downstairs_mirror energy 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: bathroom power (entity_id=sensor.bathroom_power) 2023-05-08 12:40:43.163 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: bathroom energy (entity_id=sensor.bathroom_energy) 2023-05-08 12:40:43.164 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: toalett_uppe 2023-05-08 12:40:43.164 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.upper_toilet', unique_id='C45BBE78380D-light_0', platform='shelly', aliases=set(), area_id=None, capabilities={'supported_color_modes': ['brightness']}, config_entry_id='21cd79094a8319e42dbdae65d2807bc6', device_class=None, device_id='3cfb3011e57e73ea0a609bd4b66596f5', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='c251fb23fd924544c6fe0748fa501b35', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='upper_toilet', supported_features=32, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.164 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Auto discovered model (manufacturer=Shelly, model=Shelly Dimmer 2) 2023-05-08 12:40:43.165 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.upper_toilet entity_category=None, sensor_name=upper_toilet power strategy=FixedStrategy manufacturer= model= standby_power=0.00 unique_id=C45BBE78380D-light_0) 2023-05-08 12:40:43.165 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: upper_toilet energy 2023-05-08 12:40:43.165 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: toilet_upstairs power (entity_id=sensor.toilet_upstairs_power) 2023-05-08 12:40:43.165 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: toilet_upstairs energy (entity_id=sensor.toilet_upstairs_energy) 2023-05-08 12:40:43.165 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: hallen 2023-05-08 12:40:43.167 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.hallway_downstairs_bench', unique_id='0x000b57fffec7fc2a_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp', 'xy']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='1b406ff18f2aeb2cbe0f4bcbeef4947d', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='7f2dbf8e0f596de25130105ccbe2aecf', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='hallway_downstairs_bench', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.hallway_downstairs_entrance', unique_id='0x943469fffe560095_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='b48acfda906c6e69c9f08e977c9c0c0d', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='1d276e5dba2c5f1208d82a415eba50c9', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='hallway_downstairs_entrance', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.hallway_downstairs_1', unique_id='0xb4e3f9fffecb1a2b_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='3e8c11971ddb0c7d084236c0a926ce82', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='04564e12ea48230486be34ac37c2f36c', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='hallway_downstairs_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.hallway_downstairs_2', unique_id='0xf4b3b1fffe211e40_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='a95652e86ee6600e3f4b90eb83546dee', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='0b320a4fc648c9a45980bb7b2f35d62d', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='hallway_downstairs_2', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.167 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_bench: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E14#slash#E26#slash#E27 600 lumen, dimmable, color, opal white (LED1624G9)) 2023-05-08 12:40:43.167 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_entrance: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.168 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.168 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.169 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_bench: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E14#slash#E26#slash#E27 600 lumen, dimmable, color, opal white (LED1624G9)) 2023-05-08 12:40:43.169 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1624G9/color_temp.csv.gz 2023-05-08 12:40:43.170 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 2 lines 2023-05-08 12:40:43.170 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hallway_downstairs_bench entity_category=None, sensor_name=hallway_downstairs_bench power strategy=LutStrategy manufacturer=ikea model=LED1624G9 standby_power=0.48 unique_id=0x000b57fffec7fc2a_light_zigbee2mqtt) 2023-05-08 12:40:43.170 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: hallway_downstairs_bench energy 2023-05-08 12:40:43.170 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_entrance: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hallway_downstairs_entrance entity_category=None, sensor_name=hallway_downstairs_entrance power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x943469fffe560095_light_zigbee2mqtt) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: hallway_downstairs_entrance energy 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hallway_downstairs_1 entity_category=None, sensor_name=hallway_downstairs_1 power strategy=LutStrategy manufacturer=ikea model=LED1949C5 standby_power=0.20 unique_id=0xb4e3f9fffecb1a2b_light_zigbee2mqtt) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: hallway_downstairs_1 energy 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_downstairs_2: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hallway_downstairs_2 entity_category=None, sensor_name=hallway_downstairs_2 power strategy=LutStrategy manufacturer=ikea model=LED1949C5 standby_power=0.20 unique_id=0xf4b3b1fffe211e40_light_zigbee2mqtt) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: hallway_downstairs_2 energy 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: hallway downstairs power (entity_id=sensor.hallway_downstairs_power) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: hallway downstairs energy (entity_id=sensor.hallway_downstairs_energy) 2023-05-08 12:40:43.171 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: living_room 2023-05-08 12:40:43.174 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.mushroom_lamp', unique_id='0x086bd7fffe04e7c5_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='663d62e467a73636bfe4d55e13679292', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='aebc405c8d7a05c2c8864af21d48e7c5', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='mushroom_lamp', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_window_1', unique_id='0xb4e3f9fffe0c068d_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='789ad858997d4130840dc12cfb860d1c', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='ebbbc3668cdae29ff16581c6cab3f6ff', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_window_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_back_4', unique_id='0x847127fffeaea15e_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='d2c91f54c86bece4ef042cc000b7aad3', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='f153f06924bc0bcdbd15deb0c2cb2f8d', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_back_4', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_front_4', unique_id='0xbc33acfffebf58db_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='c28e5afe0cca45bef6edb36e5a578df1', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='eaf7b47817ed66be3db6104dde1b59bb', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_front_4', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_back_1', unique_id='0x847127fffe2b1d2a_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='9b8972592fb981cc7099b8a526a72441', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='f5e6ccd3838bd2135da636915e477bd7', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_back_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_back_3', unique_id='0x04cd15fffe816916_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='b71b232f2016b4af64af292ce006d81d', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='c85b6ac7f84e6ea13d1744c6223a014c', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_back_3', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_back_2', unique_id='0x04cd15fffe8b390c_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='bdff1effbacaa56432a8afe7dbd2a522', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='c0fe5e203e52e6cf8545cfef14b9fdaf', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_back_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_front_3', unique_id='0x804b50fffe009c23_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='95d985a303da365946d589e8c650b111', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='a00f8f7e5f9302c0ceed1ed3b223cba9', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_front_3', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_front_1', unique_id='0x847127fffe411f0b_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='38d91de3efb1d3834ccfaf8863f8141e', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='d922a59610d29022222e55a2982c881e', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_front_1', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.livingroom_front_2', unique_id='0x847127fffeafa7ed_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='7f3e56e430dc20b5403631ed9ecebbaf', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='7f275087b7ebbf45a47360a5242e28b8', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='livingroom_front_2', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.floor_lamp', unique_id='0xbc33acfffe865227_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='a46c373562d3e3feface4ddfd370bd79', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='acdd9753781c4f5c7b466e92abc4a6e3', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='floor_lamp', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.175 DEBUG (MainThread) [custom_components.powercalc.discovery] light.mushroom_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14#slash#E17 400 lumen, dimmable warm white, chandelier opal (LED1649C5)) 2023-05-08 12:40:43.175 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.176 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_4: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.177 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_4: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.177 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_1: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.178 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_3: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.178 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_2: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.179 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_3: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.179 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_1: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.179 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_2: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.180 DEBUG (MainThread) [custom_components.powercalc.discovery] light.floor_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 1000 lumen, dimmable, white spectrum, opal white (LED1732G11)) 2023-05-08 12:40:43.180 DEBUG (MainThread) [custom_components.powercalc.discovery] light.mushroom_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14#slash#E17 400 lumen, dimmable warm white, chandelier opal (LED1649C5)) 2023-05-08 12:40:43.180 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1649C5/brightness.csv.gz 2023-05-08 12:40:43.181 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines 2023-05-08 12:40:43.181 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.mushroom_lamp entity_category=None, sensor_name=mushroom_lamp power strategy=LutStrategy manufacturer=ikea model=LED1649C5 standby_power=0.40 unique_id=0x086bd7fffe04e7c5_light_zigbee2mqtt) 2023-05-08 12:40:43.181 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: mushroom_lamp energy 2023-05-08 12:40:43.181 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_window_1: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 450#slash#470 lumen, wireless dimmable white spectrum#slash#chandelier opal white (LED1949C5)) 2023-05-08 12:40:43.182 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_window_1 entity_category=None, sensor_name=livingroom_window_1 power strategy=LutStrategy manufacturer=ikea model=LED1949C5 standby_power=0.20 unique_id=0xb4e3f9fffe0c068d_light_zigbee2mqtt) 2023-05-08 12:40:43.182 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_window_1 energy 2023-05-08 12:40:43.182 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_4: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.182 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/T1820/color_temp.csv.gz 2023-05-08 12:40:43.189 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1144 lines 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_back_4 entity_category=None, sensor_name=livingroom_back_4 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x847127fffeaea15e_light_zigbee2mqtt) 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_back_4 energy 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_4: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_front_4 entity_category=None, sensor_name=livingroom_front_4 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0xbc33acfffebf58db_light_zigbee2mqtt) 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_front_4 energy 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_1: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_back_1 entity_category=None, sensor_name=livingroom_back_1 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x847127fffe2b1d2a_light_zigbee2mqtt) 2023-05-08 12:40:43.190 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_back_1 energy 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_3: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_back_3 entity_category=None, sensor_name=livingroom_back_3 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x04cd15fffe816916_light_zigbee2mqtt) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_back_3 energy 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_back_2: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_back_2 entity_category=None, sensor_name=livingroom_back_2 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x04cd15fffe8b390c_light_zigbee2mqtt) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_back_2 energy 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_3: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_front_3 entity_category=None, sensor_name=livingroom_front_3 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x804b50fffe009c23_light_zigbee2mqtt) 2023-05-08 12:40:43.191 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_front_3 energy 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_1: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_front_1 entity_category=None, sensor_name=livingroom_front_1 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x847127fffe411f0b_light_zigbee2mqtt) 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_front_1 energy 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.discovery] light.livingroom_front_2: Auto discovered model (manufacturer=IKEA of Sweden, model=LEPTITER Recessed spot light, dimmable, white spectrum (T1820)) 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.livingroom_front_2 entity_category=None, sensor_name=livingroom_front_2 power strategy=LutStrategy manufacturer=ikea model=T1820 standby_power=0.30 unique_id=0x847127fffeafa7ed_light_zigbee2mqtt) 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_front_2 energy 2023-05-08 12:40:43.192 DEBUG (MainThread) [custom_components.powercalc.discovery] light.floor_lamp: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 1000 lumen, dimmable, white spectrum, opal white (LED1732G11)) 2023-05-08 12:40:43.193 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1732G11/color_temp.csv.gz 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1785 lines 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.floor_lamp entity_category=None, sensor_name=floor_lamp power strategy=LutStrategy manufacturer=ikea model=LED1732G11 standby_power=0.26 unique_id=0xbc33acfffe865227_light_zigbee2mqtt) 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: floor_lamp energy 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: living room power (entity_id=sensor.living_room_power) 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: living room energy (entity_id=sensor.living_room_energy) 2023-05-08 12:40:43.197 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: hall_uppe 2023-05-08 12:40:43.198 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.hallway_upstairs_window', unique_id='0x50325ffffe3d1c41_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='f5de2f3b90f735ec3b5605c8cac76d62', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='beffc559e0f967b0e7bf12c49f3f57ca', has_entity_name=False, name='Fönsterlampa', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='hallway_upstairs_window', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.199 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_upstairs_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 WW clear 250 lumen, dimmable (LED1935C3)) 2023-05-08 12:40:43.199 DEBUG (MainThread) [custom_components.powercalc.discovery] light.hallway_upstairs_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14 WW clear 250 lumen, dimmable (LED1935C3)) 2023-05-08 12:40:43.199 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.hallway_upstairs_window entity_category=None, sensor_name=Fönsterlampa power strategy=LutStrategy manufacturer=ikea model=LED1935C3 standby_power=0.10 unique_id=0x50325ffffe3d1c41_light_zigbee2mqtt) 2023-05-08 12:40:43.200 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Fönsterlampa energy 2023-05-08 12:40:43.200 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: hallway upstairs power (entity_id=sensor.hallway_upstairs_power) 2023-05-08 12:40:43.200 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: hallway upstairs energy (entity_id=sensor.hallway_upstairs_energy) 2023-05-08 12:40:43.200 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: hobbyrummet 2023-05-08 12:40:43.202 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.office_led_strip', unique_id='0x5c0272fffe1c8aae_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6666, 'min_mireds': 150, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp', 'xy']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='c1262a0ace86d2deb29d3f0ad7384209', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='dec821855d4297546eba4b2e17043751', has_entity_name=False, name='Arbetsbänk', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='office_led_strip', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.202 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Auto discovered model (manufacturer=Lidl, model=Livarno Lux smart LED light strip 2.5m (HG06104A)) 2023-05-08 12:40:43.208 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.office_led_strip entity_category=None, sensor_name=Arbetsbänk power strategy=FixedStrategy manufacturer= model= standby_power=0.10 unique_id=0x5c0272fffe1c8aae_light_zigbee2mqtt) 2023-05-08 12:40:43.209 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Arbetsbänk energy 2023-05-08 12:40:43.209 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: office power (entity_id=sensor.office_power) 2023-05-08 12:40:43.209 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: office energy (entity_id=sensor.office_energy) 2023-05-08 12:40:43.209 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: bedroom 2023-05-08 12:40:43.211 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.bedroom_left', unique_id='0x2c1165fffe038a92_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='1d9edc4c88480e4de6cc5c34f2fdbd8b', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='0d97da9ee1da768ba58b147769f207a5', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='bedroom_left', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.bedroom_right', unique_id='0x50325ffffeed90c1_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='927ce6532a58f2cccae557d327a0a0c7', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='fb31b72379e0a8382ccc1eceff4ff773', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='bedroom_right', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.bedroom_ceiling', unique_id='0x000d6ffffefc12f4_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='aa4307a97901b6af0fe5708f21790dd4', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='c5e9c735c4b24e6f7b9662dbd9ddb936', has_entity_name=False, name='Taklampan', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='bedroom_ceiling', supported_features=44, translation_key=None, unit_of_measurement=None), RegistryEntry(entity_id='light.bedroom_window', unique_id='0x2c1165fffeac09a5_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='560d31a64c4264a78b770d27ba9dfbbe', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='00c7cbf215ccc73c7ef156b899a0d4a3', has_entity_name=False, name='Fönsterlampa', options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='bedroom_window', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.211 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_left: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.218 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_right: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.218 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_ceiling: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (LED1623G12)) 2023-05-08 12:40:43.218 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.218 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_left: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bedroom_left entity_category=None, sensor_name=bedroom_left power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x2c1165fffe038a92_light_zigbee2mqtt) 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: bedroom_left energy 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_right: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E26#slash#27 1100#slash#1055#slash#1160 lumen, dimmable, white spectrum, opal white (LED2003G10)) 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bedroom_right entity_category=None, sensor_name=bedroom_right power strategy=LutStrategy manufacturer=ikea model=LED2003G10 standby_power=0.17 unique_id=0x50325ffffeed90c1_light_zigbee2mqtt) 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: bedroom_right energy 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_ceiling: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (LED1623G12)) 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/ikea/LED1623G12/brightness.csv.gz 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 100 lines 2023-05-08 12:40:43.219 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bedroom_ceiling entity_category=None, sensor_name=Taklampan power strategy=LutStrategy manufacturer=ikea model=LED1623G12 standby_power=0.36 unique_id=0x000d6ffffefc12f4_light_zigbee2mqtt) 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Taklampan energy 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bedroom_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (LED1934G3_E27)) 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.bedroom_window entity_category=None, sensor_name=Fönsterlampa power strategy=LutStrategy manufacturer=ikea model=LED1934G3 standby_power=0.27 unique_id=0x2c1165fffeac09a5_light_zigbee2mqtt) 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Fönsterlampa energy 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: bedroom power (entity_id=sensor.bedroom_power) 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: bedroom energy (entity_id=sensor.bedroom_energy) 2023-05-08 12:40:43.220 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: tvattstuga 2023-05-08 12:40:43.221 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.laundry_room_window', unique_id='0x588e81fffe67404d_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='81424ca4ea10b6864fd4978427353edf', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='9b1d98fe84b515438020cb7ec5e81439', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='laundry_room_window', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.221 DEBUG (MainThread) [custom_components.powercalc.discovery] light.laundry_room_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb E12#slash#E14#slash#E17 WS 450#slash#470#slash#440 lumen, dimmable, white spectrum, opal white (LED1903C5#slash#LED1835C6)) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.discovery] light.laundry_room_window: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI bulb E12#slash#E14#slash#E17 WS 450#slash#470#slash#440 lumen, dimmable, white spectrum, opal white (LED1903C5#slash#LED1835C6)) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.laundry_room_window entity_category=None, sensor_name=laundry_room_window power strategy=LutStrategy manufacturer=ikea model=LED1835C6 standby_power=0.25 unique_id=0x588e81fffe67404d_light_zigbee2mqtt) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: laundry_room_window energy 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=switch.laundry_room_channel_1 entity_category=None, sensor_name=laundry_room channel 1 power strategy=FixedStrategy manufacturer= model= standby_power=0.00 unique_id=C45BBE798D1F-relay_0) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: laundry_room channel 1 energy 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: laundry room power (entity_id=sensor.laundry_room_power) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: laundry room energy (entity_id=sensor.laundry_room_energy) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: indoor lights power (entity_id=sensor.indoor_lights_power) 2023-05-08 12:40:43.222 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: indoor lights energy (entity_id=sensor.indoor_lights_energy) 2023-05-08 12:40:43.235 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: garage 2023-05-08 12:40:43.236 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [RegistryEntry(entity_id='light.garage_alert', unique_id='0x680ae2fffe8f8d11_light_zigbee2mqtt', platform='mqtt', aliases=set(), area_id=None, capabilities={'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['brightness']}, config_entry_id='ed73bc0dd5b037efe0f7b5208585e074', device_class=None, device_id='3189253f55a131dad88e0cd0fde99cd7', disabled_by=None, entity_category=None, hidden_by=None, icon=None, id='b8ca778678886ea0af4beca18b090cfd', has_entity_name=False, name=None, options={'conversation': mappingproxy({'should_expose': True})}, original_device_class=None, original_icon=None, original_name='garage_alert', supported_features=44, translation_key=None, unit_of_measurement=None)] 2023-05-08 12:40:43.236 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_alert: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14#slash#E17 400 lumen, dimmable warm white, chandelier opal (LED1649C5)) 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.discovery] light.garage_alert: Auto discovered model (manufacturer=IKEA of Sweden, model=TRADFRI LED bulb E12#slash#E14#slash#E17 400 lumen, dimmable warm white, chandelier opal (LED1649C5)) 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.garage_alert entity_category=None, sensor_name=garage_alert power strategy=LutStrategy manufacturer=ikea model=LED1649C5 standby_power=0.40 unique_id=0x680ae2fffe8f8d11_light_zigbee2mqtt) 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: garage_alert energy 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: garage power (entity_id=sensor.garage_power) 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: garage energy (entity_id=sensor.garage_energy) 2023-05-08 12:40:43.237 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Including entities from area: teknikrum 2023-05-08 12:40:43.239 DEBUG (MainThread) [custom_components.powercalc.sensor] Found include entities: [] 2023-05-08 12:40:43.239 ERROR (MainThread) [custom_components.powercalc.sensor] Could not resolve any entities in group 'techroom' 2023-05-08 12:40:43.241 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.entre_1_power to device e76897dda0a1f08d893f942c80960d6b 2023-05-08 12:40:43.241 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.entre_2_power to device b490e0e16be952eeccc825df7d611142 2023-05-08 12:40:43.242 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_1_power to device 8af4d2acf3f765f5d6dbc06a68676115 2023-05-08 12:40:43.243 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.garage_front_power to device c693fc5507d76d887b1c3fb1f0083918 2023-05-08 12:40:43.244 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_2_power to device 23bc52fc888649402e4a28932d208375 2023-05-08 12:40:43.244 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_3_power to device 66c2a7c58ba5d2097f5f69d4be20ada5 2023-05-08 12:40:43.245 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.garage_side_power to device 5f332018ca05af7300efef50db568560 2023-05-08 12:40:43.246 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.driveway_1_power to device 1c4ff4a1b08cfa55ff692cf04bb2c288 2023-05-08 12:40:43.247 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.earth_cellar_power to device ce27983fa32233d67ddc48a9db8e01fa 2023-05-08 12:40:43.248 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_6_power to device 6341fb38270bb68643ac9859dd5e7df3 2023-05-08 12:40:43.248 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_7_power to device e9c6f007f9e831c3691f13e5fc43b352 2023-05-08 12:40:43.249 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_2_power to device 65da297a982a9ebe9822a873aae7a6f9 2023-05-08 12:40:43.250 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_5_power to device e4bf3461730d4be56fb2c025ffc6eccd 2023-05-08 12:40:43.251 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.greenhouse_1_power to device f0f0116bc2d922e406637bc355d58250 2023-05-08 12:40:43.251 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_1_power to device 84c5f843b56dfb9ae61b79e9ca6dcc20 2023-05-08 12:40:43.252 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_3_power to device da910ade1490a9e5b8ff9ea27f3df0de 2023-05-08 12:40:43.253 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_4_power to device dcf16486ecbcd79d19c1dd3026d2292c 2023-05-08 12:40:43.254 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_1_power to device 2e5f990fc475fa0f1edb75f39cfb806b 2023-05-08 12:40:43.254 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_2_power to device 7336007b3c86bb636d14c087a6e2f7a8 2023-05-08 12:40:43.255 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_3_power to device de85f37f07e41b1333a49349bf5e8eb2 2023-05-08 12:40:43.268 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=sensor.dummy entity_category=None, sensor_name=techups power strategy=FixedStrategy manufacturer= model= standby_power=0.00 unique_id=3788b38d-5330-4c7e-a0ea-8565dda2c6c9) 2023-05-08 12:40:43.268 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: techups energy 2023-05-08 12:40:43.269 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_ceiling_power to device 8b95874d125bbf906ff826fadb25d0d9 2023-05-08 12:40:43.269 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.rice_lamp_power to device 78e51e1a6b8374940bd8b4d77e4998f0 2023-05-08 12:40:43.270 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_table_power to device 656b09babb8352262dfcddc882ef9b71 2023-05-08 12:40:43.271 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_window_1_power to device 8689f2ff656691985596b09007261aff 2023-05-08 12:40:43.272 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_lamp_power to device 078e27299fd7b1e92583f85b3f2e5b0b 2023-05-08 12:40:43.273 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.family_room_window_1_power to device 9b64ce47727a6395bd320c701e8a2525 2023-05-08 12:40:43.274 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bathroom_downstairs_mirror_power to device a2282cdb5f629eaf14e8bcd59a1fc166 2023-05-08 12:40:43.275 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.upper_toilet_power_2 to device 3cfb3011e57e73ea0a609bd4b66596f5 2023-05-08 12:40:43.276 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_bench_power to device 1b406ff18f2aeb2cbe0f4bcbeef4947d 2023-05-08 12:40:43.277 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_entrance_power to device b48acfda906c6e69c9f08e977c9c0c0d 2023-05-08 12:40:43.278 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_1_power to device 3e8c11971ddb0c7d084236c0a926ce82 2023-05-08 12:40:43.279 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_2_power to device a95652e86ee6600e3f4b90eb83546dee 2023-05-08 12:40:43.280 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.mushroom_lamp_power to device 663d62e467a73636bfe4d55e13679292 2023-05-08 12:40:43.281 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_window_1_power to device 789ad858997d4130840dc12cfb860d1c 2023-05-08 12:40:43.282 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_4_power to device d2c91f54c86bece4ef042cc000b7aad3 2023-05-08 12:40:43.283 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_4_power to device c28e5afe0cca45bef6edb36e5a578df1 2023-05-08 12:40:43.283 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_1_power to device 9b8972592fb981cc7099b8a526a72441 2023-05-08 12:40:43.284 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_3_power to device b71b232f2016b4af64af292ce006d81d 2023-05-08 12:40:43.285 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_2_power to device bdff1effbacaa56432a8afe7dbd2a522 2023-05-08 12:40:43.285 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_3_power to device 95d985a303da365946d589e8c650b111 2023-05-08 12:40:43.286 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_1_power to device 38d91de3efb1d3834ccfaf8863f8141e 2023-05-08 12:40:43.287 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_2_power to device 7f3e56e430dc20b5403631ed9ecebbaf 2023-05-08 12:40:43.288 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.floor_lamp_power to device a46c373562d3e3feface4ddfd370bd79 2023-05-08 12:40:43.289 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_upstairs_window_power to device f5de2f3b90f735ec3b5605c8cac76d62 2023-05-08 12:40:43.289 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.office_led_strip_power to device c1262a0ace86d2deb29d3f0ad7384209 2023-05-08 12:40:43.291 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_left_power to device 1d9edc4c88480e4de6cc5c34f2fdbd8b 2023-05-08 12:40:43.291 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_right_power to device 927ce6532a58f2cccae557d327a0a0c7 2023-05-08 12:40:43.292 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_ceiling_power to device aa4307a97901b6af0fe5708f21790dd4 2023-05-08 12:40:43.293 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_window_power to device 560d31a64c4264a78b770d27ba9dfbbe 2023-05-08 12:40:43.294 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.laundry_room_window_power to device 81424ca4ea10b6864fd4978427353edf 2023-05-08 12:40:43.294 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.laundry_room_channel_1_power_2 to device 916b31e9a0b4c80a4a4f3585cecd46f8 2023-05-08 12:40:43.306 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.hobbyroom_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Home Mini) 2023-05-08 12:40:43.308 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=media_player.hobbyroom_speaker entity_category=None, sensor_name=hobbyroom_speaker power strategy=LinearStrategy manufacturer=google model=Home Mini (HOA) standby_power=1.65 unique_id=9d2104d0-fa1d-6e19-eeaa-e08660787ed4) 2023-05-08 12:40:43.308 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: hobbyroom_speaker energy 2023-05-08 12:40:43.309 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display: Auto discovered model (manufacturer=Google Inc., model=Google Nest Hub) 2023-05-08 12:40:43.309 ERROR (MainThread) [custom_components.powercalc.sensors.power] media_player.kitchen_display: Skipping sensor setup Model not found in library (manufacturer: Google Inc., model: Google Nest Hub) 2023-05-08 12:40:43.310 ERROR (MainThread) [custom_components.powercalc.sensors.power] media_player.kitchen_display: Skipping sensor setup: Model not found in library (manufacturer: Google Inc., model: Google Nest Hub) 2023-05-08 12:40:43.310 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.vardagsrummet_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Nest Mini) 2023-05-08 12:40:43.311 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=media_player.vardagsrummet_speaker entity_category=None, sensor_name=vardagsrummet_speaker power strategy=LinearStrategy manufacturer=google model=Nest Mini (H2C) standby_power=1.65 unique_id=a7f130bf-f099-1f63-c840-ec0f84b4d285) 2023-05-08 12:40:43.311 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: vardagsrummet_speaker energy 2023-05-08 12:40:43.311 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.sovrummet_speaker: Auto discovered model (manufacturer=Lenovo, model=Lenovo CD-4N341Y) 2023-05-08 12:40:43.312 ERROR (MainThread) [custom_components.powercalc.sensors.power] media_player.sovrummet_speaker: Skipping sensor setup Model not found in library (manufacturer: Lenovo, model: Lenovo CD-4N341Y) 2023-05-08 12:40:43.312 ERROR (MainThread) [custom_components.powercalc.sensors.power] media_player.sovrummet_speaker: Skipping sensor setup: Model not found in library (manufacturer: Lenovo, model: Lenovo CD-4N341Y) 2023-05-08 12:40:43.312 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: smart speakers power (entity_id=sensor.smart_speakers_power) 2023-05-08 12:40:43.312 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: smart speakers energy (entity_id=sensor.smart_speakers_energy) 2023-05-08 12:40:43.328 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=fan.livingroom_starkvind entity_category=None, sensor_name=livingroom_starkvind power strategy=FixedStrategy manufacturer= model= standby_power=0.00 unique_id=0x2c1165fffe7daa19_fan_zigbee2mqtt) 2023-05-08 12:40:43.328 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: livingroom_starkvind energy 2023-05-08 12:40:43.328 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: environment and air quality power (entity_id=sensor.environment_and_air_quality_power) 2023-05-08 12:40:43.328 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: environment and air quality energy (entity_id=sensor.environment_and_air_quality_energy) 2023-05-08 12:40:43.334 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.entre_1_energy to device e76897dda0a1f08d893f942c80960d6b 2023-05-08 12:40:43.334 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.entre_2_energy to device b490e0e16be952eeccc825df7d611142 2023-05-08 12:40:43.335 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_1_energy to device 8af4d2acf3f765f5d6dbc06a68676115 2023-05-08 12:40:43.335 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.garage_front_energy to device c693fc5507d76d887b1c3fb1f0083918 2023-05-08 12:40:43.335 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_2_energy to device 23bc52fc888649402e4a28932d208375 2023-05-08 12:40:43.335 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.parking_3_energy to device 66c2a7c58ba5d2097f5f69d4be20ada5 2023-05-08 12:40:43.336 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.garage_side_energy to device 5f332018ca05af7300efef50db568560 2023-05-08 12:40:43.336 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.driveway_1_energy to device 1c4ff4a1b08cfa55ff692cf04bb2c288 2023-05-08 12:40:43.336 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.earth_cellar_energy to device ce27983fa32233d67ddc48a9db8e01fa 2023-05-08 12:40:43.337 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Load previous energy sensor states from store 2023-05-08 12:40:43.337 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_parking_driveway_energy: Restoring state: 0.0063 2023-05-08 12:40:43.337 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_6_energy to device 6341fb38270bb68643ac9859dd5e7df3 2023-05-08 12:40:43.337 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_7_energy to device e9c6f007f9e831c3691f13e5fc43b352 2023-05-08 12:40:43.338 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_2_energy to device 65da297a982a9ebe9822a873aae7a6f9 2023-05-08 12:40:43.338 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_5_energy to device e4bf3461730d4be56fb2c025ffc6eccd 2023-05-08 12:40:43.338 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.greenhouse_1_energy to device f0f0116bc2d922e406637bc355d58250 2023-05-08 12:40:43.339 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_1_energy to device 84c5f843b56dfb9ae61b79e9ca6dcc20 2023-05-08 12:40:43.339 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_3_energy to device da910ade1490a9e5b8ff9ea27f3df0de 2023-05-08 12:40:43.340 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wall_4_energy to device dcf16486ecbcd79d19c1dd3026d2292c 2023-05-08 12:40:43.340 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_1_energy to device 2e5f990fc475fa0f1edb75f39cfb806b 2023-05-08 12:40:43.340 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_2_energy to device 7336007b3c86bb636d14c087a6e2f7a8 2023-05-08 12:40:43.341 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_3_energy to device de85f37f07e41b1333a49349bf5e8eb2 2023-05-08 12:40:43.341 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_ambience_energy: Restoring state: 0.0104 2023-05-08 12:40:43.341 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_lights_energy: Restoring state: 0.0167 2023-05-08 12:40:43.445 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hobbyroom_speaker_power to device 3c6837d79a6db595a7d273efba0bef3a 2023-05-08 12:40:43.446 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.vardagsrummet_speaker_power to device 171edd3abed80b550d5ec6983ee7f3c3 2023-05-08 12:40:43.447 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.conservatory_ceiling_energy to device 8b95874d125bbf906ff826fadb25d0d9 2023-05-08 12:40:43.447 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.rice_lamp_energy to device 78e51e1a6b8374940bd8b4d77e4998f0 2023-05-08 12:40:43.447 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.conservatory_energy: Restoring state: 2.5507 2023-05-08 12:40:43.448 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_table_energy to device 656b09babb8352262dfcddc882ef9b71 2023-05-08 12:40:43.448 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.kitchen_table_energy could not restore last state unavailable: [] 2023-05-08 12:40:43.450 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_window_1_energy to device 8689f2ff656691985596b09007261aff 2023-05-08 12:40:43.450 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.kitchen_window_1_energy could not restore last state unavailable: [] 2023-05-08 12:40:43.451 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.kitchen_lamp_energy to device 078e27299fd7b1e92583f85b3f2e5b0b 2023-05-08 12:40:43.451 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.kitchen_lamp_energy could not restore last state unavailable: [] 2023-05-08 12:40:43.452 WARNING (MainThread) [custom_components.powercalc.sensors.group] Could not restore last state: [] 2023-05-08 12:40:43.454 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.family_room_window_1_energy to device 9b64ce47727a6395bd320c701e8a2525 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.family_room_energy: Restoring state: 0.0008 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bathroom_downstairs_mirror_energy to device a2282cdb5f629eaf14e8bcd59a1fc166 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: Restoring state: 16.0483 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.upper_toilet_energy_2 to device 3cfb3011e57e73ea0a609bd4b66596f5 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.toilet_upstairs_energy: Restoring state: 2.0947 2023-05-08 12:40:43.455 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_bench_energy to device 1b406ff18f2aeb2cbe0f4bcbeef4947d 2023-05-08 12:40:43.456 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_entrance_energy to device b48acfda906c6e69c9f08e977c9c0c0d 2023-05-08 12:40:43.456 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_1_energy to device 3e8c11971ddb0c7d084236c0a926ce82 2023-05-08 12:40:43.456 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_downstairs_2_energy to device a95652e86ee6600e3f4b90eb83546dee 2023-05-08 12:40:43.457 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.hallway_downstairs_energy: Restoring state: 0.0040 2023-05-08 12:40:43.457 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.mushroom_lamp_energy to device 663d62e467a73636bfe4d55e13679292 2023-05-08 12:40:43.457 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_window_1_energy to device 789ad858997d4130840dc12cfb860d1c 2023-05-08 12:40:43.457 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_4_energy to device d2c91f54c86bece4ef042cc000b7aad3 2023-05-08 12:40:43.458 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_4_energy to device c28e5afe0cca45bef6edb36e5a578df1 2023-05-08 12:40:43.458 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_1_energy to device 9b8972592fb981cc7099b8a526a72441 2023-05-08 12:40:43.458 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_3_energy to device b71b232f2016b4af64af292ce006d81d 2023-05-08 12:40:43.458 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_back_2_energy to device bdff1effbacaa56432a8afe7dbd2a522 2023-05-08 12:40:43.459 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_3_energy to device 95d985a303da365946d589e8c650b111 2023-05-08 12:40:43.459 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_1_energy to device 38d91de3efb1d3834ccfaf8863f8141e 2023-05-08 12:40:43.460 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_front_2_energy to device 7f3e56e430dc20b5403631ed9ecebbaf 2023-05-08 12:40:43.460 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.floor_lamp_energy to device a46c373562d3e3feface4ddfd370bd79 2023-05-08 12:40:43.460 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: Restoring state: 1.8072 2023-05-08 12:40:43.460 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hallway_upstairs_window_energy to device f5de2f3b90f735ec3b5605c8cac76d62 2023-05-08 12:40:43.461 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.hallway_upstairs_energy: Restoring state: 0.0004 2023-05-08 12:40:43.461 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.office_led_strip_energy to device c1262a0ace86d2deb29d3f0ad7384209 2023-05-08 12:40:43.461 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.office_energy: Restoring state: 0.0004 2023-05-08 12:40:43.461 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_left_energy to device 1d9edc4c88480e4de6cc5c34f2fdbd8b 2023-05-08 12:40:43.461 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_right_energy to device 927ce6532a58f2cccae557d327a0a0c7 2023-05-08 12:40:43.462 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_ceiling_energy to device aa4307a97901b6af0fe5708f21790dd4 2023-05-08 12:40:43.462 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bedroom_window_energy to device 560d31a64c4264a78b770d27ba9dfbbe 2023-05-08 12:40:43.463 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bedroom_energy: Restoring state: 0.0038 2023-05-08 12:40:43.463 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.laundry_room_window_energy to device 81424ca4ea10b6864fd4978427353edf 2023-05-08 12:40:43.463 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.laundry_room_window_energy could not restore last state unavailable: [] 2023-05-08 12:40:43.464 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.laundry_room_channel_1_energy_2 to device 916b31e9a0b4c80a4a4f3585cecd46f8 2023-05-08 12:40:43.464 WARNING (MainThread) [custom_components.powercalc.sensors.group] Could not restore last state: [] 2023-05-08 12:40:43.465 WARNING (MainThread) [custom_components.powercalc.sensors.group] Could not restore last state: [] 2023-05-08 12:40:43.482 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_starkvind_power to device 1ce5e89ca8b4bef9386eb3aff5bc1451 2023-05-08 12:40:43.497 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.hobbyroom_speaker_energy to device 3c6837d79a6db595a7d273efba0bef3a 2023-05-08 12:40:43.498 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.vardagsrummet_speaker_energy to device 171edd3abed80b550d5ec6983ee7f3c3 2023-05-08 12:40:43.498 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.smart_speakers_energy: Restoring state: 12.4244 2023-05-08 12:40:43.499 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.livingroom_starkvind_energy to device 1ce5e89ca8b4bef9386eb3aff5bc1451 2023-05-08 12:40:43.500 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.environment_and_air_quality_energy: Restoring state: 4.3287 2023-05-08 12:40:43.833 DEBUG (MainThread) [custom_components.powercalc.sensors.power] switch.laundry_room_channel_1: State changed to "off". Power:0.00 2023-05-08 12:40:43.833 DEBUG (MainThread) [custom_components.powercalc.sensors.power] switch.laundry_room_channel_1: State changed to "off". Power:0.00 2023-05-08 12:40:43.920 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.upper_toilet: State changed to "off". Power:0.00 2023-05-08 12:40:43.922 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.upper_toilet: State changed to "off". Power:0.00 2023-05-08 12:40:44.177 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up sureha platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/sureha/sensor.py", line 59, in async_setup_entry entities.append(Flap(spc.coordinator, surepy_entity.id, spc)) File "/config/custom_components/sureha/sensor.py", line 179, in __init__ self._attr_entity_picture = self._surepy_entity.icon File "/usr/local/lib/python3.10/site-packages/surepy/entities/devices.py", line 210, in icon if self.state == LockState.LOCKED_ALL: File "/usr/local/lib/python3.10/site-packages/surepy/entities/devices.py", line 198, in state return LockState(self._data["status"]["locking"]["mode"]) File "/usr/local/lib/python3.10/enum.py", line 385, in __call__ return cls.__new__(cls, value) File "/usr/local/lib/python3.10/enum.py", line 710, in __new__ raise ve_exc ValueError: None is not a valid LockState 2023-05-08 12:40:47.329 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.418 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.office_led_strip: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_left: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_right: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.mushroom_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.419 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_bench: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.driveway_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.420 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_front: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.greenhouse_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_7: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_5: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.421 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_6: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_side: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.earth_cellar: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.422 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.423 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.423 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.rice_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.423 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_table: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.family_room_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.laundry_room_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.424 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_upstairs_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.425 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.426 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.426 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_entrance: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.426 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:47.426 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.584 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.600 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.600 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.office_led_strip: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.600 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_left: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.600 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_right: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.600 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.mushroom_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.601 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.601 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_bench: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.601 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.driveway_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_front: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.602 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.greenhouse_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_7: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_5: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_6: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_side: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.earth_cellar: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.603 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.rice_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.family_room_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.604 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_upstairs_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_entrance: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.605 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:48.606 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:50.115 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.vardagsrummet_speaker: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:50.137 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.vardagsrummet_speaker: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:50.138 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.hobbyroom_speaker: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:50.143 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.hobbyroom_speaker: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:50.430 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.vardagsrummet_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:50.493 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.vardagsrummet_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:51.367 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.hobbyroom_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:51.411 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.hobbyroom_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:51.710 WARNING (MainThread) [homeassistant.config_entries] Config entry 'shellyplus1-441793a5123c' for shelly integration not ready yet: DeviceConnectionError(DeviceConnectionError(TimeoutError())); Retrying in background 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_front: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_side: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.driveway_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.earth_cellar: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.009 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_6: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_7: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_5: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.greenhouse_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.010 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.rice_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_table: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.kitchen_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.family_room_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.upper_toilet: State changed to "off". Power:0.00 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_bench: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.011 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_entrance: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.mushroom_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_window_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_4: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.012 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_3: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_2: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_upstairs_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.office_led_strip: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_left: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_right: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_ceiling: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.013 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.laundry_room_window: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.014 DEBUG (MainThread) [custom_components.powercalc.sensors.power] switch.laundry_room_channel_1: State changed to "off". Power:0.00 2023-05-08 12:40:56.026 DEBUG (MainThread) [custom_components.powercalc.sensors.power] sensor.dummy: State changed to "on". Power:27.00 2023-05-08 12:40:56.027 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.hobbyroom_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:56.028 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.vardagsrummet_speaker: State changed to "off". Power:1.65 2023-05-08 12:40:56.028 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: Source entity has an invalid state, setting power sensor to unavailable 2023-05-08 12:40:56.068 DEBUG (MainThread) [custom_components.powercalc.sensors.power] sensor.dummy: State changed to "on". Power:27.00 2023-05-08 12:40:56.175 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: All standby energy 2023-05-08 12:40:56.309 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.shelly_shower or it is/they are currently not available 2023-05-08 12:40:56.347 WARNING (MainThread) [homeassistant.components.automation.kitchen_lights] Kitchen: lights: Already running 2023-05-08 12:40:56.370 WARNING (MainThread) [custom_components.hacs] You have 'AitorDB/home-assistant-sun-card' installed with HACS this repository has been removed from HACS, please consider removing it. Removal reason (Repository is archived) 2023-05-08 12:40:56.645 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.mushroom_lamp: State changed to "off". Power:0.40 2023-05-08 12:40:56.882 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.family_room_window_1: State changed to "off". Power:0.20 2023-05-08 12:40:56.887 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_bench: State changed to "off". Power:0.48 2023-05-08 12:40:56.938 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_left: State changed to "off". Power:0.17 2023-05-08 12:40:57.056 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_right: State changed to "off". Power:0.17 2023-05-08 12:40:57.075 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_ceiling: State changed to "off". Power:0.36 2023-05-08 12:40:57.153 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bedroom_window: State changed to "off". Power:0.27 2023-05-08 12:40:57.551 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_window_1: State changed to "off". Power:0.20 2023-05-08 12:40:57.552 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:40:57.552 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.rice_lamp: State changed to "off". Power:0.25 2023-05-08 12:40:57.576 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_upstairs_window: State changed to "off". Power:0.10 2023-05-08 12:40:57.581 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_1: State changed to "off". Power:0.17 2023-05-08 12:40:57.581 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.entre_2: State changed to "off". Power:0.17 2023-05-08 12:40:57.764 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: State changed to "off". Power:1.20 2023-05-08 12:40:57.777 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: State changed to "on". Power:2.00 2023-05-08 12:40:57.778 DEBUG (MainThread) [custom_components.powercalc.sensors.power] fan.livingroom_starkvind: State changed to "on". Power:2.00 2023-05-08 12:40:57.784 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.environment_and_air_quality_energy: Recalculate, current value: 4.3287 2023-05-08 12:40:57.785 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.livingroom_starkvind_energy: 0E-50 2023-05-08 12:40:57.785 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.environment_and_air_quality_energy: New value: 4.328700000000000000000000000 2023-05-08 12:40:57.838 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.driveway_1: State changed to "off". Power:0.17 2023-05-08 12:40:57.845 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_front: State changed to "off". Power:0.17 2023-05-08 12:40:57.846 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.garage_side: State changed to "off". Power:0.17 2023-05-08 12:40:57.846 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_1: State changed to "off". Power:0.17 2023-05-08 12:40:57.846 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_2: State changed to "off". Power:0.17 2023-05-08 12:40:57.847 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.parking_3: State changed to "off". Power:0.17 2023-05-08 12:40:57.847 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_1: State changed to "off". Power:0.27 2023-05-08 12:40:57.847 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_2: State changed to "off". Power:0.27 2023-05-08 12:40:57.847 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_3: State changed to "off". Power:0.27 2023-05-08 12:40:57.848 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_4: State changed to "off". Power:0.27 2023-05-08 12:40:57.848 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_5: State changed to "off". Power:0.27 2023-05-08 12:40:57.848 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_6: State changed to "off". Power:0.27 2023-05-08 12:40:57.848 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wall_7: State changed to "off". Power:0.27 2023-05-08 12:40:57.849 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.greenhouse_1: State changed to "off". Power:0.27 2023-05-08 12:40:57.867 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.earth_cellar: State changed to "off". Power:0.17 2023-05-08 12:40:57.867 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_2: State changed to "off". Power:0.20 2023-05-08 12:40:57.868 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_3: State changed to "off". Power:0.20 2023-05-08 12:40:57.868 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_1: State changed to "off". Power:0.20 2023-05-08 12:41:15.923 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:41:15.923 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:41:15.923 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:41:15.927 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.livingroom_front_3_energy,sensor.livingroom_front_1_energy,sensor.livingroom_back_4_energy,sensor.mushroom_lamp_energy,sensor.livingroom_back_3_energy,sensor.livingroom_back_1_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.livingroom_front_4_energy) 2023-05-08 12:41:15.928 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.indoor_lights_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.hallway_downstairs_1_energy,sensor.laundry_room_window_energy,sensor.livingroom_back_3_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.bedroom_ceiling_energy,sensor.bathroom_downstairs_mirror_energy,sensor.livingroom_front_3_energy,sensor.family_room_window_1_energy,sensor.mushroom_lamp_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_4_energy,sensor.bedroom_window_energy,sensor.office_led_strip_energy,sensor.kitchen_table_energy,sensor.conservatory_ceiling_energy,sensor.hallway_upstairs_window_energy,sensor.hallway_downstairs_bench_energy,sensor.hallway_downstairs_2_energy,sensor.rice_lamp_energy,sensor.hallway_downstairs_entrance_energy,sensor.bedroom_right_energy,sensor.livingroom_front_1_energy,sensor.livingroom_back_4_energy,sensor.kitchen_window_1_energy,sensor.livingroom_back_1_energy,sensor.bedroom_left_energy,sensor.kitchen_lamp_energy) 2023-05-08 12:41:17.918 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:41:29.816 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.office_led_strip: State changed to "off". Power:0.10 2023-05-08 12:41:29.906 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.conservatory_ceiling: State changed to "off". Power:0.17 2023-05-08 12:41:29.968 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: State changed to "off". Power:0.30 2023-05-08 12:41:29.969 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_4: State changed to "off". Power:0.30 2023-05-08 12:41:29.969 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_1: State changed to "off". Power:0.30 2023-05-08 12:41:29.969 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_3: State changed to "off". Power:0.30 2023-05-08 12:41:29.970 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_2: State changed to "off". Power:0.30 2023-05-08 12:41:29.970 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_3: State changed to "off". Power:0.30 2023-05-08 12:41:29.971 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: State changed to "off". Power:0.30 2023-05-08 12:41:29.971 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_2: State changed to "off". Power:0.30 2023-05-08 12:41:29.998 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_entrance: State changed to "off". Power:0.17 2023-05-08 12:41:29.998 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_1: State changed to "off". Power:0.20 2023-05-08 12:41:30.019 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.hallway_downstairs_2: State changed to "off". Power:0.20 2023-05-08 12:42:01.086 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:42:01.087 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:42:01.087 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:42:03.081 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:42:34.234 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:42:34.234 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:42:34.234 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:42:36.215 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:42:48.320 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:42:48.321 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:42:48.321 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:42:50.302 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:43:34.418 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_front_1: Looking up power usage for bri:1 mired:331 2023-05-08 12:43:34.418 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_front_1: Calculated power:0.64000000000000001332267629550187848508358001708984375 2023-05-08 12:43:34.418 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: State changed to "on". Power:0.64 2023-05-08 12:43:34.423 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.livingroom_front_3_energy,sensor.livingroom_back_4_energy,sensor.mushroom_lamp_energy,sensor.livingroom_back_3_energy,sensor.livingroom_back_1_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.livingroom_front_4_energy) 2023-05-08 12:43:34.424 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.indoor_lights_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.hallway_downstairs_1_energy,sensor.laundry_room_window_energy,sensor.livingroom_back_3_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.bedroom_ceiling_energy,sensor.bathroom_downstairs_mirror_energy,sensor.livingroom_front_3_energy,sensor.family_room_window_1_energy,sensor.mushroom_lamp_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_4_energy,sensor.bedroom_window_energy,sensor.office_led_strip_energy,sensor.kitchen_table_energy,sensor.conservatory_ceiling_energy,sensor.hallway_upstairs_window_energy,sensor.hallway_downstairs_bench_energy,sensor.hallway_downstairs_2_energy,sensor.rice_lamp_energy,sensor.hallway_downstairs_entrance_energy,sensor.bedroom_right_energy,sensor.livingroom_back_4_energy,sensor.kitchen_window_1_energy,sensor.livingroom_back_1_energy,sensor.bedroom_left_energy,sensor.kitchen_lamp_energy) 2023-05-08 12:43:35.249 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:43:35.249 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:43:35.249 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:43:35.921 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: State changed to "off". Power:0.30 2023-05-08 12:43:37.235 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:43:40.333 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_front_1: Looking up power usage for bri:1 mired:331 2023-05-08 12:43:40.333 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_front_1: Calculated power:0.64000000000000001332267629550187848508358001708984375 2023-05-08 12:43:40.333 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: State changed to "on". Power:0.64 2023-05-08 12:43:44.464 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_front_1: State changed to "off". Power:0.30 2023-05-08 12:43:56.228 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:43:56.228 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:43:56.228 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:43:58.229 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:44:20.486 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_4: Looking up power usage for bri:1 mired:328 2023-05-08 12:44:20.486 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_4: Calculated power:0.64000000000000001332267629550187848508358001708984375 2023-05-08 12:44:20.487 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: State changed to "on". Power:0.64 2023-05-08 12:44:20.490 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.livingroom_front_3_energy,sensor.mushroom_lamp_energy,sensor.livingroom_back_3_energy,sensor.livingroom_back_1_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.livingroom_front_4_energy) 2023-05-08 12:44:20.491 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.indoor_lights_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.hallway_downstairs_1_energy,sensor.laundry_room_window_energy,sensor.livingroom_back_3_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.bedroom_ceiling_energy,sensor.bathroom_downstairs_mirror_energy,sensor.livingroom_front_3_energy,sensor.family_room_window_1_energy,sensor.mushroom_lamp_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_4_energy,sensor.bedroom_window_energy,sensor.office_led_strip_energy,sensor.kitchen_table_energy,sensor.conservatory_ceiling_energy,sensor.hallway_upstairs_window_energy,sensor.hallway_downstairs_bench_energy,sensor.hallway_downstairs_2_energy,sensor.rice_lamp_energy,sensor.hallway_downstairs_entrance_energy,sensor.bedroom_right_energy,sensor.kitchen_window_1_energy,sensor.livingroom_back_1_energy,sensor.bedroom_left_energy,sensor.kitchen_lamp_energy) 2023-05-08 12:44:22.374 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: State changed to "off". Power:0.30 2023-05-08 12:44:29.930 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:44:29.930 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:44:29.930 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:44:31.917 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 2023-05-08 12:44:43.370 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Looking up power usage for bri:20 mired:250 2023-05-08 12:44:43.370 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.floor_lamp: Calculated power:1.004000000000000003552713678800500929355621337890625 2023-05-08 12:44:43.370 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "on". Power:1.00 2023-05-08 12:44:45.324 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.floor_lamp: State changed to "off". Power:0.26 ```
bramstroker commented 1 year ago

@gribber At least all the errors disappeared now, which is promising.

The clue is here: 2023-05-08 12:44:20.490 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.livingroom_front_3_energy,sensor.mushroom_lamp_energy,sensor.livingroom_back_3_energy,sensor.livingroom_back_1_energy,sensor.livingroom_window_1_energy,sensor.livingroom_front_2_energy,sensor.livingroom_back_2_energy,sensor.livingroom_front_4_energy)

It's a precaution I added to avoid energy sensor getting negative. It will check if there is a previous reading of this sensor (before it went unavailable). When it doesn't it will raise this warning. Will need to dig in this some more to see if this is really necessary or I could just ignore this. Has been a few weeks ago I added this code.

Could you try making them available one time and see if the energy sensor starts working after that?

bramstroker commented 1 year ago

I tried the latest beta.9. I still doesnt see any energy value for the light group defined in config.yaml by "create_domain_group" , only unavailable. The power entity (W) works but not the energy (kWh) .

Could you have a look into the logs if you have similar warning as gribber? One or more members of the group are unavailable

gribber commented 1 year ago

livingroom_front_3_energy

Yep, it came back again when they all are available for that area, statistics still messed up but I guess I have to update the database to make them correct again

The question is how to handle this further on, lamps will continue to move to other rooms, get connected/disconnected by season and replaced when broken

For groups, in my opinion, statistics should remain what ever it was before entities got disconnected/moved and not reduced by the amount of energy that entity already consumed

On the other hand, I don't want the new group to grow by the same amount energy already used by a entity if it's moved

The entity itself, unless deleted/recreated should keep whatever stats it has regardless of area

Feels a bit tricky to solve, more work than just sum up entities in a area

bramstroker commented 1 year ago

Previously it would just sum up every entity in the group.

In the new implementation v1.6.0 it will calculate a delta for each entity. It saves previous entity state of individual entities in config/.storage/powercalc_group. When one of the group entities changes state it will lookup the last state there and calculate the delta, so the group sensor only increases. Regardless of unavailable entities or removal/addition of entities in the group.

It should handle the cases you mentioned.

But it's hard to get right and to forsee all the edge cases.

gribber commented 1 year ago

Previously it would just sum up every entity in the group.

In the new implementation v1.6.0 it will calculate a delta for each entity. It saves previous entity state of individual entities in config/.storage/powercalc_group. When one of the group entities changes state it will lookup the last state there and calculate the delta, so the group sensor only increases. Regardless of unavailable entities or removal/addition of entities in the group.

It should handle the cases you mentioned.

But it's hard to get right and to forsee all the edge cases.

Oh I see, if I understand that correct, it should work as I want :-)

So what's left is groups with unavailable lights still has state unavailable (and groups which included groups with that problem)

got lots of these now:


2023-05-08 14:11:53.268 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.livingroom_back_1_energy: -0.001399999999999999985775267497
2023-05-08 14:11:53.268 WARNING (MainThread) [custom_components.powercalc.sensors.group] skipping state for sensor.livingroom_back_1_energy, probably erroneous value or sensor was reset
2023-05-08 14:11:53.268 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: New value: 1.810500000000000000000000000
2023-05-08 14:11:53.269 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.indoor_lights_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.kitchen_lamp_energy,sensor.kitchen_table_energy,sensor.kitchen_window_1_energy,sensor.laundry_room_window_energy)
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_2: Looking up power usage for bri:1 mired:328
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_2: Calculated power:0.64000000000000001332267629550187848508358001708984375
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_2: State changed to "on". Power:0.64
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_3: Looking up power usage for bri:1 mired:328
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_3: Calculated power:0.64000000000000001332267629550187848508358001708984375
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_3: State changed to "on". Power:0.64
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_4: Looking up power usage for bri:1 mired:328
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.livingroom_back_4: Calculated power:0.64000000000000001332267629550187848508358001708984375
2023-05-08 14:11:53.270 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.livingroom_back_4: State changed to "on". Power:0.64
2023-05-08 14:11:53.275 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.living_room_energy: Recalculate, current value: 1.8105
2023-05-08 14:11:53.275 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.livingroom_back_2_energy: -0.001399999999999999985775267497
2023-05-08 14:11:53.275 WARNING (MainThread) [custom_components.powercalc.sensors.group] skipping state for sensor.livingroom_back_2_energy, probably erroneous value or sensor was reset
2023-05-08 14:11:53.276 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.livingroom_back_4_energy: -0.001399999999999999985775267497
2023-05-08 14:11:53.276 WARNING (MainThread) [custom_components.powercalc.sensors.group] skipping state for sensor.livingroom_back_4_energy, probably erroneous value or sensor was reset
2023-05-08 14:11:53.277 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.livingroom_back_3_energy: -0.001399999999999999985775267497
2023-05-08 14:11:53.277 WARNING (MainThread) [custom_components.powercalc.sensors.group] skipping state for sensor.livingroom_back_3_energy, probably erroneous value or sensor was reset
2023-05-08 14:11:53.277 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.floor_lamp_energy: 0E-61

every entity seems to have messed up (negative) values now, the statistics can be fixed by the tool in developer tools, but the state I guess have to be fixed by a database update either way, it's above 100 entities 😓

bramstroker commented 1 year ago

Did you have messed up values before upgrade to v1.6.0-beta or after upgrade?

Regarding: delta for entity sensor.livingroom_back_2_energy: -0.001399999999999999985775267497

It's comparing the current state of sensor.livingroom_back_2_energy to the last state saved in config/.storage/powercalc_group. When this is negative I just throw a warning so the group value won't go negative. Not sure how the current value of this sensor can be lower than the previous. Might need some more debug logging to find tha`t out.

gribber commented 1 year ago

Before, but not at the 2023.5.0 update, this morning for some reason, at 8.50, almost every entity got reset except this: https://github.com/gribber/ha/blob/6c70c9f2a654a082f69f3ba8c8297dcd3913cdef/sensors/powercalc.yaml#L160-L179 which is all fine and got correct values and this: https://github.com/gribber/ha/blob/6c70c9f2a654a082f69f3ba8c8297dcd3913cdef/sensors/powercalc.yaml#L54-L58 which got was fine, then got reset at 14:05 (a little more than 1h after update)

I'm confused

gribber commented 1 year ago

Before, but not at the 2023.5.0 update, this morning for some reason, at 8.50, almost every entity got reset except this: https://github.com/gribber/ha/blob/6c70c9f2a654a082f69f3ba8c8297dcd3913cdef/sensors/powercalc.yaml#L160-L179 which is all fine and got correct values and this: https://github.com/gribber/ha/blob/6c70c9f2a654a082f69f3ba8c8297dcd3913cdef/sensors/powercalc.yaml#L54-L58 which got was fine, then got reset at 14:05 (a little more than 1h after update)

I'm confused

It does say this:

2023-05-08 14:09:33.664 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bathroom_downstairs_mirror_energy to device a2282cdb5f629eaf14e8bcd59a1fc166
2023-05-08 14:09:33.664 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.bathroom_downstairs_mirror_energy could not restore last state unavailable: [<class 'decimal.ConversionSyntax'>]
2023-05-08 14:09:33.667 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: Restoring state: 16.0513

so it seems to fail to restore in some way

the group in which this light exist (this is the only one is this group)

2023-05-08 14:19:33.252 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: Recalculate, current value: 16.0513
2023-05-08 14:19:33.252 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_downstairs_mirror_energy: -16.05120000000000100043458760
2023-05-08 14:19:33.252 WARNING (MainThread) [custom_components.powercalc.sensors.group] skipping state for sensor.bathroom_downstairs_mirror_energy, probably erroneous value or sensor was reset
2023-05-08 14:19:33.252 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: New value: 16.0513

the state value of this group is correct and has not been reset

attaching the logs

home-assistant_2023-05-08T13-35-49.946Z.log

bramstroker commented 1 year ago

Hard to say why your sensors gets reset all of a sudden in the past, I have no clue, sorry.

2023-05-08 14:09:33.664 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.bathroom_downstairs_mirror_energy could not restore last state unavailable: [<class 'decimal.ConversionSyntax'>]

This is actually a problem of the home assistant riemann integral component. Which bugs on unavailable state. This should be reported at HA issue tracker. But this is not a problem per se. On startup it tries to set the energy sensor to the last known state (which was unavailable), and it stays unavailable so that's not really an issue. Also it's only a warning.

What happens if you make the sensor sensor. bathroom_downstairs_mirror_energy available again. Does it start adding values to the group again? And does it turn this line positive again?

2023-05-08 14:19:33.252 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_downstairs_mirror_energy: -16.05120000000000100043458760

gribber commented 1 year ago

Hard to say why your sensors gets reset all of a sudden in the past, I have no clue, sorry.

2023-05-08 14:09:33.664 WARNING (MainThread) [homeassistant.components.integration.sensor] sensor.bathroom_downstairs_mirror_energy could not restore last state unavailable: [<class 'decimal.ConversionSyntax'>]

This is actually a problem of the home assistant riemann integral component. Which bugs on unavailable state. This should be reported at HA issue tracker. But this is not a problem per se. On startup it tries to set the energy sensor to the last known state (which was unavailable), and it stays unavailable so that's not really an issue. Also it's only a warning.

What happens if you make the sensor sensor. bathroom_downstairs_mirror_energy available again. Does it start adding values to the group again? And does it turn this line positive again?

2023-05-08 14:19:33.252 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_downstairs_mirror_energy: -16.05120000000000100043458760

This is what happens if I turn that light on

2023-05-08 16:15:21.436 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: State changed to "on". Power:12.30
2023-05-08 16:15:21.439 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: Recalculate, current value: 16.0570
2023-05-08 16:15:21.439 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_downstairs_mirror_energy: 0.0001000000000000002622901895677
2023-05-08 16:15:21.439 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.bathroom_energy: New value: 16.05710000000000000026229019
2023-05-08 16:15:21.439 WARNING (MainThread) [custom_components.powercalc.sensors.group] sensor.indoor_lights_energy: One or more members of the group are unavailable, setting group to unavailable (sensor.kitchen_lamp_energy,sensor.kitchen_table_energy,sensor.kitchen_window_1_energy,sensor.laundry_room_window_energy)
2023-05-08 16:15:31.515 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.bathroom_downstairs_mirror: State changed to "off". Power:1.20

Nothing else in the logs regarding this

Both sensors (the light and the group) continues to count image image

bramstroker commented 1 year ago

That increase of energy sensor looks good.

I will have a look into One or more members of the group are unavailable. Have an idea how to improve upon that. It should not make the group unavailable when only a few sensors are unavailable. But just skip these from adding delta values to the energy sensor. Will probably have a look tonight and issue a new beta.

bramstroker commented 1 year ago

Just released a new beta which should hopefully also resolve the unavailable issue for the energy group for you. v1.6.0-beta.10

daniperaleda commented 1 year ago

Just released a new beta which should hopefully also resolve the unavailable issue for the energy group for you. v1.6.0-beta.10

Solved the problem here after updating to v1.6.0-beta.10

It has appears other errors, but I need to investigate the origin if it is related or not.

2023-05-08 17:57:08.721 ERROR (MainThread) [custom_components.powercalc.helpers] Could not convert power value float(0) to decimal

bramstroker commented 1 year ago

@daniperaleda I did have a look and this error is raised when the fixed power strategy returns 0 as the power. However that should just be a legit case and not cause an error. I will have a look into this.

I don't think it will break anything or cause malfunction though as things are also handled later on.

bramstroker commented 1 year ago

@daniperaleda I cannot reproduce this. Could you please create a new issue for this and add your configuration of fixed power sensors. Do you use some template which is returning "float(0)" literaly? We'll discuss further in other issue to not hijack this one.

daniperaleda commented 1 year ago

@daniperaleda I cannot reproduce this. Could you please create a new issue for this and add your configuration of fixed power sensors. Do you use some template which is returning "float(0)" literaly? We'll discuss further in other issue to not hijack this one.

FIXED...I have reviewed the configuration...it was a TEMPLATE POWER CALCULATE sensor...and it has a "{" missing...so it got a literal not a number....so OK for everything.

bramstroker commented 1 year ago

FIXED...I have reviewed the configuration...it was a TEMPLATE POWER CALCULATE sensor...and it has a "{" missing...so it got a literal not a number....so OK for everything.

Cool glad you got that resolved. will add some validations on correct template #1666.

gribber commented 1 year ago

I can confirm it work here as well

gribber commented 1 year ago

Is there a way to manually update the values of each energy sensor, at least the groups, which doesn't mess things up?

bramstroker commented 1 year ago

Is there a way to manually update the values of each energy sensor, at least the groups, which doesn't mess things up?

I'm afraid not. Will need to do some DB queries to correct things. Because statistics are calculated by looking at previous statistic. When it is wrong at a certain point it won't be corrected. Do you use MariaDB or SQLite? You can have a look into statistics, statistics_short_term and states tables for one problematic entity and see where the problem is, where the data got "corrupted". Maybe I can help suggest a way to correct that on your HA installation.

gribber commented 1 year ago

Is there a way to manually update the values of each energy sensor, at least the groups, which doesn't mess things up?

I'm afraid not. Will need to do some DB queries to correct things. Because statistics are calculated by looking at previous statistic. When it is wrong at a certain point it won't be corrected. Do you use MariaDB or SQLite? You can have a look into statistics, statistics_short_term and states tables for one problematic entity and see where the problem is, where the data got "corrupted". Maybe I can help suggest a way to correct that on your HA installation.

Using mariadb, the statistics can be fairly easy corrected in the gui (dev tools - > statistics), at least I think that's enough, so it's the state that needs update The db layout seems to have changed since last time I had to some something similar

bramstroker commented 1 year ago

Closing this issue as there were also fixes in HA core latest versions regarding energy sensors misbehaving (going negative and things like that).