Skip to content

idea: take past hours into account #28

@derSchreifritz

Description

@derSchreifritz

this is more of a feature request
(if it doesn't exist already):
Beside future hours, I'd like to take into account x past hours.
So to have a reference window starting from somewhere before, not only with future hours.
So far I only have the alternative option to compare with the daily average or mean. But for my heatpump and house with little buffer, a window of a few hours would be better. Only future hours doesn't compensate for past situation.

edit:
I tried to use a negative filter length, but that is not possible, must be an integer between 2...20
But maybe something in this direction? I wanted with filterlength -2 to have current and past hour. Such a sensor I could then combine with a regular one that looks into the future.
edit2: changing numbers in my local version of https://github.com/jpulakka/nordpool_diff/blob/7fa73ed6d3b292e9aff2db7b382008dfdf5b46b9/custom_components/nordpool_diff/sensor.py#L38C58-L38C69
didn't help yet. But then, I don't understand much of it anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions