markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
86 stars 33 forks source link

Add ability to override rates with Go tariff #81

Open markgdev opened 2 years ago

markgdev commented 2 years ago

Add ability to override rates with Go tariff

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

Branch issue-81-Add_ability_to_override_rates_with_Go_tariff created!

MJP-76 commented 2 years ago

Nice, Was just thinking how I could do this without changing all my automations that are based on Agile rates / times so they fire at Go low Rate / Time

Do you have update doc/config

markgdev commented 2 years ago

Yup, they're there now, I hadn't merged it in..

MJP-76 commented 2 years ago

Yup, they're there now, I hadn't merged it in..

Cheers. Just confirming If i have the following the rates card will show my day rate of 15.33p in the half hour slots from 04:30:00 to 00:00:00 and from 00:30:00 to 04:00:00 as 5p

` gorate: 5 godayrate: 15.33 gotimes:

markgdev commented 2 years ago

The times are in GMT, so assuming you're on standard Go you'll want to start at 23:30 and end at 03:30. Annoyingly it means you'll have to change it when the clocks change, I'll try and make that not the case by October! But today was a bit of a quick fix for me just to get something working.

MJP-76 commented 2 years ago

Hey there.

Looking forward to the GMT/BST/UTC time fix but whilst you are at it, I have an idea for you

If override with go rates & day rates in the yaml, it shows what you have entered on the rates card which is cool but is there any way this can also show on the current/average/next sensors?

Reason I ask is that my parents live in my annexe which is completly seperate from the main house and is not automated but does share the electricty and based on the state/price or colour of the rates they have on their home assistant app they put appliance on at the given times etc

Maybe I am missing something with the rates card or do I need to update it. I use the HACS installation

markgdev commented 2 years ago

It should already override the sensors, is it not? I don't override day rates but can see the nighttime rates override in the current sensor.image