markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
90 stars 32 forks source link

Timers - block of time #1

Closed markgdev closed 3 years ago

markgdev commented 4 years ago

Add the option to ensure all timers are in one block for use with appliances such as washing machine.

markgdev commented 3 years ago

See #18 for a good usecase

slug56 commented 3 years ago

Great job with the project! Really enjoying it in combination with an OWL Intuition energy monitor. Just a note to say this is a feature I'm craving, especially with the recent erratic pricing. I have a dehumidifier on a timer that I would prefer to have run in one contiguous block each day, than to switch on and off in sporadic 30 minute intervals. I know it would cost me more for the contiguous block, though as I think you've mentioned elsewhere, that might lend itself better to certain devices.

create-issue-branch[bot] commented 3 years ago

Branch issue-1-Timers_block_of_time created!

markgdev commented 3 years ago

@slug56, I've just merged this in, if you have any issues let me know!

markgdev commented 3 years ago

Actually, timers will only get created if requirements are specified, going to fix that.

markgdev commented 3 years ago

Now merged in with fix, if requirements aren't set then it'll get the best block for the whole time.

slug56 commented 3 years ago

Looking good 🤓 I've got a single 10-hour block now, whereas before there were 2 or 3 30-minute blocks at different times. Will keep an eye over the next few days. Nice work!