This looks fine
But this doesn’t
How strange, I just checked mine (been neglecting it recently) and mine is the same apart from both gas and electric are showing -ve. I also do not have any type of export, i.e. solar, batteries, etc…
I disabled that entity as I found it unreliable and use the unit rate entity and usage entity instead and let HA work it out
Yes, I’ve had this for ages for both gas and electricity - it’s really annoying, I can’t see why it’s doing it, if i create a manual graph card to show the costs they look fine.
EDIT: I’ve also tried using the ‘current price as entity’ and ‘set fixed price’ options, both of which result in £0 cost being reported?
Hello all,
Just wondered if anyone has made a clever sensor that tracks export for today only?
The MQTT broker on the CAD only has a total export but wondered whether some clever calculations could track previous total export compared to new total export.
I haven’t fully thought the below in my head but just some ideas and I’m not a major coder either.
If 0000 then
Reset all variables to blank
If after 0001 and before 2359 then
Export_prev_value = reading
Export_new_value = reading
Export_diff_value = $Export_new_value - $Export_prev_value
Export_today_prev_total = value
Export_today_new_total = $Export_today_prev_total + $Export_diff_value