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

Feat: Add dynamic limits based on entities #77

Closed alinbalutoiu closed 2 months ago

alinbalutoiu commented 3 months ago

I've had this for a while on my local installation, I quite like to have some additional limits defined based on an input number that I can adjust.

That input number is used to trigger certain automations for example which is very helpful for me to see it easily on the graph.

This is when I realised that it's quite straightforward to support sensor/input entities for the limits, so that you can set it dynamic if you'd like based on another sensor. This doesn't include any breaking changes, it will detect if an entity is passed as a parameter and it will read the state in that case.

Fixes: #74

alinbalutoiu commented 3 months ago

Hey @lozzd 👋 Can you have a look over this PR when you have the chance? 🙏 Let me know if I can help with anything

lozzd commented 2 months ago

Thanks for this! Sorry for the delay!

mushroomboxepogee commented 2 months ago

Do you know if there are any easy step-by-step guides to getting this working (for complete beginners). I've installed this and it just tells me that the rate card isn't active. I'm sure I've got to do something somewhere else, but not sure what. I just want a display of Agile prices or graphs on my Home Assistant screen, I'm not looking to switch anything.

alinbalutoiu commented 2 months ago

Hey @mushroomboxepogee ! If I understand it correctly, I'm afraid that isn't possible.

This frontend integration relies on https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy which in turn rely on you having Octopus as your energy provider and having your tariff set to Octopus Agile. It won't work otherwise.

If you just want to see the agile prices graph, I recommend you update your home assistant to the latest version and add https://agile.octopushome.net/dashboard as a web page to see the prices.

mushroomboxepogee commented 2 months ago

Thankyou - very helpful.