bramstroker / homeassistant-powercalc

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

None entities #2279

Closed raffoul closed 4 weeks ago

raffoul commented 1 month ago

System Health details

image

Checklist

Describe the issue

Hello, None entities seems to be generated from Power Calc.

image

image

I don't know the source of these entities and if this is or not an issue with the integration. Do you have an idea pls ?

Reproduction steps

  1. I remove all entities
  2. When I setup power calc , "nodes entities" are generated

!

Debug logs

I'm trying to remove the entities and reproduce.

Diagnostics dump or YAML config

No response

bramstroker commented 1 month ago

Since when do you have this problem? Do you have any configurations defined for powercalc either with yaml or GUI?

raffoul commented 1 month ago

No I have only : powercalc: (and then empty)

In GUI, I have no configuration, only the "nodes entities".

bramstroker commented 4 weeks ago

Very strange, please enable debug logging, maybe that will provide some insight into why these entities are created.

What do you mean with the "nodes entities"?

raffoul commented 4 weeks ago

None entities. Sorry. Ok. I'm trying to reproduce with logs.

raffoul commented 4 weeks ago

I've found this. So the integration has created groups but I don't know why.

2024-06-03 22:51:11.008 DEBUG (MainThread) [custom_components.powercalc.discovery] Done auto discovering entities 2024-06-03 22:51:11.013 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy) 2024-06-03 22:51:11.029 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy: Restoring state: 0.6309 2024-06-03 22:51:11.030 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Load previous energy sensor states from store 2024-06-03 22:51:11.032 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_2) 2024-06-03 22:51:11.048 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_2: Restoring state: 0.6456 2024-06-03 22:51:11.050 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_3) 2024-06-03 22:51:11.072 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_3: Restoring state: 0.6456 2024-06-03 22:51:11.074 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_4) 2024-06-03 22:51:11.110 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_4: Restoring state: 0.3318 2024-06-03 22:51:11.113 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_5) 2024-06-03 22:51:11.136 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_5: Restoring state: 0.6309 2024-06-03 22:51:11.138 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_6) 2024-06-03 22:51:11.154 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_6: Restoring state: 0.6456 2024-06-03 22:51:11.156 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_7) 2024-06-03 22:51:11.174 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_7: Restoring state: 0.6456 2024-06-03 22:51:11.178 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_8) 2024-06-03 22:51:11.199 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_8: Restoring state: 0.6456 2024-06-03 22:51:11.201 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_9) 2024-06-03 22:51:11.217 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_9: Restoring state: 0.6309 2024-06-03 22:51:11.220 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_10) 2024-06-03 22:51:11.241 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_10: Restoring state: 0.6456 2024-06-03 22:51:11.243 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_11) 2024-06-03 22:51:11.261 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_11: Restoring state: 0.6309 2024-06-03 22:51:11.264 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_12) 2024-06-03 22:51:11.282 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_12: Restoring state: 0.6309 2024-06-03 22:51:11.286 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_13) 2024-06-03 22:51:11.309 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_13: Restoring state: 0.6309 2024-06-03 22:51:11.312 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_14) 2024-06-03 22:51:11.329 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_14: Restoring state: 0.3318 2024-06-03 22:51:11.332 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_15) 2024-06-03 22:51:11.350 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_15: Restoring state: 0.6456 2024-06-03 22:51:11.353 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_16) 2024-06-03 22:51:11.368 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_16: Restoring state: 0.3138 2024-06-03 22:51:11.371 DEBUG (MainThread) [custom_components.powercalc.sensors.group] Creating grouped energy sensor: None energy (entity_id=sensor.none_energy_17) 2024-06-03 22:51:11.390 DEBUG (MainThread) [custom_components.powercalc.sensors.group] sensor.none_energy_17: Restoring state: 0.2991 2024-06-03 22:51:11.719 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues `

raffoul commented 4 weeks ago

It's fixed by removing one by one the none entities. Restart home assistant was necessary for each deletion. Very strange.

bramstroker commented 3 weeks ago

@raffoul I might be up to something. Same issue reported by two other users. Please follow #2281 for updates.