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

Enhancement Request: Support for Tracker tarriff #22

Open jarrodstrachan96 opened 11 months ago

jarrodstrachan96 commented 11 months ago

Great card, love the look. Would be great if you could include support for Tracker Tarriff, where it would only show Days, rather than specific timeslots.

Good work!

lozzd commented 7 months ago

I believe a feature was added in 0.3.0 which might help you here: combinerate (see the README) removes duplicate rows, so I think it would colapse the card down. Try it and let us know!

jarrodstrachan96 commented 7 months ago

Thanks for getting back to me- I tried it with combinerate but it doesn't work particularly great for the Tracker tarriff.

Option to hide the hour attribute would be good, as it's irrelevant for Tracker But the main issue was the colour coding logic isn't a great fit for Tracker, as it highlights the cheapest rate of today in the light green, which isn't applicable to Tracker and means today's rate is always light green, even if the rate cost is above one of the defined limits.

Great card for the hourly tarriffs though I imagine

igloo32 commented 7 months ago

Had a look at what was introduced in V4 and there was a new config added for lowlimit, this is defaulted to 5p so if as like most people you don't have it in your config for the card it causes a different colour for prices below 5p which if you have a gas tracker will quite often cause the colour to change. The simplest solution is to add lowlimit and just set it to the same value as mediumlimit.

Without lowlimit set: image

With lowlimit set to same as mediumlimit: image

I agree about the hours label been optional and in my local version I have it turned off. when I have chance I'll submit a pull request to the main project.