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

lumi.acpartner.mcn04 在添加设备后可用 但操作一次后就不可用 #486

Closed
BrontByte opened this issue Mar 24, 2022 · 6 comments
Closed

Comments

@BrontByte
Copy link

BrontByte commented Mar 24, 2022

添加后第一次操作可用,之后就进入到不可用状态,重新更新设备列表后再次可操作一次
2022-03-24 23:14:23 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: Unable to discover the device 192.168.xxx.xxx, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}}, max_properties: 7/4
2022-03-24 23:15:27 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: {'code': -9999, 'message': 'user ack timeout'}, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}, 'indicator_light': {'siid': 9, 'piid': 1}, 'indicator_light.effective_time': {'siid': 9, 'piid': 2}, 'ac_function.set_ele_info': {'siid': 8, 'piid': 1}, 'ac_function.brand_id': {'siid': 8, 'piid': 2}, 'ac_function.remote_id': {'siid': 8, 'piid': 3}, 'ac_function.ac_mode': {'siid': 8, 'piid': 4}, 'ac_function.ac_type': {'siid': 8, 'piid': 5}, 'ac_function.ac_ctrl_range': {'siid': 8, 'piid': 6}, 'ac_function.ac_state': {'siid': 8, 'piid': 7}, 'ac_function.quick_cool_enable': {'siid': 8, 'piid': 8}, 'ac_function.quick_cool_time': {'siid': 8, 'piid': 9}, 'ac_function.quick_cool_status': {'siid': 8, 'piid': 10}, 'ac_function.sleep_cfg': {'siid': 8, 'piid': 11}, 'ac_function.sleep_status': {'siid': 8, 'piid': 12}, 'power_consumption': {'siid': 7, 'piid': 1}, 'electric_power-7-2': {'siid': 7, 'piid': 2}, 'power_consumption-7-3': {'siid': 7, 'piid': 3}, 'electric_power-7-4': {'siid': 7, 'piid': 4}, 'fan_control.fan_level': {'siid': 4, 'piid': 2}, 'fan_control.vertical_swing': {'siid': 4, 'piid': 4}}, max_properties: 7/24

我搜索到了 #191 但文中的链接已更新 无法使用

@al-one
Copy link
Owner

al-one commented Mar 25, 2022

我也有一个相同信号的空调伴侣,正常工作。你可以尝试在米家重新绑定该设备,如果还是不可用,请通过下面的自定义属性排除一些不重要的miot服务/属性:

# configuration.yaml
xiaomi_miot:
  device_customizes:
    lumi.acpartner.mcn04:
      exclude_miot_services: ac_function

@al-one
Copy link
Owner

al-one commented Mar 30, 2022

请问是添加自定义属性后可用了吗?

@BrontByte
Copy link
Author

请问是添加自定义属性后可用了吗?

否,问题依旧,使用了另一个小米集成替代了⊙﹏⊙

@moll33er
Copy link

moll33er commented May 9, 2022

添加后第一次操作可用,之后就进入到不可用状态,重新更新设备列表后再次可操作一次

2022-03-24 23:14:23 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: Unable to discover the device 192.168.xxx.xxx, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}}, max_properties: 7/4
2022-03-24 23:15:27 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: {'code': -9999, 'message': 'user ack timeout'}, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}, 'indicator_light': {'siid': 9, 'piid': 1}, 'indicator_light.effective_time': {'siid': 9, 'piid': 2}, 'ac_function.set_ele_info': {'siid': 8, 'piid': 1}, 'ac_function.brand_id': {'siid': 8, 'piid': 2}, 'ac_function.remote_id': {'siid': 8, 'piid': 3}, 'ac_function.ac_mode': {'siid': 8, 'piid': 4}, 'ac_function.ac_type': {'siid': 8, 'piid': 5}, 'ac_function.ac_ctrl_range': {'siid': 8, 'piid': 6}, 'ac_function.ac_state': {'siid': 8, 'piid': 7}, 'ac_function.quick_cool_enable': {'siid': 8, 'piid': 8}, 'ac_function.quick_cool_time': {'siid': 8, 'piid': 9}, 'ac_function.quick_cool_status': {'siid': 8, 'piid': 10}, 'ac_function.sleep_cfg': {'siid': 8, 'piid': 11}, 'ac_function.sleep_status': {'siid': 8, 'piid': 12}, 'power_consumption': {'siid': 7, 'piid': 1}, 'electric_power-7-2': {'siid': 7, 'piid': 2}, 'power_consumption-7-3': {'siid': 7, 'piid': 3}, 'electric_power-7-4': {'siid': 7, 'piid': 4}, 'fan_control.fan_level': {'siid': 4, 'piid': 2}, 'fan_control.vertical_swing': {'siid': 4, 'piid': 4}}, max_properties: 7/24

我搜索到了 #191 但文中的链接已更新 无法使用

# configuration.yaml
xiaomi_miot:
  device_customizes:
    lumi.acpartner.mcn04:
      auto_cloud: true
      interval_seconds: 60
      chunk_properties: 5
      main_miot_services: environment

configuration.yaml文件里添加这段重启就行,同样是米家空调伴侣pro

@al-one
Copy link
Owner

al-one commented May 9, 2022

main_miot_services建议改为air_conditioner

@sunxidong9999
Copy link

sunxidong9999 commented Jan 8, 2023

添加后第一次操作可用,之后就进入到不可用状态,重新更新设备列表后再次可操作一次

2022-03-24 23:14:23 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: Unable to discover the device 192.168.xxx.xxx, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}}, max_properties: 7/4
2022-03-24 23:15:27 ERROR (MainThread) [custom_components.xiaomi_miot.climate] 米家空调伴侣(lumi.acpartner.mcn04): Got MiioException while fetching the state: {'code': -9999, 'message': 'user ack timeout'}, mapping: {'air_conditioner.on': {'siid': 3, 'piid': 1}, 'air_conditioner.mode': {'siid': 3, 'piid': 2}, 'air_conditioner.fault': {'siid': 3, 'piid': 3}, 'target_temperature-3-4': {'siid': 3, 'piid': 4}, 'indicator_light': {'siid': 9, 'piid': 1}, 'indicator_light.effective_time': {'siid': 9, 'piid': 2}, 'ac_function.set_ele_info': {'siid': 8, 'piid': 1}, 'ac_function.brand_id': {'siid': 8, 'piid': 2}, 'ac_function.remote_id': {'siid': 8, 'piid': 3}, 'ac_function.ac_mode': {'siid': 8, 'piid': 4}, 'ac_function.ac_type': {'siid': 8, 'piid': 5}, 'ac_function.ac_ctrl_range': {'siid': 8, 'piid': 6}, 'ac_function.ac_state': {'siid': 8, 'piid': 7}, 'ac_function.quick_cool_enable': {'siid': 8, 'piid': 8}, 'ac_function.quick_cool_time': {'siid': 8, 'piid': 9}, 'ac_function.quick_cool_status': {'siid': 8, 'piid': 10}, 'ac_function.sleep_cfg': {'siid': 8, 'piid': 11}, 'ac_function.sleep_status': {'siid': 8, 'piid': 12}, 'power_consumption': {'siid': 7, 'piid': 1}, 'electric_power-7-2': {'siid': 7, 'piid': 2}, 'power_consumption-7-3': {'siid': 7, 'piid': 3}, 'electric_power-7-4': {'siid': 7, 'piid': 4}, 'fan_control.fan_level': {'siid': 4, 'piid': 2}, 'fan_control.vertical_swing': {'siid': 4, 'piid': 4}}, max_properties: 7/24

我搜索到了 #191 但文中的链接已更新 无法使用

# configuration.yaml
xiaomi_miot:
  device_customizes:
    lumi.acpartner.mcn04:
      auto_cloud: true
      interval_seconds: 60
      chunk_properties: 5
      main_miot_services: environment

configuration.yaml文件里添加这段重启就行,同样是米家空调伴侣pro

遇到相同的问题,在configuration.yaml文件里添加这段后重启,可以通过云端控制了,本地还是不可以。还没找到原因,日志里也没有任何相关的信息。你那里添加这段后本地控制可用吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants