jrouvier / esphome-emporia-vue-utility

Alternative ESPHome firmware for the Emporia Vue Utility Connect
GNU General Public License v2.0
75 stars 17 forks source link

kwh read from meter is accurate but meter is 1/40th of power #14

Closed feelingwalnut closed 10 months ago

feelingwalnut commented 10 months ago

i... could probably describe that better. both the original emporia firmware and this replacement firmware will read from the meter properly but the meter itself only displays 1/40th of the billed/consumed power. meter

take difference from one point in time to the next, multiply by 40 and you get your kwh. i'm trying to figure out if the change is as simple as watt_hours = (float)watt_hours_raw (float)meter_div; to watt_hours = (float)watt_hours_raw 40; or watt_hours = (float)watt_hours_raw (float)meter_div 40; since meter_div shows 1.

or if i am waaay off.

Thank you

feelingwalnut commented 10 months ago

using the second example, it now appears accurate.

[18:00:50][D][Vue:264]: Meter Divisor: 1 [18:00:50][D][Vue:265]: Meter Cost Unit: 1000 [18:00:50][D][Vue:266]: Meter Flags: 31 33 [18:00:50][D][Vue:267]: Meter Energy Flags: 00 [18:00:50][D][Vue:268]: Meter Power Flags: 00 [18:00:50][D][Vue:270]: Meter Timestamp: 157472 [18:00:50][D][Vue:271]: Meter Energy: 3060.725kWh [18:00:50][D][Vue:272]: Meter Power: 1280W

feelingwalnut commented 10 months ago

watts = ((float)watts_raw 40) (float)meter_div; also watt_hours = ((float)watt_hours_raw 40) (float)meter_div;

in domoticz you need to remove your logging history or wait 24hr as the multiplier will make that day's kwh usage crazy high.