mill1000 / midea-ac-py

Home Assistant custom integration to control Midea (and associated brands) air conditioners via LAN.
MIT License
146 stars 14 forks source link

Alternate Energy Format: Values much too high #230

Open LeSpocky opened 2 weeks ago

LeSpocky commented 2 weeks ago

Using a Midea PortaSplit here, ticked the box for "Alternate Energy Format" in device settings.

While #204 was fixed in release 2024.09.0 for power, the energy reading seems to be wrong. The value is expected to be smaller by (roughly?) factor 10. Integrating over Midea power values gives the same energy as measured by a Shelly Plug, so power seems to be correct. Attaching some screenshots from today: 2024-09-04.zip.

LeSpocky commented 1 week ago

Screenshot_20240904_122421.png

The long cyan bar on top is the wrong value from the integration. The three bars of same length below have the right values, those are reported Energy from Shelly Plug, and energy calculated by integration over Power (shelly and midea integration).

Wurmi1986 commented 1 week ago

Hi, I have a similar problem. If I don't use the “Use Alternate Energy Format” mode, the values in the HA are much too low. The Midea app and also my Shelly Plug S show significantly higher values. If I check the box next to “Use Alternate Energy Format ”, the current values are correct, but “total energy” is then much too high 88 instead of 3.78 kWh Dont use Alternate Energy Format

image Use Alternate Energy Format image Shelly App: image Midea App: image

mill1000 commented 1 week ago

@Wurmi1986 So for your unit it appears you need the "alternate" format for power, but the "original" format for energy?

Or is total energy just off by a factor of 10? e.g. It should be 8,88 kWh instead of 88,8 kWh?

LeSpocky commented 1 week ago

Or is total energy just off by a factor of 10? e.g. It should be 8,88 kWh instead of 88,8 kWh?

His SmartHome App Screenshot says 8.73 kWh for the current month. If that's equal to total, then it would be new format with factor 10.

karlbeecken commented 1 week ago

Factor 10 doesn't seem to be exactly right, but maybe good enough. The daily usage is always lagging a bit behind in the app, so the difference between 3.1 kWh in HA and 0.28 kWh in the app could be explained by that. The all-time power is also not excatly off by factor 10, but I don't know how often this is updated in the app.

Screenshot 2024-09-07 at 13-50-53 Settings – Home Assistant IMG_2327 IMG_2328

Wurmi1986 commented 1 week ago

Some Screenshots from "total Energy used"

Midea App: WhatsApp Bild 2024-09-09 um 01 08 19_a033d400 Shelly App: WhatsApp Bild 2024-09-09 um 01 08 53_6bdf0571 Home Assistant: image

iam using a Midea PortaSplit if this is important.

best regards Wurmi

Wurmi1986 commented 1 week ago

if i uncheck the "Use Alternate Energy Format" it´s not correct either. image

mill1000 commented 1 week ago

Alright I can't really find any references for the extra power of 10 but we'll give it a shot

mill1000 commented 5 days ago

Just a thought, would any of you be willing to run msmart-ng download against your device and email me the resulting files?

Wurmi1986 commented 5 days ago

Hi, i will send u the files later when I am on the computer.Best regards Wurmi

LeSpocky commented 5 days ago

Just a thought, would any of you be willing to run msmart-ng download against your device and email me the resulting files?

With a little more instructions where to get this msmart-ng and how to run it against my device, sure.

mill1000 commented 5 days ago

A little info here: https://github.com/mill1000/midea-msmart?tab=readme-ov-file#installing

The command would simply be msmart-ng download <IP_OF_DEVICE>

Wurmi1986 commented 4 days ago

sorry im am new to git, where can i find your email, can u send it to me?

mill1000 commented 1 day ago

You can email me at tuckkern@gmail.com

@LeSpocky I got your email. Thank you. The files you sent appear to be the same as the ones I already had access to. Alas, no new information to gleam from them.