BottlecapDave / HomeAssistant-OctopusEnergy

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

Setting hours to 0 #740

Closed djdarlo closed 4 months ago

djdarlo commented 4 months ago

Describe the feature

Would it be possible to set the number of hours to 0 and therefore return an empty target set. I am currently using target sets to switch by solar battery charge on and off. Some days I don't need any charge so would like to set able to set the number of hours to 0. Currently I set it to a high value and put additional coding in the automation.

Expected behaviour

When hours is set to 0 no target set is returned.

Use Case

When it's sunny :) I don't need any battery charge so want to set hours to 0.

Confirmation

BottlecapDave commented 4 months ago

Hello. The integration should allow you to do this already. Are you getting any particular error when attempting to do so?

djdarlo commented 4 months ago

It does - my apologies. I thought I had tried this in the past and it hadn't worked. Please close.

On Sat, 10 Feb 2024 at 06:50, David Kendall @.***> wrote:

Hello. The integration should allow you to do this already. Are you getting any particular error when attempting to do so?

— Reply to this email directly, view it on GitHub https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/740#issuecomment-1936904182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5PC2D7EPGVG3QWGG2OV5TYS4KC5AVCNFSM6AAAAABC34OQAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHEYDIMJYGI . You are receiving this because you authored the thread.Message ID: @.*** com>

BottlecapDave commented 4 months ago

No problem. Just hoping I hadn't missed something :)