-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] add option to compute group energy #2155
Comments
Wauw, that is really great 🥳 |
Hi @bramstroker This is in my yaml:
|
It should be However I see the documentation is not correct. |
I think the name in the documentation is better😊 |
I agree, will be fixed with #2189 |
Checklist
Is your feature request related to a problem? Please describe.
My use case are lights, over 50 in my case, that all together contribute to less 5-10% of my energy use. So energy tracking per light is only hammering home assistant recorder database, without real use.
The good news is that the creation of energy sensors in Powercalc can be disabled (
create_energy_sensor: false
).So I that defined an
all lights
group with light subgroupsper room
in it (as show in the extensive manual), where, in my case, energy sensor creation is disabled:The next attempt, enabling only the top level energy sensor doesn't work:
The reason (as explained by Bram) is that energy sensor for a group sensor will just sum all embedded energy entities. So as I disabled them, the
all lights energy sensor
state will remain unknown.Describe the solution you'd like
Specific for the lights usecase, energy calculation based on the group power value ( in stead of summing embedded energy sensors) would be nice. That could be an extra group option like this:
Or a variant like this:
Describe alternatives you've considered
The alternative is to define a Riemann integration sensor for the light group. I don’t like that solution because there is a bug in the Riemann integration, causing that Riemann sensors don’t update as long the source sensors are stable. So extra
helper sensors
are needed to simulate updates.Additional advantage is that the configuration for these extra energy sensors is also part of Powercalc.
Energy sensors created by PowerCalc seem to work fine🫡
Additional context
N/A
The text was updated successfully, but these errors were encountered: