Ellevio - change to only one CostPeriod and add hours condition to divide_by_kw #181

Open
opened 2025-10-23 09:17:02 +02:00 by jacobsvante · 0 comments
jacobsvante commented 2025-10-23 09:17:02 +02:00 (Migrated from github.com)

Ellevio counts the average of the peaks of 3 hours per month, no matter the time of day. The only difference is that during night hours, only half the kW is counted.

So the API needs to look like this:

CostPeriods::new(&[
                CostPeriod::builder()
                    .load(Base)
                    .cost(Cost::fixed(81, 25))
                    .divide_kw(Hours(22,6 ), 2)
                    .build(),
            ]),
Ellevio counts the average of the peaks of 3 hours per month, no matter the time of day. The only difference is that during night hours, only half the kW is counted. So the API needs to look like this: ``` CostPeriods::new(&[ CostPeriod::builder() .load(Base) .cost(Cost::fixed(81, 25)) .divide_kw(Hours(22,6 ), 2) .build(), ]), ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spotpilot/grid-tariffs#181
No description provided.