lozzd / octopus-energy-rates-card

This lovelace card for Home Assistant displays the Octopus Energy rate prices per each 30 minute slot
MIT License
60 stars 22 forks source link

Feature Request - Make Rate Limits Runtime Changeable #44

Closed AlexCWorrall closed 5 months ago

AlexCWorrall commented 7 months ago

The rate limits can currently only be set, hardcoded, whilst editing the dashboard.

Would be great if they could be also have the ability to be set by an entity value. For example, I trigger charging my batteries based on an input number which specifies the rate at which to start or stop charging. If I could use that value as a rate limit (likely lowlimit or midlimit), I would be able to see the rate card coloured based in whether my batteries would charge or not within each time period. As I change the input rate, the rate card would dynamically change, giving me quick visual feedback of how many 30 mins slots I would be charging in.

stevetrease commented 7 months ago

This has been asked for before.

I’ve submitted a pull request (https://github.com/lozzd/octopus-energy-rates-card/pull/40) to allow an entity to be used to emphasis cells below a “dynamic value”. Essentially cells below the value of the specified sensor are highlighted with bold, black text. You might want to try that.

I use this exactly as you propose.

corvus2606 commented 5 months ago

My latest pull request #61 includes a change that allows an entity to be specified with multipliers for medium and high limits.

limitEntity: sensor.electric_average_unit_rate
mediumLimitMultiplier: 0.8
highLimitMultiplier: 1.1
lozzd commented 5 months ago

This is merged and live in v0.5.0