al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.43k stars 619 forks source link

lumi.acpartner.v2 可以通过集成接入,但是无法控制。 #1153

Open yeefanwong opened 1 year ago

yeefanwong commented 1 year ago

Device model / 设备型号

lumi.acpartner.v2

Component version / 插件版本

0.7.9

HA core version / HA版本

2023.6.1

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

lumi.acpartner.v2空调伴侣通过集成用本地方式接入,HA能正常看到空调伴侣的各种状态,但是却控制不了,下面是我尝试设置温度为28度时的log。

Entity attributes / 实体属性

hvac_modes: auto, cool, heat, dry, fan_only, off min_temp: 17 max_temp: 30 target_temp_step: 1 fan_modes: auto, low, medium, high swing_modes: off, vertical current_temperature: 28.6 temperature: 29 fan_mode: high hvac_action: cooling swing_mode: vertical model: lumi.acpartner.v2 lan_ip: 172.16.10.15 mac_address: 7C:49:EB:16:1C:BF entity_class: MiotClimateEntity miot_type: urn:miot-spec-v2:device:air-conditioner:0000A004:lumi-v2:1 air_conditioner.on: true air_conditioner.mode: 1 target_temperature-2-3: 29 fan_control.fan_level: 3 fan_control.vertical_swing: true state_updater: lan icon: mdi:air-conditioner friendly_name: 松下空调 supported_features: 41

Home Assistant Logs / 系统日志

2023-06-09 21:40:26.338 INFO (SyncWorker_2) [custom_components.xiaomi_miot.core.miio2miot] lumi.acpartner.v2: Got miio props for miot: {'power': True, 'mode': 1, 'fan_level': 3, 'vertical_swing': True, 'target_temperature': 29, 'load_power': 765.0} 2023-06-09 21:40:26.342 DEBUG (MainThread) [custom_components.xiaomi_miot.climate] 松下空调(lumi.acpartner.v2): Got new state: {'air_conditioner.on': True, 'air_conditioner.mode': 1, 'target_temperature-2-3': 29.0, 'fan_control.fan_level': 3, 'fan_control.vertical_swing': True, 'state_updater': 'lan'} 2023-06-09 21:40:26.342 DEBUG (MainThread) [custom_components.xiaomi_miot.climate] 松下空调(lumi.acpartner.v2): Got bound state from ['sensor.zhimi_ma2_2863_indoor_temperature']: {'current_temperature': 28.8} _2023-06-09 21:40:26.463 WARNING (SyncWorker_11) [custom_components.xiaomimiot.climate] 松下空调(lumi.acpartner.v2): Set miot property {'did': 'prop.2.3', 'siid': 2, 'piid': 3, 'value': 28} failed: {'code': -32601, 'message': 'Method not found.'} 2023-06-09 21:40:26.465 INFO (SyncWorker_11) [custom_components.xiaomi_miot.climate] 松下空调(lumi.acpartner.v2): Set miot property target_temperature-2-3(28) failed, result: None 2023-06-09 21:40:26.516 INFO (SyncWorker_6) [custom_components.xiaomi_miot.core.miio2miot] lumi.acpartner.v2: Got miio props for miot: {'power': True, 'mode': 1, 'fan_level': 3, 'vertical_swing': True, 'target_temperature': 29, 'load_power': 765.0} 2023-06-09 21:40:26.520 DEBUG (MainThread) [custom_components.xiaomi_miot.climate] 松下空调(lumi.acpartner.v2): Got new state: {'air_conditioner.on': True, 'air_conditioner.mode': 1, 'target_temperature-2-3': 29.0, 'fan_control.fan_level': 3, 'fan_control.vertical_swing': True, 'state_updater': 'lan'} 2023-06-09 21:40:26.520 DEBUG (MainThread) [custom_components.xiaomi_miot.climate] 松下空调(lumi.acpartner.v2): Got bound state from ['sensor.zhimi_ma2_2863_indoor_temperature']: {'current_temperature': 28.8}

al-one commented 1 year ago

lumi.acpartner.v2仅适配了本地读取状态,未适配本地控制,因此请通过自动模式接入该设备。