Hi, not sure if this issue has already been mentioned, but I noticed a problem when trying to get electricity cost working in the Energy Panel.
I’m using @robertalexa 's custom component, and I’m tracking cost using the “Smart Meter Electricity: Cost (Today)” entity as instructed. The cost it showing as “£0.00”, though. I’ve had a look at the MQTT payload using MQTT Explorer - it is updating regularly and shows the following:
{
"electricitymeter": {
"timestamp": "2022-08-30T10:53:29Z",
"energy": {
"export": {
"cumulative": 0,
"units": "kWh"
},
"import": {
"cumulative": 3066.055,
"day": 0.005,
"week": 0.018,
"month": 0.348,
"units": "kWh",
"mpan": "XXXXXXXXXXXXX", # REDACTED
"supplier": "British Gas",
"price": {
"unitrate": 0.291,
"standingcharge": 0.5054
}
}
},
"power": {
"value": 0.674,
"value": 0.623,
"units": "kW"
}
}
}
According to electricitymeter>import>day
, I have only used 0.005 kWh of electricity today. The Bright app, however, shows that I have used 5.71 kWh. The actual kWh readings are out by a factor of 1000.
Bright app Energy Usage:
Bright app Cost:
Any idea how I can get an accurate reading from my IHD?
Thanks!
Edit: weirdly, although the MQTT payload says I’ve used 0.005 kWh, the Sources item in the Energy panel actually shows it correctly (note: in the time between the Bright app screenshots above and the Home Assistant Energy panel image below, usage had actually gone up from 5.71 kWh to 6.03 kWh). Cost still zero, though.