I have been trying to figure out what I may have done wrong. But having no luck. I thought I would ask the Hive Mind.
I am new to home assistant, so be gentle . I am trying to set up a Peak / Off peak tariff. Everything appears to work correctly. But the peak is all show showing in off peak time of energy graph. This is also messing with my costs.
Capitalisation is important in Python and Home Assistant.
Change your automation to:
trigger:
- platform: time
at: input_datetime.off_peak_energy_end
variables:
tariff: Peak # not peak
You used capitalisation for one tariff but not the other. Unfortunately I don’t think you can edit the Utility Meter helper created in the UI once it is made. You’ll have to change the automation. Or delete the utility meter helper and recreate it if having one lower case and one upper case tariff triggers OCD for you.