georgezhao2010 / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
1.37k stars 231 forks source link

C3 - Expand total consumption #450

Open pmp02 opened 7 months ago

pmp02 commented 7 months ago

Device type and model (or SN)

Heat Pump Wi-Fi Controller 171H120F (0) by Midea

The description of new feature

At this moment there is only one field for Energy Consumption, which (appears) to be calculated from multiple values.

self.total_energy_consumption = ( (body[data_offset + 1] << 32) + (body[data_offset + 2] << 16) + (body[data_offset + 3] << 8) + (body[data_offset + 4]))

The Heat Pump app reports the consumption for these categories:

It would be useful to have these values also separate in the integration (at least the 4 values which are summed ?). For me at least it would be useful so I can ignore some false reports of the unit (my unit reports TBH consumption which is false, because I don't have TBH :) ). Not the integration's fault, the the unit's SW fault I guess.

This can be done maybe on a separate branch even, which I can test and try to match those values to what the app reports and see which field is what.

Thanks in advance!