absalom-muc / MHI-AC-Ctrl

Reads and writes data (e.g. power, mode, fan status etc.) from/to a Mitsubishi Heavy Industries (MHI) air conditioner (AC) via SPI controlled by MQTT
MIT License
270 stars 61 forks source link

Added energy used in kWH #136

Closed glsf91 closed 1 year ago

glsf91 commented 1 year ago

Hi

I discovered the { 0xc0, 0x94} is used for retrieving the used energy in kWh. So I changed the code to add this. See pull request #135 . It is based on v2.7R1 There will be a new topic 'OpData/KWH' for this. Important: This item is counting the kWh from the point where the AC is powered On (for example On/Off on the RC). When you power off the AC, it will keep the last value when the AC was on. When you power on the AC again, the counter will start from 0 again. The resolution will be increments in 0.25 kWh. This is the same behavior as when using the MHI APP en WF-RAC module.

I also noticed when using high power (Watt) for a longer time there is a difference between this counter and using a separate energy meter. With low power it is more accurate. Same as with the MHI App. But for people without a energy monitor, this can be usefull.

I'm powering of the AC every day. So I could not test what happens if the counter will reach > 64kWh. I expect the high byte (MOSI_frame[DB12]) will be increased with 1 for every additional 64 kWh.

Is there somebody who is using the AC 24 hours a day and test the pull request? Especially attention is needed when the energy will reach > 64kWh. It should just increase from 64 to 64.25 kWh and further. Please report back.

Edit: it is already merged in Master.

kARTechnology commented 1 year ago

What model is your ac? mine doesn't give any reply about this field.

glsf91 commented 1 year ago

What model is your ac? mine doesn't give any reply about this field.

mhi srk35zs-w

glsf91 commented 1 year ago

Especially attention is needed when the energy will reach > 64kWh. It should just increase from 64 to 64.25 kWh and further.

This is indeed working (reporting from someone).