My local energy provider has a schedule for when energy is Peak, Off-Peak and Super-Off Peak for users of their variable billing plans. It’s the same all year on weekends, but changes to one set of times on weekdays between October and April, and another set of times between May and September.
After a lot of fits and starts, I managed to create a complicated system of helpers and automations to make this work. And while I got there, I feel like there HAD to be a simpler way to do this. Would love some input.
Here’s what I ended up doing:
—Create a drop down helper called “Energy Cost Sensor” that can be changed to Peak, Moderate (Off-Peak), or Green (Super Off-Peak).
—Create a sensor that just outputs the name of the month (this was the hardest but is apparently very easy if you know YAML and Python…which I do not. Yet.)
—Create a schedule helper entity for each of the states:
——Peak Use (Weekdays, May thru September)
——Peak Use (Weekdays, October thru April)
——Moderate Use (Weekdays, May thru September)
——Moderate Use (Weekdays, October thru April)
——Green (Everyday, since it doesn’t change based on the months or weekdays vs weekends)
——Moderate Use (Weekends)
—Create automations for each schedule helper entity that changes the Energy Cost Sensor to the appropriate option.
—Create an automation that disables the May-September automations and enables the October-April automations when the Month sensor changes to October
—Create an automation that disables the October-April automations and enables the May-September Automations when the Month sensor changes to May
So: 1 template (month), 1 dropdown helper, 6 scheduler helpers, and 8 automations.
I got there, but feels excessive. Thoughts on simplifying?