markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
89 stars 32 forks source link

Calculate price sensors based on Quartiles #62

Open d1964b opened 3 years ago

d1964b commented 3 years ago

Would it be possible to create price sensors that present quartile values for todays prices. I've always found having to program in specific price thresholds for performing certain tasks (i.e. Current_agile_price < 12 ) or something really inflexible.It would be much more dynamic if you could write something like Current_agile_price < Agile_SecondQuartileValue ) - that way you could 'float' above any specifc daily fluctuations but be confident about selecting the cheaper prices etc.