bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
945 stars 251 forks source link

Nested groups includes all devices #1984

Closed gribber closed 8 months ago

gribber commented 8 months ago

System Health details

System Information

version core-2024.1.2
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.0-12-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 | 4996 Installed Version | 1.33.0 Stage | running Available Repositories | 1367 Downloaded Repositories | 54
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 12 (bookworm) -- | -- update_channel | stable supervisor_version | supervisor-2023.12.0 agent_version | 1.2.1 docker_version | 24.0.6 disk_total | 78.2 GB disk_used | 28.8 GB healthy | true supported | true supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.14.2), MariaDB (2.6.1), InfluxDB (4.8.0), Mosquitto broker (6.4.0), phpMyAdmin (0.9.0), ESPHome (2023.12.5), Frigate NVR Proxy (1.3), Node-RED (16.0.2), Zigbee2MQTT (1.35.0-1), Network UPS Tools (0.12.2)
Dashboards dashboards | 2 -- | -- resources | 29 views | 20 mode | storage
Recorder oldest_recorder_run | January 3, 2024 at 19:51 -- | -- current_recorder_run | January 6, 2024 at 21:27 estimated_db_size | 3343.02 MiB database_engine | mysql database_version | 10.6.12
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

As of dec 26 (I guess it's related to the update middle of december), all my nested groups contain all devices/lights when it only should contain those expanded from area specified example: image

Reproduction steps

  1. create nested groups, include by area
  2. look at any group, includes devices that should not be there

Debug logs

2024-01-07 09:04:40.580 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ocpp 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
2024-01-07 09:04:40.581 WARNING (SyncWorker_1) [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
2024-01-07 09:04:40.594 WARNING (SyncWorker_1) [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
2024-01-07 09:04:49.577 DEBUG (MainThread) [custom_components.powercalc.discovery] Start auto discovering entities
2024-01-07 09:04:49.577 DEBUG (MainThread) [custom_components.powercalc.discovery] weather.home: Auto discovered model (manufacturer=Met.no, model=Forecast)
2024-01-07 09:04:49.578 DEBUG (MainThread) [custom_components.powercalc.discovery] weather.home: Model not found in library, skipping discovery
... lots and lots of autodiscovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] sensor.switch_attic_state: Auto discovered model (manufacturer=Ubiquiti Networks, model=USF5P)
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] sensor.switch_attic_state: Model not found in library, skipping discovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] sensor.switch_boiler_room_state: Auto discovered model (manufacturer=Ubiquiti Networks, model=USF5P)
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] sensor.switch_boiler_room_state: Model not found in library, skipping discovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.trackmix_infra_red_lights_in_night_mode: Auto discovered model (manufacturer=Reolink, model=Reolink TrackMix PoE)
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.trackmix_infra_red_lights_in_night_mode: Model not found in library, skipping discovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display_1_2: Auto discovered model (manufacturer=Google Inc., model=Google Cast Group)
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display_1_2: Model not found in library, skipping discovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display_1_2: Auto discovered model (manufacturer=Google Inc., model=Google Cast Group)
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display_1_2: Model not found in library, skipping discovery
2024-01-07 09:04:49.955 DEBUG (MainThread) [custom_components.powercalc.discovery] Done auto discovering entities
2024-01-07 09:04:53.979 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:53.979 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.979 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.979 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))
2024-01-07 09:04:53.979 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Model not found in library, skipping discovery
2024-01-07 09:04:53.979 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.980 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor parking driveway power (entity_id=sensor.outdoor_parking_driveway_power)
2024-01-07 09:04:53.980 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor parking driveway energy (entity_id=sensor.outdoor_parking_driveway_energy)
2024-01-07 09:04:53.995 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:53.995 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.995 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.995 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))
2024-01-07 09:04:53.995 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Model not found in library, skipping discovery
2024-01-07 09:04:53.995 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:53.996 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor ambience power (entity_id=sensor.outdoor_ambience_power)
2024-01-07 09:04:53.996 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor ambience energy (entity_id=sensor.outdoor_ambience_energy)
2024-01-07 09:04:53.996 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: outdoor lights power (entity_id=sensor.outdoor_lights_power)
2024-01-07 09:04:53.997 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: outdoor lights energy (entity_id=sensor.outdoor_lights_energy)
2024-01-07 09:04:54.006 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.006 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.006 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.006 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))
2024-01-07 09:04:54.007 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Model not found in library, skipping discovery
2024-01-07 09:04:54.007 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.007 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: conservatory power (entity_id=sensor.conservatory_power)
2024-01-07 09:04:54.007 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: conservatory energy (entity_id=sensor.conservatory_energy)
2024-01-07 09:04:54.015 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.015 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.015 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.015 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))
2024-01-07 09:04:54.015 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Model not found in library, skipping discovery
2024-01-07 09:04:54.015 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.016 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: kitchen power (entity_id=sensor.kitchen_power)
2024-01-07 09:04:54.016 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: kitchen energy (entity_id=sensor.kitchen_energy)
2024-01-07 09:04:54.023 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.023 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.023 DEBUG (MainThread) [custom_components.powercalc.discovery] light.bathroom_downstairs_mirror: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.023 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))
2024-01-07 09:04:54.023 DEBUG (MainThread) [custom_components.powercalc.discovery] light.kitchen_sink: Model not found in library, skipping discovery
2024-01-07 09:04:54.023 DEBUG (MainThread) [custom_components.powercalc.discovery] light.office_led_strip: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.024 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: family room power (entity_id=sensor.family_room_power)
2024-01-07 09:04:54.024 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: family room energy (entity_id=sensor.family_room_energy)
2024-01-07 09:04:54.024 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=fixed manufacturer= model= unique_id=0x842e14fffe5666f0_light_zigbee2mqtt)
2024-01-07 09:04:54.024 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: bathroom_downstairs_mirror energy
2024-01-07 09:04:54.031 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.031 DEBUG (MainThread) [custom_components.powercalc.discovery] light.upper_toilet: Entity is manually configured, skipping auto configuration
2024-01-07 09:04:54.032 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: bathroom power (entity_id=sensor.bathroom_power)
2024-01-07 09:04:54.032 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: bathroom energy (entity_id=sensor.bathroom_energy)
2024-01-07 09:04:54.032 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.upper_toilet entity_category=None, sensor_name=upper_toilet power strategy=fixed manufacturer= model= unique_id=C45BBE78380D-light_0)
2024-01-07 09:04:54.032 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: upper_toilet energy
2024-01-07 09:04:54.039 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.040 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: toilet_upstairs power (entity_id=sensor.toilet_upstairs_power)
2024-01-07 09:04:54.040 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: toilet_upstairs energy (entity_id=sensor.toilet_upstairs_energy)
2024-01-07 09:04:54.048 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.049 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: hallway downstairs power (entity_id=sensor.hallway_downstairs_power)
2024-01-07 09:04:54.049 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: hallway downstairs energy (entity_id=sensor.hallway_downstairs_energy)
2024-01-07 09:04:54.056 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.057 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: living room power (entity_id=sensor.living_room_power)
2024-01-07 09:04:54.057 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: living room energy (entity_id=sensor.living_room_energy)
2024-01-07 09:04:54.069 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.070 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: hallway upstairs power (entity_id=sensor.hallway_upstairs_power)
2024-01-07 09:04:54.070 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: hallway upstairs energy (entity_id=sensor.hallway_upstairs_energy)
2024-01-07 09:04:54.070 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=fixed manufacturer= model= unique_id=0x5c0272fffe1c8aae_light_zigbee2mqtt)
2024-01-07 09:04:54.070 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: Arbetsbänk energy
2024-01-07 09:04:54.086 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.087 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: office power (entity_id=sensor.office_power)
2024-01-07 09:04:54.087 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: office energy (entity_id=sensor.office_energy)
2024-01-07 09:04:54.094 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.095 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: bedroom power (entity_id=sensor.bedroom_power)
2024-01-07 09:04:54.095 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: bedroom energy (entity_id=sensor.bedroom_energy)
2024-01-07 09:04:54.095 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=fixed manufacturer= model= unique_id=C45BBE798D1F-relay_0)
2024-01-07 09:04:54.095 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: laundry_room channel 1 energy
2024-01-07 09:04:54.102 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.103 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: laundry room power (entity_id=sensor.laundry_room_power)
2024-01-07 09:04:54.103 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: laundry room energy (entity_id=sensor.laundry_room_energy)
2024-01-07 09:04:54.104 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: indoor lights power (entity_id=sensor.indoor_lights_power)
2024-01-07 09:04:54.105 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: indoor lights energy (entity_id=sensor.indoor_lights_energy)
2024-01-07 09:04:54.115 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.115 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: garage power (entity_id=sensor.garage_power)
2024-01-07 09:04:54.116 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: garage energy (entity_id=sensor.garage_energy)
2024-01-07 09:04:54.126 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: techroom power (entity_id=sensor.techroom_power)
2024-01-07 09:04:54.127 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: techroom energy (entity_id=sensor.techroom_energy)
2024-01-07 09:04:54.136 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.137 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: boiler_room power (entity_id=sensor.boiler_room_power)
2024-01-07 09:04:54.137 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: boiler_room energy (entity_id=sensor.boiler_room_energy)
2024-01-07 09:04:54.144 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['light.c38bc31c_b1aaea60', 'light.14644edf_f2facec2', 'light.3504a928_eebeb113', 'light.7ea3105e_8ffbe807', 'light.8fb3ab66_b9afff3f', 'light.upper_toilet', 'light.bathroom_downstairs_mirror', 'light.kitchen_sink', 'light.office_led_strip', 'light.bedroom_left', 'light.bedroom_right', 'light.mushroom_lamp', 'light.bedroom_ceiling', 'light.hallway_downstairs_bench', 'light.entre_1', 'light.entre_2', 'light.entre', 'light.parking_1', 'light.garage_front', 'light.parking_2', 'light.parking_3', 'light.wall_6', 'light.wall_7', 'light.wall_2', 'light.wall_5', 'light.wall_1', 'light.garage_side', 'light.driveway_1', 'light.wall_3', 'light.greenhouse_1', 'light.wall_4', 'light.dekoration_ute', 'light.parkering_och_uppfart', 'light.utomhuslampor', 'light.earth_cellar', 'light.garage_alert', 'light.conservatory_ceiling', 'light.conservatory_1', 'light.conservatory_2', 'light.conservatory_3', 'light.takfot_uterum', 'light.rice_lamp', 'light.livingroom_window_1', 'light.kitchen_window_1', 'light.family_room_window_1', 'light.laundry_room_window', 'light.livingroom_back_4', 'light.livingroom_front_4', 'light.livingroom_back_1', 'light.livingroom_back_3', 'light.livingroom_back_2', 'light.livingroom_front_3', 'light.livingroom_front_1', 'light.livingroom_front_2', 'light.vardagsrum_bakre', 'light.vardagsrum_framre', 'light.floor_lamp', 'light.hallway_upstairs_window', 'light.bedroom_window', 'light.kitchen_lamp', 'light.cleverio_galaxy', 'light.kitchen_bench', 'light.qnect_smart_bulb_sh_ls4m_qne', 'light.laundry_room_bench', 'light.hallway_downstairs_entrance', 'light.hallway_downstairs_1', 'light.hallway_downstairs_2', 'light.hallen', 'light.kitchen_island_1', 'light.kitchen_island_2', 'light.kitchen_island', 'light.kitchen_table_filament', 'light.kitchen_onboard_led', 'light.poop_plug', 'light.kitchen_table', 'light.trackmix_floodlight', 'light.hatree', 'light.terrace']
2024-01-07 09:04:54.145 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: washhouse power (entity_id=sensor.washhouse_power)
2024-01-07 09:04:54.145 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: washhouse energy (entity_id=sensor.washhouse_energy)
2024-01-07 09:04:54.146 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: garage lights power (entity_id=sensor.garage_lights_power)
2024-01-07 09:04:54.146 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: garage lights energy (entity_id=sensor.garage_lights_energy)
2024-01-07 09:04:54.148 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Load previous energy sensor states from store
2024-01-07 09:04:54.148 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_parking_driveway_energy: Restoring state: 117.5961
2024-01-07 09:04:54.148 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_ambience_energy: Restoring state: 119.7405
2024-01-07 09:04:54.149 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.outdoor_lights_energy: Restoring state: 220.6094
2024-01-07 09:04:54.150 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=sensor.dummy entity_category=None, sensor_name=techups power strategy=fixed manufacturer= model= unique_id=3788b38d-5330-4c7e-a0ea-8565dda2c6c9)
2024-01-07 09:04:54.150 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: techups energy
2024-01-07 09:04:54.150 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.conservatory_energy: Restoring state: 20.3492

### Diagnostics dump or YAML config

enable_autodiscovery: true
sensors:
  - create_group: "outdoor lights"
    unique_id: 28782826-4b21-44d0-8105-60e6b9338bd2
    entities:
      - create_group: "outdoor parking driveway"
        unique_id: 9366ba2a-8a65-4465-86cf-8651d0765ac2
        include:
          area: parkering_och_uppfart
          filter:
            domain: light
      - create_group: "outdoor ambience"
        unique_id: 4dbfacbd-7fc4-40a6-a4e6-26e385db0f12
        include:
          area: dekoration_ute
          filter:
            domain: light

  - create_group: "indoor lights"
    unique_id: 0259ae80-3fd3-40fe-9cf9-1857f2e28fc0
    entities:
      - create_group: "conservatory"
        unique_id: 5d77adcf-200f-4111-b1a7-eee8ea1e2a0e
        include:
          area: uterum
          filter:
            domain: light
      - create_group: "kitchen"
        unique_id: 24069df6-d3f6-443a-9cc2-ea50b2f1d064
        # include:
        #   template: >
        #     {{
        #       expand(area_entities('kitchen'))
        #       | selectattr( 'domain' , 'eq' , 'light' )
        #       | map(attribute='entity_id')
        #       | list
        #     }}
        include:
          area: kitchen
          filter:
            domain: light
      - create_group: "family room"
        unique_id: 49d8f20c-79f0-4a4a-a83f-618ef66c7a83
        include:
          area: allrum
          filter:
            domain: light
      - create_group: "bathroom"
        unique_id: 8555a54f-b7e2-47b0-b85d-d89ce3d8287f
        include:
          area: badrum_nere
          filter:
            domain: light
        entities:
          - entity_id: light.bathroom_downstairs_mirror
            standby_power: 1.2
            fixed:
              power: 12.3
      - create_group: "toilet_upstairs"
        unique_id: 0267cf53-3359-4686-bfc1-8ffb1f5fa60b
        include:
          area: toalett_uppe
          filter:
            domain: light
        entities:
          - entity_id: light.upper_toilet
            fixed:
              power: "{{ states('sensor.upper_toilet_power') }}"
      - create_group: "hallway downstairs"
        unique_id: 12012df5-0c82-44c0-9b7b-3b7a4047f315
        include:
          area: hallen
          filter:
            domain: light
      - create_group: "living room"
        unique_id: 0d8e5469-4703-443e-9110-78f7c27f8319
        include:
          area: living_room
          filter:
            domain: light
      - create_group: "hallway upstairs"
        unique_id: f4e03db2-285a-4c76-98ad-f4b04b7c4e02
        include:
          area: hall_uppe
          filter:
            domain: light
      - create_group: "office"
        unique_id: ffbefefc-deec-4da8-a06e-841890dc8d43
        include:
          area: hobbyrummet
          filter:
            domain: light
        entities:
          - entity_id: light.office_led_strip
            standby_power: 0.1
            fixed:
              power: 18.4
      - create_group: "bedroom"
        unique_id: 88566455-3dcf-4aa3-968c-e9545e92b64e
        include:
          area: bedroom
          filter:
            domain: light
      - create_group: "laundry room"
        unique_id: 6876c60a-971b-4d89-a3f8-0a8c7110c0ea
        include:
          area: tvattstuga
          filter:
            domain: light
        entities:
          - entity_id: switch.laundry_room_channel_1
            fixed:
              power: "{{ states('sensor.laundry_room_channel_1_power') }}"

  - create_group: "garage lights"
    unique_id: 765c1684-143e-43da-80b6-8f0ca239db38
    entities:
      - create_group: "garage"
        unique_id: 91a4db55-77bf-49d1-bc51-da2b42c1abbe
        include:
          area: garage
          filter:
            domain: light
      - create_group: "techroom"
        unique_id: e226b01a-fd61-4828-bea8-f9a4cb1da3d7
        include:
          area: teknikrum
          filter:
            domain: light
      - create_group: "boiler_room"
        unique_id: 8d0333ee-7245-480d-97d8-5b5450c80049
        include:
          area: pannrum
          filter:
            domain: light
      - create_group: "washhouse"
        unique_id: b5bdb743-c3ab-400e-afc3-d5822341050e
        include:
          area: grovtvattstuga
          filter:
            domain: light

  - entity_id: sensor.dummy
    unique_id: 3788b38d-5330-4c7e-a0ea-8565dda2c6c9
    name: "techups"
    fixed:
      power: "{{states('sensor.techups_power_tmp')}}"

  - create_group: "smart speakers"
    unique_id: f883310e-e09c-4d1c-8ef7-b2e83b530324
    entities:
      - entity_id: media_player.hobbyroom_speaker
      - entity_id: media_player.kitchen_display
      - entity_id: media_player.vardagsrummet_speaker
      - entity_id: media_player.sovrummet_speaker

  - create_group: "environment and air quality"
    unique_id: f5f210d6-1608-467e-b272-a7b0a83ae6b2
    entities:
      - entity_id: fan.livingroom_starkvind
        fixed:
          power: >
            {% set map = {
              '0' : 0,
              '1' : 2.0,
              '2' : 2.8,
              '3' : 4.8,
              '4' : 7.6,
              '5' : 11.9,
              '6' : 17.8,
              '7' : 26.3,
              '8' : 30.6,
              '9' : 35.8
            } %}
            {{ map[states('sensor.livingroom_starkvind_fan_speed')] if is_number(states('sensor.livingroom_starkvind_fan_speed')) else 0 }}
bramstroker commented 8 months ago

@gribber Thanks for reporting. I'm sorry things are broken for you. I did have a look and was able to reproduce with a unit test. Working on a fix right now.

bramstroker commented 8 months ago

Will be fixed with #1986. New version will be released today.

gribber commented 8 months ago

Awesome, thanks for the quick response and fix

bramstroker commented 8 months ago

yw. version 1.9.15 just released with the fix. Please let me know if it resolves your issue or you still experiencing problems.

gribber commented 8 months ago

I can confirm it works great again now

bramstroker commented 8 months ago

That's good to hear. Have a nice day!