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

洗衣机无法设置模式 #632

Open
nuomi1 opened this issue Jan 12, 2025 · 0 comments
Open

洗衣机无法设置模式 #632

nuomi1 opened this issue Jan 12, 2025 · 0 comments
Assignees

Comments

@nuomi1
Copy link

nuomi1 commented Jan 12, 2025

Describe the Bug / 描述问题

洗衣机 midjd8.washer.44 无法设置模式 mode_p_2_3

How to Reproduce / 复现步骤

  1. 进入洗衣机设备页
  2. 把【洗衣机 模式】从【智能洗】切换到【混合洗】
  3. 报错

  1. 【洗衣机 睡眠模式】从【取消勾选】切换到【勾选】,正确设置
  2. 【洗衣机 智能推荐模式】从【取消勾选】切换到【勾选】,正确设置,且米家 App 可以实时刷新展示最新状态。反之在米家 App 设置后,洗衣机设备页亦可实时刷新

测试了另外的【洗衣机 烘干级别】、【洗衣机 设定温度】和【洗衣机 脱水转速】均失败,似乎所有的【select】实体都会失败

Expected Behavior / 预期结果

成功设置新模式

Reproduce Time / 问题复现的时间点

2025-01-12 20:50:50

Home Assistant Logs / 系统日志

2025-01-12 12:38:10.012 DEBUG (MainThread) [custom_components.xiaomi_home.miot.miot_cloud] mihome api post, https://ha.api.io.mi.com/app/v2/miotspec/prop/set, {'params': [{'did': '687259458', 'siid': 2, 'piid': 23, 'value': True}]} -> {'code': 0, 'message': 'ok', 'result': [{'did': '687259458', 'iid': '0.2.23', 'siid': 2, 'piid': 23, 'code': 0, 'exe_time': 0}]}
2025-01-12 12:38:10.013 DEBUG (MainThread) [custom_components.xiaomi_home.miot.miot_client] set prop response, 687259458.2.23, True, result, [{'did': '687259458', 'iid': '0.2.23', 'siid': 2, 'piid': 23, 'code': 0, 'exe_time': 0}]

2025-01-12 12:39:14.108 DEBUG (MainThread) [custom_components.xiaomi_home.miot.miot_cloud] mihome api post, https://ha.api.io.mi.com/app/v2/miotspec/prop/set, {'params': [{'did': '687259458', 'siid': 2, 'piid': 3, 'value': 1}]} -> {'code': 0, 'message': 'ok', 'result': [{'did': '687259458', 'iid': '0.2.3', 'siid': 2, 'piid': 3, 'code': -704053100, 'exe_time': 0}]}
2025-01-12 12:39:14.108 DEBUG (MainThread) [custom_components.xiaomi_home.miot.miot_client] set prop response, 687259458.2.3, 1, result, [{'did': '687259458', 'iid': '0.2.3', 'siid': 2, 'piid': 3, 'code': -704053100, 'exe_time': 0}]


日志记录器: homeassistant.components.websocket_api.http.connection
来源: components/websocket_api/commands.py:245
集成: Home Assistant WebSocket API (文档, 问题)
首次出现: 20:47:24 (4 次总计出现)
上次记录: 20:55:42

[139745248008016] Unexpected exception
[139745248230224] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 1090, in set_property_async
await self.miot_device.miot_client.set_prop_async(
did=self.miot_device.did, siid=self.spec.service.iid,
piid=self.spec.iid, value=value)
File "/config/custom_components/xiaomi_home/miot/miot_client.py", line 659, in set_prop_async
raise MIoTClientError(
self.__get_exec_error_with_rc(rc=rc))
custom_components.xiaomi_home.miot.miot_error.MIoTClientError: 执行错误, 设备在当前状态下无法执行此操作

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 188, in async_handle_select_option
await self.async_select_option(option)
File "/config/custom_components/xiaomi_home/select.py", line 89, in async_select_option
await self.set_property_async(
value=self.get_vlist_value(description=option))
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 1094, in set_property_async
raise RuntimeError(
f'{e}, {self.entity_id}, {self.name}') from e
RuntimeError: 执行错误, 设备在当前状态下无法执行此操作, select.midjd8_cn_687259458_44_spin_speed_p_2_7, 洗衣机 脱水转速

Log Timezone / 日志时区

China Time - Beijing

Home Assistant Core Version / Home Assistant Core 版本

2025.1.0

Home Assistant Operation System Version / Home Assistant Operation System 版本

Xiaomi Home Integration Version / 米家集成版本

v0.1.5b1

Additional Context / 其他说明

No response

@SusanPhevos SusanPhevos self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants