Skip to content

Add tolerance to allow picking earlier time frames #29

@sshaikh

Description

@sshaikh

Describe the feature

The integration does a great job in figuring out the absolutely cheapest target in a range of data. However sometimes it's preferable to pick an earlier window if its average rate is not too different from the optimal one. If we were able to configure this tolerance then TT would prefer a later timeframe only if it's less by that amount.

Expected behaviour

Given the 30 min data:

D0: 5
D1: 5
D2: 4
D3: 4

A request for a 1 hour target would return D2D3 with an average of 4.

Looking at the other options, D0D1 averages 5 and D1D2 averages 4.5.

So a configured tolerance of 0.5 would return D1D2, while 1 would return D0D1.

Use Case

In some households it is preferred to get things done sooner if it would only cost marginally more to do so. This would let the user configure how much they are willing to overspend from the optimal to get an earlier window.

Confirmation

  • By submitting this feature request, you agree that you have read the documentation and confirmed it does not already exist
  • I am willing/able to help contribute to the solution of this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions