(Nested) groups: Energy way too high (especially after restart of HA)
See original GitHub issueI have nested groups configured like this (shortened):
powercalc:
enable_autodiscovery: false
scan_interval: 00:10:00
create_energy_sensors: true
create_utility_meters: true
sensor:
# actual total consumption
- platform: powercalc
entity_id: switch.shelly_3em
power_sensor_id: sensor.shelly_3em_power_total
energy_sensor_id: sensor.shelly_3em_energy_total
- platform: powercalc
create_group: Haus
entities:
- create_group: Wohnzimmer
entities:
# ...
- create_group: Küche
entities:
# ...
- create_group: Badezimmer
entities:
# ...
- create_group: Schlafzimmer
entities:
# ...
- create_group: Arbeitszimmer
entities:
# ...
- create_group: Flur
entities:
# ...
Power and energy sensors for the single devices are working as expected but something is wrong with the group sensors: Power seems to be OK but the group energy sensors are way too high. Especially a restart of HA makes things worse:
Before restart:
After restart:
“Shelly 3EM” is the actual total consumption of my home. “Tuya Server” and “Kaffeemaschine” are two of my single devices.
Already checking debug logs but can’t find anything suspicious.
Issue Analytics
- State:
- Created a year ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
2022.4: Groups! Groups! Groups! - Home Assistant
Welcoming new helpers to the UI, including groups! Helpers for switches with an identity crisis, updates, backups, performance improvements, ...
Read more >Solved: Nested DRS clusters with a single HA cluster? (AMD...
I have to manually initiate a shutdown of the VM. Sit there watching it, waiting for the shutdown. And then boot it up...
Read more >Any other users have large amounts of groups/nested groups ...
This turns out to be a horrific idea because of how NPM queries things... It doesn't play nicely with nested groups (causing these...
Read more >Nested groups does not work (include and exclude mode)
With an excluded nested group : the machines are not excluded. It worked fine before with patch for server version. Expand Post.
Read more >Suicide and Antidepressants: What Current Evidence Indicates
Across the globe, ADs, especially SSRIs, are among the most commonly ... it is possible that suicidal impulses as well as the energy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect, that’s as expected
Nice
Only after restart right? Than you can safely ignore this warning.
Thanks
Hey, I was on vacation and lost track of this topic…
I have your suggested “manual” energy and utility meter sensors up and running for a few days now and results are looking good. Even on reboot and stuff. 👍