bramstroker / homeassistant-powercalc

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

Adding area in Group will also add power meters not from Powercalc #2035

Closed KlaraJa closed 7 months ago

KlaraJa commented 9 months ago

System Health details

System Information

version core-2024.2.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4849 Installed Version | 1.34.0 Stage | running Available Repositories | 1462 Downloaded Repositories | 27
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 | Home Assistant OS 11.5 -- | -- update_channel | stable supervisor_version | supervisor-2024.01.1 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 219.4 GB disk_used | 9.7 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Let's Encrypt (5.0.15), AirCast (4.2.0), WireGuard (0.10.2), Matter Server (5.1.1), Mosquitto broker (6.4.0), Studio Code Server (5.15.0), Advanced SSH & Web Terminal (17.1.0), Home Assistant Google Drive Backup (0.112.1), Samba NAS (12.2.0-nas1), InfluxDB (5.0.0), Grafana (9.1.3), iSponsorBlockTV add-on (2.0.10), Whisper (1.0.2)
Dashboards dashboards | 6 -- | -- resources | 14 views | 12 mode | storage
Recorder oldest_recorder_run | February 1, 2024 at 20:20 -- | -- current_recorder_run | February 9, 2024 at 11:11 estimated_db_size | 478.14 MiB database_engine | sqlite database_version | 3.44.2
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

The description for Area says, that all powercalc sensors in this area will be added. But it also adds the power from real power meters. In my case it was the real power meter from my Aqara EU Plug, which I did not add to Powercalc.

Reproduction steps

  1. Add a real power meter an area
  2. Create a group in Powercalc
  3. Add this area to the group
  4. Submit

Debug logs

2024-02-09 11:52:08.571 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['sensor.fernseher_audio_input_format', 'media_player.fernseher', 'binary_sensor.fernseher_microphone', 'number.fernseher_audio_delay', 'number.fernseher_bass', 'number.fernseher_balance', 'number.fernseher_treble', 'number.fernseher_surround_level', 'number.fernseher_music_surround_level', 'switch.fernseher_touch_controls', 'switch.fernseher_crossfade', 'switch.fernseher_loudness', 'switch.fernseher_surround_music_full_volume', 'switch.fernseher_night_sound', 'switch.fernseher_speech_enhancement', 'switch.fernseher_surround_enabled', 'switch.fernseher_status_light', 'device_tracker.sonos_beam', 'switch.sonos_beam_internet_access', 'sensor.hp_envy_5000_series_uptime', 'sensor.hp_envy_5000_series_black_ink', 'sensor.hp_envy_5000_series_tri_color_ink', 'sensor.hp_envy_5000_series', 'media_player.mitv', 'schedule.thermostat_schedule', 'sensor.living_room_absolute_humidity', 'sensor.living_room_dew_point', 'sensor.living_room_frost_point', 'sensor.living_room_frost_risk', 'sensor.living_room_heat_index', 'sensor.living_room_humidex', 'sensor.living_room_humidex_perception', 'sensor.living_room_moist_air_enthalpy', 'sensor.living_room_relative_strain_perception', 'sensor.living_room_summer_scharlau_perception', 'sensor.living_room_winter_scharlau_perception', 'sensor.living_room_summer_simmer_index', 'sensor.living_room_summer_simmer_perception', 'sensor.living_room_dew_point_perception', 'sensor.living_room_thoms_discomfort_perception', 'binary_sensor.living_room_windows', 'sensor.ewelink_ds01_rssi_2', 'sensor.ewelink_ds01_lqi_2', 'sensor.balcony_door_battery', 'button.balcony_door_identify', 'binary_sensor.balcony_door', 'sensor.ewelink_ds01_rssi', 'sensor.ewelink_ds01_lqi', 'sensor.living_room_small_window_battery', 'button.living_room_small_window_identify', 'binary_sensor.living_room_small_window', 'sensor.ewelink_th01_rssi', 'sensor.ewelink_th01_lqi', 'sensor.ikea_of_sweden_tradfri_driver_10w_rssi', 'sensor.ikea_of_sweden_tradfri_driver_10w_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi', 'sensor.signify_netherlands_b_v_ltg002_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi_2', 'sensor.signify_netherlands_b_v_ltg002_lqi_2', 'button.living_room_ceiling_lamp_1_identify', 'select.living_room_ceiling_lamp_1_start_up_behavior', 'number.living_room_ceiling_lamp_1_start_up_color_temperature', 'number.living_room_ceiling_lamp_1_start_up_current_level', 'button.living_room_ceiling_lamp_2_identify_2', 'select.living_room_ceiling_lamp_2_start_up_behavior_2', 'number.living_room_ceiling_lamp_2_start_up_color_temperature_2', 'number.living_room_ceiling_lamp_2_start_up_current_level_2', 'sensor.signify_netherlands_b_v_ltg002_rssi_3', 'sensor.signify_netherlands_b_v_ltg002_lqi_3', 'button.living_room_ceiling_lamp_3_identify', 'select.living_room_ceiling_lamp_3_start_up_behavior', 'number.living_room_ceiling_lamp_3_start_up_color_temperature', 'number.living_room_ceiling_lamp_3_start_up_current_level', 'sensor.signify_netherlands_b_v_ltg002_rssi_4', 'sensor.signify_netherlands_b_v_ltg002_lqi_4', 'button.living_room_ceiling_lamp_4_identify', 'select.living_room_ceiling_lamp_4_start_up_behavior', 'number.living_room_ceiling_lamp_4_start_up_color_temperature', 'number.living_room_ceiling_lamp_4_start_up_current_level', 'light.ceiling_lamp', 'light.living_room_ceiling_lamp_1', 'light.living_room_ceiling_lamp_2', 'light.living_room_ceiling_lamp_3', 'light.living_room_ceiling_lamp_4', 'sensor.philips_rwl021_rssi', 'sensor.philips_rwl021_lqi', 'sensor.bed_switch_battery', 'binary_sensor.bed_switch_binary_input', 'button.bed_switch_identify', 'sensor.living_room_ceiling_lamp_4_power', 'sensor.living_room_ceiling_lamp_4_energy', 'sensor.living_room_ceiling_lamp_3_power', 'sensor.living_room_ceiling_lamp_3_energy', 'sensor.living_room_ceiling_lamp_2_power', 'sensor.living_room_ceiling_lamp_2_energy', 'sensor.living_room_ceiling_lamp_1_power', 'sensor.living_room_ceiling_lamp_1_energy', 'sensor.ceiling_light_power', 'sensor.ceiling_light_energy', 'scene.default_living_room', 'scene.living_room_night_light', 'button.wardrobe_identify', 'light.wardrobe_light', 'number.wardrobe_on_level', 'number.wardrobe_on_off_transition_time', 'select.wardrobe_start_up_behavior', 'number.wardrobe_start_up_current_level', 'sensor.ewelink_th01_rssi_2', 'sensor.ewelink_th01_lqi_2', 'sensor.living_room_thermometer_2_battery', 'sensor.living_room_thermometer_2_humidity', 'button.living_room_thermometer_2_identify', 'sensor.living_room_thermometer_2_temperature', 'sensor.living_room_temperature', 'sensor.living_room_humidity', 'sensor.living_room_thermometer_1_battery', 'sensor.living_room_thermometer_1_humidity', 'button.living_room_thermometer_1_identify', 'sensor.living_room_thermometer_1_temperature', 'sensor.signify_netherlands_b_v_rwl022_rssi', 'sensor.signify_netherlands_b_v_rwl022_lqi', 'sensor.wardrobe_switch_battery', 'button.wardrobe_switch_identify', 'climate.bt_living_room', 'update.wardrobe_firmware', 'update.living_room_ceiling_lamp_1_firmware', 'update.living_room_ceiling_lamp_2_firmware', 'update.living_room_ceiling_lamp_3_firmware', 'update.living_room_ceiling_lamp_4_firmware', 'update.bed_switch_firmware', 'update.wardrobe_switch_firmware', 'sensor.lumi_lumi_plug_maeu01_rssi', 'sensor.lumi_lumi_plug_maeu01_lqi', 'binary_sensor.workdesk_consumer_connected', 'sensor.workdesk_device_temperature', 'update.workdesk_firmware', 'button.workdesk_identify', 'sensor.workdesk_power', 'switch.workdesk_power_outage_memory', 'sensor.workdesk_voltage', 'sensor.workdesk_energy', 'switch.workdesk', 'sensor.workdesk_device_power_powercalc', 'sensor.workdesk_device_energy_powercalc']
2024-02-09 11:52:08.571 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Auto discovered model (manufacturer=Sonos, model=Beam)
2024-02-09 11:52:08.572 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Model not found in library, skipping discovery
2024-02-09 11:52:08.572 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Auto discovered model (manufacturer=Aqara, model=MiTV-MSSP3)
2024-02-09 11:52:08.573 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Model not found in library, skipping discovery
2024-02-09 11:52:08.573 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.573 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Model not found in library, skipping discovery
2024-02-09 11:52:08.573 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.573 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Model not found in library, skipping discovery
2024-02-09 11:52:08.575 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: Ceiling Light power (entity_id=sensor.ceiling_light_power)
2024-02-09 11:52:08.581 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['sensor.fernseher_audio_input_format', 'media_player.fernseher', 'binary_sensor.fernseher_microphone', 'number.fernseher_audio_delay', 'number.fernseher_bass', 'number.fernseher_balance', 'number.fernseher_treble', 'number.fernseher_surround_level', 'number.fernseher_music_surround_level', 'switch.fernseher_touch_controls', 'switch.fernseher_crossfade', 'switch.fernseher_loudness', 'switch.fernseher_surround_music_full_volume', 'switch.fernseher_night_sound', 'switch.fernseher_speech_enhancement', 'switch.fernseher_surround_enabled', 'switch.fernseher_status_light', 'device_tracker.sonos_beam', 'switch.sonos_beam_internet_access', 'sensor.hp_envy_5000_series_uptime', 'sensor.hp_envy_5000_series_black_ink', 'sensor.hp_envy_5000_series_tri_color_ink', 'sensor.hp_envy_5000_series', 'media_player.mitv', 'schedule.thermostat_schedule', 'sensor.living_room_absolute_humidity', 'sensor.living_room_dew_point', 'sensor.living_room_frost_point', 'sensor.living_room_frost_risk', 'sensor.living_room_heat_index', 'sensor.living_room_humidex', 'sensor.living_room_humidex_perception', 'sensor.living_room_moist_air_enthalpy', 'sensor.living_room_relative_strain_perception', 'sensor.living_room_summer_scharlau_perception', 'sensor.living_room_winter_scharlau_perception', 'sensor.living_room_summer_simmer_index', 'sensor.living_room_summer_simmer_perception', 'sensor.living_room_dew_point_perception', 'sensor.living_room_thoms_discomfort_perception', 'binary_sensor.living_room_windows', 'sensor.ewelink_ds01_rssi_2', 'sensor.ewelink_ds01_lqi_2', 'sensor.balcony_door_battery', 'button.balcony_door_identify', 'binary_sensor.balcony_door', 'sensor.ewelink_ds01_rssi', 'sensor.ewelink_ds01_lqi', 'sensor.living_room_small_window_battery', 'button.living_room_small_window_identify', 'binary_sensor.living_room_small_window', 'sensor.ewelink_th01_rssi', 'sensor.ewelink_th01_lqi', 'sensor.ikea_of_sweden_tradfri_driver_10w_rssi', 'sensor.ikea_of_sweden_tradfri_driver_10w_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi', 'sensor.signify_netherlands_b_v_ltg002_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi_2', 'sensor.signify_netherlands_b_v_ltg002_lqi_2', 'button.living_room_ceiling_lamp_1_identify', 'select.living_room_ceiling_lamp_1_start_up_behavior', 'number.living_room_ceiling_lamp_1_start_up_color_temperature', 'number.living_room_ceiling_lamp_1_start_up_current_level', 'button.living_room_ceiling_lamp_2_identify_2', 'select.living_room_ceiling_lamp_2_start_up_behavior_2', 'number.living_room_ceiling_lamp_2_start_up_color_temperature_2', 'number.living_room_ceiling_lamp_2_start_up_current_level_2', 'sensor.signify_netherlands_b_v_ltg002_rssi_3', 'sensor.signify_netherlands_b_v_ltg002_lqi_3', 'button.living_room_ceiling_lamp_3_identify', 'select.living_room_ceiling_lamp_3_start_up_behavior', 'number.living_room_ceiling_lamp_3_start_up_color_temperature', 'number.living_room_ceiling_lamp_3_start_up_current_level', 'sensor.signify_netherlands_b_v_ltg002_rssi_4', 'sensor.signify_netherlands_b_v_ltg002_lqi_4', 'button.living_room_ceiling_lamp_4_identify', 'select.living_room_ceiling_lamp_4_start_up_behavior', 'number.living_room_ceiling_lamp_4_start_up_color_temperature', 'number.living_room_ceiling_lamp_4_start_up_current_level', 'light.ceiling_lamp', 'light.living_room_ceiling_lamp_1', 'light.living_room_ceiling_lamp_2', 'light.living_room_ceiling_lamp_3', 'light.living_room_ceiling_lamp_4', 'sensor.philips_rwl021_rssi', 'sensor.philips_rwl021_lqi', 'sensor.bed_switch_battery', 'binary_sensor.bed_switch_binary_input', 'button.bed_switch_identify', 'sensor.living_room_ceiling_lamp_4_power', 'sensor.living_room_ceiling_lamp_4_energy', 'sensor.living_room_ceiling_lamp_3_power', 'sensor.living_room_ceiling_lamp_3_energy', 'sensor.living_room_ceiling_lamp_2_power', 'sensor.living_room_ceiling_lamp_2_energy', 'sensor.living_room_ceiling_lamp_1_power', 'sensor.living_room_ceiling_lamp_1_energy', 'sensor.ceiling_light_power', 'sensor.ceiling_light_energy', 'scene.default_living_room', 'scene.living_room_night_light', 'button.wardrobe_identify', 'light.wardrobe_light', 'number.wardrobe_on_level', 'number.wardrobe_on_off_transition_time', 'select.wardrobe_start_up_behavior', 'number.wardrobe_start_up_current_level', 'sensor.ewelink_th01_rssi_2', 'sensor.ewelink_th01_lqi_2', 'sensor.living_room_thermometer_2_battery', 'sensor.living_room_thermometer_2_humidity', 'button.living_room_thermometer_2_identify', 'sensor.living_room_thermometer_2_temperature', 'sensor.living_room_temperature', 'sensor.living_room_humidity', 'sensor.living_room_thermometer_1_battery', 'sensor.living_room_thermometer_1_humidity', 'button.living_room_thermometer_1_identify', 'sensor.living_room_thermometer_1_temperature', 'sensor.signify_netherlands_b_v_rwl022_rssi', 'sensor.signify_netherlands_b_v_rwl022_lqi', 'sensor.wardrobe_switch_battery', 'button.wardrobe_switch_identify', 'climate.bt_living_room', 'update.wardrobe_firmware', 'update.living_room_ceiling_lamp_1_firmware', 'update.living_room_ceiling_lamp_2_firmware', 'update.living_room_ceiling_lamp_3_firmware', 'update.living_room_ceiling_lamp_4_firmware', 'update.bed_switch_firmware', 'update.wardrobe_switch_firmware', 'sensor.lumi_lumi_plug_maeu01_rssi', 'sensor.lumi_lumi_plug_maeu01_lqi', 'binary_sensor.workdesk_consumer_connected', 'sensor.workdesk_device_temperature', 'update.workdesk_firmware', 'button.workdesk_identify', 'sensor.workdesk_power', 'switch.workdesk_power_outage_memory', 'sensor.workdesk_voltage', 'sensor.workdesk_energy', 'switch.workdesk', 'sensor.workdesk_device_power_powercalc', 'sensor.workdesk_device_energy_powercalc']
2024-02-09 11:52:08.582 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Auto discovered model (manufacturer=Sonos, model=Beam)
2024-02-09 11:52:08.582 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Model not found in library, skipping discovery
2024-02-09 11:52:08.582 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Auto discovered model (manufacturer=Aqara, model=MiTV-MSSP3)
2024-02-09 11:52:08.583 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Model not found in library, skipping discovery
2024-02-09 11:52:08.583 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.583 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Model not found in library, skipping discovery
2024-02-09 11:52:08.583 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.583 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Model not found in library, skipping discovery
2024-02-09 11:52:08.585 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: Ceiling Light energy (entity_id=sensor.ceiling_light_energy)
2024-02-09 11:52:08.589 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.ceiling_light_energy: Restoring state: 14.5835
2024-02-09 11:52:08.638 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['sensor.fernseher_audio_input_format', 'media_player.fernseher', 'binary_sensor.fernseher_microphone', 'number.fernseher_audio_delay', 'number.fernseher_bass', 'number.fernseher_balance', 'number.fernseher_treble', 'number.fernseher_surround_level', 'number.fernseher_music_surround_level', 'switch.fernseher_touch_controls', 'switch.fernseher_crossfade', 'switch.fernseher_loudness', 'switch.fernseher_surround_music_full_volume', 'switch.fernseher_night_sound', 'switch.fernseher_speech_enhancement', 'switch.fernseher_surround_enabled', 'switch.fernseher_status_light', 'device_tracker.sonos_beam', 'switch.sonos_beam_internet_access', 'sensor.hp_envy_5000_series_uptime', 'sensor.hp_envy_5000_series_black_ink', 'sensor.hp_envy_5000_series_tri_color_ink', 'sensor.hp_envy_5000_series', 'media_player.mitv', 'schedule.thermostat_schedule', 'sensor.living_room_absolute_humidity', 'sensor.living_room_dew_point', 'sensor.living_room_frost_point', 'sensor.living_room_frost_risk', 'sensor.living_room_heat_index', 'sensor.living_room_humidex', 'sensor.living_room_humidex_perception', 'sensor.living_room_moist_air_enthalpy', 'sensor.living_room_relative_strain_perception', 'sensor.living_room_summer_scharlau_perception', 'sensor.living_room_winter_scharlau_perception', 'sensor.living_room_summer_simmer_index', 'sensor.living_room_summer_simmer_perception', 'sensor.living_room_dew_point_perception', 'sensor.living_room_thoms_discomfort_perception', 'binary_sensor.living_room_windows', 'sensor.ewelink_ds01_rssi_2', 'sensor.ewelink_ds01_lqi_2', 'sensor.balcony_door_battery', 'button.balcony_door_identify', 'binary_sensor.balcony_door', 'sensor.ewelink_ds01_rssi', 'sensor.ewelink_ds01_lqi', 'sensor.living_room_small_window_battery', 'button.living_room_small_window_identify', 'binary_sensor.living_room_small_window', 'sensor.ewelink_th01_rssi', 'sensor.ewelink_th01_lqi', 'sensor.ikea_of_sweden_tradfri_driver_10w_rssi', 'sensor.ikea_of_sweden_tradfri_driver_10w_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi', 'sensor.signify_netherlands_b_v_ltg002_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi_2', 'sensor.signify_netherlands_b_v_ltg002_lqi_2', 'button.living_room_ceiling_lamp_1_identify', 'select.living_room_ceiling_lamp_1_start_up_behavior', 'number.living_room_ceiling_lamp_1_start_up_color_temperature', 'number.living_room_ceiling_lamp_1_start_up_current_level', 'button.living_room_ceiling_lamp_2_identify_2', 'select.living_room_ceiling_lamp_2_start_up_behavior_2', 'number.living_room_ceiling_lamp_2_start_up_color_temperature_2', 'number.living_room_ceiling_lamp_2_start_up_current_level_2', 'sensor.signify_netherlands_b_v_ltg002_rssi_3', 'sensor.signify_netherlands_b_v_ltg002_lqi_3', 'button.living_room_ceiling_lamp_3_identify', 'select.living_room_ceiling_lamp_3_start_up_behavior', 'number.living_room_ceiling_lamp_3_start_up_color_temperature', 'number.living_room_ceiling_lamp_3_start_up_current_level', 'sensor.signify_netherlands_b_v_ltg002_rssi_4', 'sensor.signify_netherlands_b_v_ltg002_lqi_4', 'button.living_room_ceiling_lamp_4_identify', 'select.living_room_ceiling_lamp_4_start_up_behavior', 'number.living_room_ceiling_lamp_4_start_up_color_temperature', 'number.living_room_ceiling_lamp_4_start_up_current_level', 'light.ceiling_lamp', 'light.living_room_ceiling_lamp_1', 'light.living_room_ceiling_lamp_2', 'light.living_room_ceiling_lamp_3', 'light.living_room_ceiling_lamp_4', 'sensor.philips_rwl021_rssi', 'sensor.philips_rwl021_lqi', 'sensor.bed_switch_battery', 'binary_sensor.bed_switch_binary_input', 'button.bed_switch_identify', 'sensor.living_room_ceiling_lamp_4_power', 'sensor.living_room_ceiling_lamp_4_energy', 'sensor.living_room_ceiling_lamp_3_power', 'sensor.living_room_ceiling_lamp_3_energy', 'sensor.living_room_ceiling_lamp_2_power', 'sensor.living_room_ceiling_lamp_2_energy', 'sensor.living_room_ceiling_lamp_1_power', 'sensor.living_room_ceiling_lamp_1_energy', 'sensor.ceiling_light_power', 'sensor.ceiling_light_energy', 'scene.default_living_room', 'scene.living_room_night_light', 'button.wardrobe_identify', 'light.wardrobe_light', 'number.wardrobe_on_level', 'number.wardrobe_on_off_transition_time', 'select.wardrobe_start_up_behavior', 'number.wardrobe_start_up_current_level', 'sensor.ewelink_th01_rssi_2', 'sensor.ewelink_th01_lqi_2', 'sensor.living_room_thermometer_2_battery', 'sensor.living_room_thermometer_2_humidity', 'button.living_room_thermometer_2_identify', 'sensor.living_room_thermometer_2_temperature', 'sensor.living_room_temperature', 'sensor.living_room_humidity', 'sensor.living_room_thermometer_1_battery', 'sensor.living_room_thermometer_1_humidity', 'button.living_room_thermometer_1_identify', 'sensor.living_room_thermometer_1_temperature', 'sensor.signify_netherlands_b_v_rwl022_rssi', 'sensor.signify_netherlands_b_v_rwl022_lqi', 'sensor.wardrobe_switch_battery', 'button.wardrobe_switch_identify', 'climate.bt_living_room', 'update.wardrobe_firmware', 'update.living_room_ceiling_lamp_1_firmware', 'update.living_room_ceiling_lamp_2_firmware', 'update.living_room_ceiling_lamp_3_firmware', 'update.living_room_ceiling_lamp_4_firmware', 'update.bed_switch_firmware', 'update.wardrobe_switch_firmware', 'sensor.lumi_lumi_plug_maeu01_rssi', 'sensor.lumi_lumi_plug_maeu01_lqi', 'binary_sensor.workdesk_consumer_connected', 'sensor.workdesk_device_temperature', 'update.workdesk_firmware', 'button.workdesk_identify', 'sensor.workdesk_power', 'switch.workdesk_power_outage_memory', 'sensor.workdesk_voltage', 'sensor.workdesk_energy', 'switch.workdesk', 'sensor.workdesk_device_power_powercalc', 'sensor.workdesk_device_energy_powercalc']
2024-02-09 11:52:08.638 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Auto discovered model (manufacturer=Sonos, model=Beam)
2024-02-09 11:52:08.641 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Model not found in library, skipping discovery
2024-02-09 11:52:08.641 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Auto discovered model (manufacturer=Aqara, model=MiTV-MSSP3)
2024-02-09 11:52:08.641 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Model not found in library, skipping discovery
2024-02-09 11:52:08.642 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.642 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Model not found in library, skipping discovery
2024-02-09 11:52:08.642 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.642 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Model not found in library, skipping discovery
2024-02-09 11:52:08.643 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped power sensor: All Powercalc Lights power (entity_id=sensor.all_powercalc_lights_power)
2024-02-09 11:52:08.647 DEBUG (MainThread) [custom_components.powercalc.group_include.include] Found possible include entities: ['sensor.fernseher_audio_input_format', 'media_player.fernseher', 'binary_sensor.fernseher_microphone', 'number.fernseher_audio_delay', 'number.fernseher_bass', 'number.fernseher_balance', 'number.fernseher_treble', 'number.fernseher_surround_level', 'number.fernseher_music_surround_level', 'switch.fernseher_touch_controls', 'switch.fernseher_crossfade', 'switch.fernseher_loudness', 'switch.fernseher_surround_music_full_volume', 'switch.fernseher_night_sound', 'switch.fernseher_speech_enhancement', 'switch.fernseher_surround_enabled', 'switch.fernseher_status_light', 'device_tracker.sonos_beam', 'switch.sonos_beam_internet_access', 'sensor.hp_envy_5000_series_uptime', 'sensor.hp_envy_5000_series_black_ink', 'sensor.hp_envy_5000_series_tri_color_ink', 'sensor.hp_envy_5000_series', 'media_player.mitv', 'schedule.thermostat_schedule', 'sensor.living_room_absolute_humidity', 'sensor.living_room_dew_point', 'sensor.living_room_frost_point', 'sensor.living_room_frost_risk', 'sensor.living_room_heat_index', 'sensor.living_room_humidex', 'sensor.living_room_humidex_perception', 'sensor.living_room_moist_air_enthalpy', 'sensor.living_room_relative_strain_perception', 'sensor.living_room_summer_scharlau_perception', 'sensor.living_room_winter_scharlau_perception', 'sensor.living_room_summer_simmer_index', 'sensor.living_room_summer_simmer_perception', 'sensor.living_room_dew_point_perception', 'sensor.living_room_thoms_discomfort_perception', 'binary_sensor.living_room_windows', 'sensor.ewelink_ds01_rssi_2', 'sensor.ewelink_ds01_lqi_2', 'sensor.balcony_door_battery', 'button.balcony_door_identify', 'binary_sensor.balcony_door', 'sensor.ewelink_ds01_rssi', 'sensor.ewelink_ds01_lqi', 'sensor.living_room_small_window_battery', 'button.living_room_small_window_identify', 'binary_sensor.living_room_small_window', 'sensor.ewelink_th01_rssi', 'sensor.ewelink_th01_lqi', 'sensor.ikea_of_sweden_tradfri_driver_10w_rssi', 'sensor.ikea_of_sweden_tradfri_driver_10w_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi', 'sensor.signify_netherlands_b_v_ltg002_lqi', 'sensor.signify_netherlands_b_v_ltg002_rssi_2', 'sensor.signify_netherlands_b_v_ltg002_lqi_2', 'button.living_room_ceiling_lamp_1_identify', 'select.living_room_ceiling_lamp_1_start_up_behavior', 'number.living_room_ceiling_lamp_1_start_up_color_temperature', 'number.living_room_ceiling_lamp_1_start_up_current_level', 'button.living_room_ceiling_lamp_2_identify_2', 'select.living_room_ceiling_lamp_2_start_up_behavior_2', 'number.living_room_ceiling_lamp_2_start_up_color_temperature_2', 'number.living_room_ceiling_lamp_2_start_up_current_level_2', 'sensor.signify_netherlands_b_v_ltg002_rssi_3', 'sensor.signify_netherlands_b_v_ltg002_lqi_3', 'button.living_room_ceiling_lamp_3_identify', 'select.living_room_ceiling_lamp_3_start_up_behavior', 'number.living_room_ceiling_lamp_3_start_up_color_temperature', 'number.living_room_ceiling_lamp_3_start_up_current_level', 'sensor.signify_netherlands_b_v_ltg002_rssi_4', 'sensor.signify_netherlands_b_v_ltg002_lqi_4', 'button.living_room_ceiling_lamp_4_identify', 'select.living_room_ceiling_lamp_4_start_up_behavior', 'number.living_room_ceiling_lamp_4_start_up_color_temperature', 'number.living_room_ceiling_lamp_4_start_up_current_level', 'light.ceiling_lamp', 'light.living_room_ceiling_lamp_1', 'light.living_room_ceiling_lamp_2', 'light.living_room_ceiling_lamp_3', 'light.living_room_ceiling_lamp_4', 'sensor.philips_rwl021_rssi', 'sensor.philips_rwl021_lqi', 'sensor.bed_switch_battery', 'binary_sensor.bed_switch_binary_input', 'button.bed_switch_identify', 'sensor.living_room_ceiling_lamp_4_power', 'sensor.living_room_ceiling_lamp_4_energy', 'sensor.living_room_ceiling_lamp_3_power', 'sensor.living_room_ceiling_lamp_3_energy', 'sensor.living_room_ceiling_lamp_2_power', 'sensor.living_room_ceiling_lamp_2_energy', 'sensor.living_room_ceiling_lamp_1_power', 'sensor.living_room_ceiling_lamp_1_energy', 'sensor.ceiling_light_power', 'sensor.ceiling_light_energy', 'scene.default_living_room', 'scene.living_room_night_light', 'button.wardrobe_identify', 'light.wardrobe_light', 'number.wardrobe_on_level', 'number.wardrobe_on_off_transition_time', 'select.wardrobe_start_up_behavior', 'number.wardrobe_start_up_current_level', 'sensor.ewelink_th01_rssi_2', 'sensor.ewelink_th01_lqi_2', 'sensor.living_room_thermometer_2_battery', 'sensor.living_room_thermometer_2_humidity', 'button.living_room_thermometer_2_identify', 'sensor.living_room_thermometer_2_temperature', 'sensor.living_room_temperature', 'sensor.living_room_humidity', 'sensor.living_room_thermometer_1_battery', 'sensor.living_room_thermometer_1_humidity', 'button.living_room_thermometer_1_identify', 'sensor.living_room_thermometer_1_temperature', 'sensor.signify_netherlands_b_v_rwl022_rssi', 'sensor.signify_netherlands_b_v_rwl022_lqi', 'sensor.wardrobe_switch_battery', 'button.wardrobe_switch_identify', 'climate.bt_living_room', 'update.wardrobe_firmware', 'update.living_room_ceiling_lamp_1_firmware', 'update.living_room_ceiling_lamp_2_firmware', 'update.living_room_ceiling_lamp_3_firmware', 'update.living_room_ceiling_lamp_4_firmware', 'update.bed_switch_firmware', 'update.wardrobe_switch_firmware', 'sensor.lumi_lumi_plug_maeu01_rssi', 'sensor.lumi_lumi_plug_maeu01_lqi', 'binary_sensor.workdesk_consumer_connected', 'sensor.workdesk_device_temperature', 'update.workdesk_firmware', 'button.workdesk_identify', 'sensor.workdesk_power', 'switch.workdesk_power_outage_memory', 'sensor.workdesk_voltage', 'sensor.workdesk_energy', 'switch.workdesk', 'sensor.workdesk_device_power_powercalc', 'sensor.workdesk_device_energy_powercalc']
2024-02-09 11:52:08.648 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Auto discovered model (manufacturer=Sonos, model=Beam)
2024-02-09 11:52:08.648 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.fernseher: Model not found in library, skipping discovery
2024-02-09 11:52:08.649 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Auto discovered model (manufacturer=Aqara, model=MiTV-MSSP3)
2024-02-09 11:52:08.649 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.mitv: Model not found in library, skipping discovery
2024-02-09 11:52:08.649 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.649 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.balcony_door: Model not found in library, skipping discovery
2024-02-09 11:52:08.649 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Auto discovered model (manufacturer=eWeLink, model=DS01)
2024-02-09 11:52:08.650 DEBUG (MainThread) [custom_components.powercalc.discovery] binary_sensor.living_room_small_window: Model not found in library, skipping discovery
2024-02-09 11:52:08.653 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: All Powercalc Lights energy (entity_id=sensor.all_powercalc_lights_energy)
2024-02-09 11:52:08.658 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.all_powercalc_lights_energy: Restoring state: 28.2843
2024-02-09 11:52:14.337 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.all_powercalc_sensor_energy: Recalculate, current value: 32
2024-02-09 11:52:14.337 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_ceiling_light_energy: 0.0000, prev=3.6010, cur=3.6010
2024-02-09 11:52:14.338 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.hall_ceiling_light_energy: 0.0000, prev=1.8387, cur=1.8387
2024-02-09 11:52:14.338 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.badezimmer_homepod_mini_energy: 0.0000, prev=1.5512, cur=1.5512
2024-02-09 11:52:14.338 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.kitchen_ceiling_light_energy: 0.0000, prev=3.5675, cur=3.5675
2024-02-09 11:52:14.338 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_energy: 0.0010, prev=0.7060, cur=0.7070
2024-02-09 11:52:14.338 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_1_energy: 0.0002, prev=3.5950, cur=3.5952
2024-02-09 11:52:14.339 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_2_energy: 0.0002, prev=3.6183, cur=3.6185
2024-02-09 11:52:14.339 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_device_energy_powercalc: 0.0001, prev=0.0001, cur=0.0002
2024-02-09 11:52:14.339 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.ceiling_light_energy: 0.0002, prev=14.5833, cur=14.5835
2024-02-09 11:52:14.339 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_4_energy: 0.0002, prev=3.6184, cur=3.6186
2024-02-09 11:52:14.342 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_3_energy: 0.0002, prev=3.6181, cur=3.6183
2024-02-09 11:52:14.342 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.all_powercalc_sensor_energy: New value: 32.9385
2024-02-09 11:52:14.343 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.ceiling_light_energy: Recalculate, current value: 14
2024-02-09 11:52:14.343 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_energy: 0.0010, prev=0.7060, cur=0.7070
2024-02-09 11:52:14.343 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_1_energy: 0.0002, prev=3.5950, cur=3.5952
2024-02-09 11:52:14.344 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_2_energy: 0.0002, prev=3.6183, cur=3.6185
2024-02-09 11:52:14.344 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_device_energy_powercalc: 0.0001, prev=0.0001, cur=0.0002
2024-02-09 11:52:14.344 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_4_energy: 0.0000, prev=3.6186, cur=3.6186
2024-02-09 11:52:14.344 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_3_energy: 0.0002, prev=3.6181, cur=3.6183
2024-02-09 11:52:14.344 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.ceiling_light_energy: New value: 14.5852
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.all_powercalc_lights_energy: Recalculate, current value: 28
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.bathroom_ceiling_light_energy: 0.0000, prev=3.6010, cur=3.6010
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.hall_ceiling_light_energy: 0.0000, prev=1.8387, cur=1.8387
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.kitchen_ceiling_light_energy: 0.0000, prev=3.5675, cur=3.5675
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_energy: 0.0010, prev=0.7060, cur=0.7070
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_1_energy: 0.0002, prev=3.5950, cur=3.5952
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_2_energy: 0.0002, prev=3.6183, cur=3.6185
2024-02-09 11:52:14.345 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.workdesk_device_energy_powercalc: 0.0001, prev=0.0001, cur=0.0002
2024-02-09 11:52:14.346 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.ceiling_light_energy: 0.0039, prev=14.5813, cur=14.5852
2024-02-09 11:52:14.346 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_4_energy: 0.0000, prev=3.6186, cur=3.6186
2024-02-09 11:52:14.346 DEBUG (MainThread) [custom_components.powercalc.sensors.group] delta for entity sensor.living_room_ceiling_lamp_3_energy: 0.0002, prev=3.6181, cur=3.6183
2024-02-09 11:52:14.346 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.all_powercalc_lights_energy: New value: 28.2899
2024-02-09 11:52:15.533 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_2: State changed to "off". Power:0.30
2024-02-09 11:52:15.588 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_4: State changed to "off". Power:0.30
2024-02-09 11:52:15.883 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_1: State changed to "off". Power:0.30
2024-02-09 11:52:16.100 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_3: State changed to "off". Power:0.30
2024-02-09 11:52:16.152 DEBUG (MainThread) [custom_components.powercalc.sensors.power] switch.workdesk: State changed to "off". Power:0.17
2024-02-09 11:52:22.643 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:22.645 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:22.645 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_2: State changed to "on". Power:4.10
2024-02-09 11:52:22.659 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Looking up power usage for bri:135 mired:274
2024-02-09 11:52:22.661 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Calculated power:1.3939999999999999058530875117867253720760345458984375
2024-02-09 11:52:22.662 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_2: State changed to "on". Power:1.39
2024-02-09 11:52:22.712 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:22.712 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:22.712 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_4: State changed to "on". Power:4.10
2024-02-09 11:52:22.733 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Looking up power usage for bri:158 mired:274
2024-02-09 11:52:22.733 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Calculated power:1.7640000000000000124344978758017532527446746826171875
2024-02-09 11:52:22.734 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_4: State changed to "on". Power:1.76
2024-02-09 11:52:23.005 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:23.006 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:23.006 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_1: State changed to "on". Power:4.10
2024-02-09 11:52:23.018 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Looking up power usage for bri:249 mired:274
2024-02-09 11:52:23.018 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Calculated power:4.02000000000000046185277824406512081623077392578125
2024-02-09 11:52:23.018 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_1: State changed to "on". Power:4.02
2024-02-09 11:52:23.036 DEBUG (MainThread) [custom_components.powercalc.sensors.power] switch.workdesk: State changed to "on". Power:0.46
2024-02-09 11:52:23.169 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_3: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:23.170 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_3: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:23.171 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_3: State changed to "on". Power:4.10
2024-02-09 11:52:23.662 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:23.662 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_2: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:23.663 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_2: State changed to "on". Power:4.10
2024-02-09 11:52:23.732 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:23.733 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_4: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:23.733 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_4: State changed to "on". Power:4.10
2024-02-09 11:52:24.025 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Looking up power usage for bri:254 mired:274
2024-02-09 11:52:24.027 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.living_room_ceiling_lamp_1: Calculated power:4.10499999999999953814722175593487918376922607421875
2024-02-09 11:52:24.028 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.living_room_ceiling_lamp_1: State changed to "on". Power:4.10

Diagnostics dump or YAML config

No response

bramstroker commented 9 months ago

This is by design actually and intended behaviour. What would be the reason you don't want this?

KlaraJa commented 9 months ago

In my case, I only want the lights to be added and not smart plugs (e.g.: I use them to track my computer). That's why I only have the lights configured.

And the description of the area in the GUI config says: Untitled

If this is intended, shouldn't it be "All power sensors" instead of "All powercalc sensors"?

bramstroker commented 9 months ago

This was added on multiple requests by users. Also see https://github.com/bramstroker/homeassistant-powercalc/issues/1741 I will update the documentation to make that more clear.

It's currently not possible to do what you want with the GUI configuration.

When you want more granular control and more possibilities I suggest to setup the group with YAML. See https://homeassistant-powercalc.readthedocs.io/en/latest/sensor-types/group/include-entities.html. You can combine area or other options with one or more filters, and mix and match that. See https://homeassistant-powercalc.readthedocs.io/en/latest/sensor-types/group/include-entities.html#filters

I have investigated adding certain complex configuration to the GUI but with the current possibilities for custom components it's impossible or require a massive amount of work. Also I want to keep the GUI more lean and mean.

I might consider adding a checkbox Add non powercalc sensors to the GUI, which is defaulted to yes.

KlaraJa commented 9 months ago

A checkbox would be really nice

mkaltner commented 8 months ago

I came here looking for the reason my turned off lights are suddenly reporting multiple kWh after adding a few S31's... It may have been requested but really doesn't make sense to me. A group should only include what I selected IMHO. A checkbox would be highly appreciated and I'd personally leave it unchecked by default.

bramstroker commented 8 months ago

@mkaltner this only applies to the option to automatically include entities from an area (and all the other include options when using YAML configuration). It makes sense to also include potential other power sensor from the system, to get a complete perspective. When you select your entities manually at the group there won't be magically added other entities in any way.

Anyways, I found some time today to work on implementing a toggle to control this behaviour.

See #2088, which is just merged in master and will be part of the upcoming release.

See the documentation which explains the new option: https://homeassistant-powercalc.readthedocs.io/en/latest/sensor-types/group/include-entities.html#exclude-non-powercalc-sensors There is also a toggle added to the GUI when setting up the group sensors.

mkaltner commented 8 months ago

Interesting, then for some reason my group with selected entities that are turned off is reporting a large amount of usage.

image image image image

Note where it flattens out, that's when I removed the group from the area. So I think there must be a bug with groups with selected devices still including non powercalc entities.

bramstroker commented 8 months ago

@mkaltner So you are using the area option in the group settings? That one includes the non powercalc sensors as stated before.

Screenshot 2024-02-25 at 18 29 31

That will be "fixed" in next version where this behaviour can be toggled.

When you don't use this "area" option and still experience issues please report a new issue with as much information as possible.

Btw. you can see which individual entities your group is composed of in the state attributes. So that would also help you when debugging.

mkaltner commented 8 months ago

I did, yes. I add all my devices and things to their appropriate area. Guess that means more in powercalc per the description. I removed it and for me it seems to work as expected now.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 7 months ago

This issue was closed because it has been stalled for 5 days with no activity.