Skip to content

Commit 06b6f84

Browse files
committed
Update calculation of IndoorCapillaryTemperature
Thanks to ginkage/MHI-AC-Ctrl-ESPHome#159
1 parent bc33592 commit 06b6f84

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

esphome/components/MhiAcCtrl/MHI-AC-CTRL-operation-data.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ namespace operation_data {
102102
this->last_value * 0.327f - 11.4f) // only rough approximation
103103

104104
/// a.k.a THI-R2
105-
DEFINE_OPERATION_DATA_CLASS(IndoorCapillaryTemperature, 0x40, 0x81, uint8_t, uint8_t,
105+
///
106+
/// Value uses renewed calculation of 2025-07-08, calculation needs to be confirmed.
107+
/// Calculation from https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/pull/159
108+
/// Also see https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/issues/145#issuecomment-3078841631
109+
DEFINE_OPERATION_DATA_CLASS(IndoorCapillaryTemperature, 0x40, 0x81, uint8_t, float,
106110
mosi_frame[DB9] == 0x81 && (mosi_frame[DB6] & 0x80) == 0 && (mosi_frame[DB10] & 0x30) == 0x10,
107111
mosi_frame[DB11],
108-
this->last_value) // formula for calculation not known
112+
0.275f * this->last_value - 47.0f)
109113

110114
/// a.k.a THI-R3
111115
DEFINE_OPERATION_DATA_CLASS(IndoorSuctionHeaderTemperature, 0xc0, 0x87, uint8_t, float,

esphome/example.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ sensor:
170170
# Calculation marked as 'to be confirmed' in mhi-ac-ctrl
171171
compressor_frequency:
172172
name: ${device_name} compressor frequency
173+
# See https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/issues/145#issuecomment-3078841631
174+
indoor_capillary_temperature:
175+
name: ${device_name} indoor capillary temperature
173176

174177
# These two are marked as only a rough apprximation in mhi-ac-ctrl
175178
indoor_u_bend_temperature:
@@ -178,8 +181,6 @@ sensor:
178181
name: ${device_name} indoor suction header temperature
179182

180183
# Formula for calculation not known for the following sensors:
181-
indoor_capillary_temperature:
182-
name: ${device_name} indoor capillary temperature
183184
outdoor_heat_exchanger_temperature_1:
184185
name: ${device_name} outdoor heat exchanger temperature 1
185186
compressor_discharge_pipe_super_heat_temperature:

0 commit comments

Comments
 (0)