#grahamsz 7398 I converted your message

1 messages · Page 1 of 1 (latest)

flat storm
#

I'm on a tiered rate plan that varies by my total consumption, so i'm prorating out my consumption until the 15th of the month, then dividing through to come up wiht an effective rate

#

My energy dashboard looks good and shows consumption for power, water and gas. But it only shows costs for water and gas (and my water rate is a very similar tiered rate structure)

#

Even putting a fixed per kWh rate in there still shows me zeros and i'm running out of things to check

#

My extrapolated_power_usage is hovering between about 640 & 680 kWh for the current month, so my rate is staying in the lowest tier and the entity is reporting 0.1152 USD/kWh

meager dome
#

Put your value_template code into developer tools > template and you can debug it there.

flat storm
#

I think my template code is fine.. the debugger runs it without objection

#

It's also nearly identical to how my water rate is calculated (Except that's in USD/ft³)

meager dome
#

Check into the slight differences between water and energy. Perhaps UOM-state_class, etc. confuse the ED. Its a bit of a black box it seems.

flat storm
#

I kinda suspect the issue is somehow with the metering itself and not the rate. Even switching the rate to "Use a static cost" doesn't work and still shows zero.

It's a big of a mixed bag. My water comes from a meter reading (through RTLAMR), my gas comes from reading the thermostats operating states (since it's 95% of my gas use) and the electricity reading comes from the daily value from my Emporia energy

#

Ok switched it to use the meter reading instead of a direct measurement, and changed it to a fixed price. Interestingly the data showed up immediately (though the meter reading only moves when we consume a whole kWh so it shows lots of periods with no power consumption). I'll give it a couple of hours to settle and see if that makes a price show up

flat storm
#

Ok so a price showed up then, and i changed it to my complex template sensor for rate and that worked too. Unfortunately my meter only ticks with every kWh so that results in a lot of periods where I don't see any power consumed