jrfernandes / ontario_energy_board

Home Assistant component that installs a sensor with the current energy rate for Ontario energy companies
MIT License
41 stars 10 forks source link

Tiered Pricing #15

Closed theklunky closed 1 year ago

theklunky commented 1 year ago

Would it be possible to add tiered pricing to this integration? In Winter months, the first 1000KWh are billed at 8.7cents/KWh and the rest at 10.3 cents/KWh. In summer the first 600KWh are billed at the lower rate. Hopefully other users could benefit from this. Cheers

jrfernandes commented 1 year ago

How would you suggest adding this? I'm thinking maybe adding two attributes for this, something like:

Is this how you were thinking about it?

theklunky commented 1 year ago

There are two tier levels, one for winter and one for summer. I think summer is 750KWh for the first tier. I guess there would have to be a way to automatically switch from winter to summer and vice-versa. Would this be able to be integrated in the Energy portion of HA or would it only provide attribute to then make my own usage a pricing graphs?

jrfernandes commented 1 year ago

This page here talks about the tiered pricing, which changes between summer and winter. The challenge here is that the XML file does not include the tier amount for summer and winter; it only includes one that matches the winter amount right now. I wonder if the XML will change once summer starts.

theklunky commented 1 year ago

At this point, I would be fine with inputting the tier threshold manually in the configuration when the switch happens between summer and winter and vice versa if that makes it easier for you.

jrfernandes commented 1 year ago

These attributes are now live with the release v0.3.2