Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

燃气热水器温度显示不正确 #152

Closed
internelp opened this issue Nov 24, 2022 · 4 comments
Closed

燃气热水器温度显示不正确 #152

internelp opened this issue Nov 24, 2022 · 4 comments
Labels
bug Something isn't working compatibility? Maybe not compatible with existing protocols

Comments

@internelp
Copy link

internelp commented Nov 24, 2022

日志

2022-11-24 14:26:19.647 DEBUG (热水器) [custom_components.midea_ac_lan.midea.devices.e3.device] [188016489409955] Received: {'header': 'aa2fe300000000000002', 'body': '1402090000284d00000000000000281c000000000301505411001400000000000000000000', 'message type': '02', 'body type': '14'}
2022-11-24 14:26:19.648 DEBUG (热水器) [custom_components.midea_ac_lan.midea.core.device] [188016489409955] Status update: {'power': True, 'burning_state': False, 'zero_cold_water': False, 'protection': False, 'zero_cold_pulse': True, 'smart_volume': True, 'current_temperature': 40, 'target_temperature': 77}

异常

  • 'current_temperature': 40, 实际为 20°
  • 'target_temperature': 77 实际为 38.5°

HASS 中显示的温度,总是APP 和实际温度的两倍。

设备信息

说明书型号:JSQ25-13HX2

HASS 设备信息:

Gas Water Heater 51100HX2(None)
制造商:Midea

数据

min_temp: 35
max_temp: 65
current_temperature: 40
temperature: 77
target_temp_high: null
target_temp_low: null
power: true
burning_state: false
zero_cold_water: false
protection: false
zero_cold_pulse: true
smart_volume: true
target_temperature: 77
icon: mdi:meter-gas
friendly_name: 热水器
supported_features: 1
@echochenyueyang
Copy link

同样的问题,请问有解决么

@georgezhao2010
Copy link
Owner

别的型号热水器未报过此问题,你能把你的机器的SN发到我邮箱georgezhao75@gmail.com吗,说明一下你是谁,什么问题。

我看看你机器的协议和其它人有何不同。

@georgezhao2010 georgezhao2010 added bug Something isn't working compatibility? Maybe not compatible with existing protocols labels Aug 10, 2023
@georgezhao2010
Copy link
Owner

georgezhao2010 commented Sep 6, 2023

该日志中的消息经用型号51100HX2对应的通用LUA T_0000_E3_11.lua解读如下:

{
  "status": {
    "version": 1,
    "out_water_tem": 40,
    "temperature": 77,
    "water_volume": 0,
    "bathtub_water_level": 0,
    "zero_cold_tem": 0,
    "bath_out_volume": 0,
    "return_water_tem": 40,
    "change_litre": 13,
    "power_level": 0,
    "type_machine": 28,
    "person_tem_one": 80,
    "person_tem_two": 84,
    "person_tem_three": 0,
    "in_water_tem": 20,
    "change_litre_switch": "on",
    "capacity": 1,
    "gas_lift_precent": 0,
    "power": "on",
    "feedback": "off",
    "cold_water": "off",
    "cold_water_master": "off",
    "cold_water_dot": "on",
    "cold_water_ai": "off",
    "cold_water_pressure": "off",
    "bubble": "off",
    "appoint_switch": "on",
    "bathtub": "off",
    "person_mode_one": "off",
    "person_mode_two": "off",
    "person_mode_three": "off",
    "gesture_function": "on",
    "gesture_function_type": 0,
    "safe": "off",
    "mode": "shower",
    "zero_single": 0,
    "zero_timing": 0,
    "zero_dot": 0,
    "error_code": "none"
  }
}

js的plugin中可以找到该型号的定义,

"51100HX2": function() {
	return i({}, d, {
		isHalfTem: !0,
		modeList: [u.kitchen, u.intelTemperature],
		funcList: g(["changeLitre", "gestureFunction"]),
		gestureFunctionList: [{
			name: "关闭",
			value: 5,
			index: 0
		}, {
			name: "厨房洗",
			value: 0,
			index: 1
		}],
		actionNFCName: "开机/关机启动",
		actionNFC: "power",
		configureNFCArr: [{
			name: "开关",
			value: "power",
			index: 0
		}, {
			name: "厨房洗",
			value: "kitchen",
			index: 1
		}]
	})
},

其中 isHalfTem: !0, 该值为真,

在温度设置中,

setTemperature: function() {
    return this.setting.isHalfTem ? parseInt(this.appData.temperature / 2) : this.appData.temperature
},

可见当isHalfTem时应将温度/2处理。

应该通过自定义项解决

georgezhao2010 added a commit that referenced this issue Sep 6, 2023
@georgezhao2010
Copy link
Owner

已于v0.3.21中支持自定义温度项解决

rokam added a commit to midea-lan/midea-local that referenced this issue Jul 28, 2024
copied from `E3`

georgezhao2010/midea_ac_lan#152

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Introduced a new method to customize precision for temperature
settings.
	- Added a property to access the precision half setting easily.
- **Enhancements**
- Improved temperature data processing based on the new precision
setting for better configurability.
- Expanded test coverage with new unit tests for the `MideaX40Device`
class to ensure reliability and functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lucas Mindêllo de Andrade <lucas@mindello.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility? Maybe not compatible with existing protocols
Projects
None yet
Development

No branches or pull requests

3 participants