BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
532 stars 49 forks source link

Optional target rate hours if min and/or max rates specified #869

Open BottlecapDave opened 1 month ago

BottlecapDave commented 1 month ago

Describe the feature

If a min and/or max rate is specified for a target rate sensor, it would be good if the hours were optional. If hours are not specified, then the most amount of slots should be found that meet the requirements.

Expected behaviour

Use Case

Want to turn on/off a device for as long as possible above/below a certain threshold.

It doesn't feel like a continuous sensor is applicable in this scenario and therefore this could be covered by a template sensor.

Confirmation