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

邦先生晾衣架M0,灯控不可用,有报错 Failed to perform the action light/turn_on. Invalid result #594

Open
pgu001 opened this issue Jan 7, 2025 · 1 comment

Comments

@pgu001
Copy link

pgu001 commented Jan 7, 2025

Describe the Bug / 描述问题

Failed to perform the action light/turn_on. Invalid result

How to Reproduce / 复现步骤

点击灯实体的开关,即报错

Expected Behavior / 预期结果

灯开关控制成功

Reproduce Time / 问题复现的时间点

2025-01-07 14:48

Home Assistant Logs / 系统日志

Log details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: January 6, 2025 at 9:29:23 PM (2 occurrences)
Last logged: 2:46:10 PM

[546616659104] Unexpected exception
[545985675904] Unexpected 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/light/init.py", line 655, in async_handle_light_off_service
await light.async_turn_off(**filter_turn_off_params(light, params))
File "/config/custom_components/xiaomi_home/light.py", line 313, in async_turn_off
return await self.set_property_async(prop=self._prop_on, value=value_on)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 880, in set_property_async
await self.miot_device.miot_client.set_prop_async(
did=self.miot_device.did, siid=prop.service.iid,
piid=prop.iid, value=value)
File "/config/custom_components/xiaomi_home/miot/miot_client.py", line 626, in set_prop_async
result = await self._miot_lan.set_prop_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
did=did, siid=siid, piid=piid, value=value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_home/miot/miot_lan.py", line 857, in set_prop_async
raise MIoTError('Invalid result', MIoTErrorCode.CODE_INTERNAL_ERROR)
custom_components.xiaomi_home.miot.miot_error.MIoTError: Invalid result

Log Timezone / 日志时区

Asia/Shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025.1.0

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

2024.12.3

Xiaomi Home Integration Version / 米家集成版本

v0.15-pre

Additional Context / 其他说明

@pgu001
Copy link
Author

pgu001 commented Jan 7, 2025

[
home-assistant_2025-01-07T06-52-17.020Z.log.zip
](url)

日志文件

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

1 participant