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

Add additional capabilities for specifying entities with target time #65

Closed alinbalutoiu closed 5 months ago

alinbalutoiu commented 5 months ago

This PR adds additional capabilities to highlight target times:

It does also mean it's breaking previous configurations since targetTimesEntity and targetTimesEntity2 is no longer supported.

The migration is pretty straightforwad, from:

targetTimesEntity: binary_sensor.octopus_energy_target_rate3
targetTimesEntity2: binary_sensor.octopus_energy_target_rate4

to:

targetTimesEntities:
  binary_sensor.octopus_energy_target_rate3:
  binary_sensor.octopus_energy_target_rate4:

Finally, here's a picture on how that looks like.

image

Addresses the following:

corvus2606 commented 5 months ago

good solution, better than mine 👍

lozzd commented 5 months ago

This is very nice!

One minor thing, your example config section (and great screenshots on this PR for that matter) - could you move that in to/replace the content under the "advanced configurations" section further down in the README?

I'll need to write up a note about the breaking change for the release notes but that's fine.

alinbalutoiu commented 5 months ago

I've updated the README, let me know if that works.

I had a separate text card in home assistant which was showing the target time intervals, but this is making life so much easier, thanks for adding support for it initially!

lozzd commented 5 months ago

Thanks very much! love the feature. This is now released in v0.6.0 with the note about the breaking change in configuration format.