Rate per Ccf (I have to convert to ft³ see post below)
Daily Customer Charge
Tax
For electricity we have a strange billing option which I’m sort of stuck using. They charge certain rates up to a threshold usage. Then after that they charge additional costs. Sadly Home Assistant doesn’t allow either. It also doesn’t allow me to change the billing period. I can’t get any entities from the Energy Dashboard or I could template a solution myself outside the dashboard.
I don’t have sensor.grid_consumption_period and the Energy panel does not expose anything similar. I would have to recreate some functions of the Energy Panel to make that work.
Hello Miguel Ángel,
What exactly does ‘sensor.grid_consumption’ and ‘sensor.grid_exported’ mean?
Right now in kW, monthly, daily, yearly, total since the beginning of time…
Possibility for fixed cost details - Yes please.
Readers, please vote for this (top left of this page).
Fixed pricing based on time (month/year) is a thing here in Sweden as well.
I.e. the price is not at all connect to the amount of kWh used. The price is the same if you use 0 or, 10000 kWh.
These things are only connected to time (month/year…)
But, they show up on the electricity bill nevertheless.
Perhaps best if we add our fixed prices in cost/hour, so it mesh well with kWh.
But that is easily calculated.
While we’re waiting for your excellent suggestion to be implemented, could you share more details on how you set up the “dummy sensor with 0 fixed value and total cost entity”?
I created the template sensor, but when I add it I end up “multiplying by 0” since the sensor use 0 kWh. Resulting in fixed cost of 0, due to the multiply by 0.
In other words, could we ask you to show your zero-kWh-sensor-setup - end to end? And please show some code too, if possible.
Also, thanks for suggesting to Home Assistant to include this great feature “out of the box”.
Do you state them as cost per day, or cost per hour, or…?
Just trying to figure out what multiple to use.
For example, 0.16947 (per hour) or 4.067 (per day) (016947 * 24)…
This workaround won’t be suitable for everyone, but as I have my energy data in influxdb, I use the integration and a flux query to create a sensor that accounts for the standing charge.
Thanks for the great solution to include fixed costs in the energy dashboard. It works great!
Just to help others, I share a slightly modified approach for the second sensor that is triggered at 00:05.
I update the sensor every hour and changed the calculation from relative (add daily cost at 00:05) to an absolute calculation (hours*hourly_costs)
Reason: If HA is not running during the trigger time (at 00:05), it will miss the daily cost for that day.
For the value, I therefore calculate the hours passed since I started to track fixed cost and multiply that with the costs per hour. So if HA is down, it will catch up later adding the missing hours:
Note1: just enter the date of the day you create this sensor
Note2: 0.046 is the total fixed cost per hour for my provider. Of course you can look them up from input helpers, as done in the original. But this is a little more readable.