『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1151|回复: 2

[求助] yeelight屏幕挂灯官方插件接入,调色日志报错

[复制链接]

18

主题

165

帖子

986

积分

高级会员

Rank: 4

积分
986
金钱
821
HASS币
0
发表于 2022-10-17 21:34:15 | 显示全部楼层 |阅读模式
本帖最后由 13860605362 于 2022-10-17 21:35 编辑

Logger: homeassistant.components.websocket_api.http.connection
Source: components/yeelight/light.py:265
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 21:27:03 (11 occurrences)
Last logged: 21:30:44

[140144017334208] Error when calling async_set_default for bulb Yeelight Lamp15 0x1c0fbfe8 at 192.168.31.92: {'code': -5006, 'message': 'illegal request'}
[140144012852432] Error when calling async_set_default for bulb Yeelight Lamp15 0x1c0fbfe8 at 192.168.31.92: {'code': -5006, 'message': 'illegal request'}
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 245, in _async_wrap
    return await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 704, in async_set_default
    await self._bulb.async_set_default()
  File "/usr/local/lib/python3.10/site-packages/yeelight/aio.py", line 38, in wrapper
    cmd = await self.async_send_command(
  File "/usr/local/lib/python3.10/site-packages/yeelight/aio.py", line 96, in async_send_command
    raise BulbException(response["error"])
yeelight.main.BulbException: {'code': -5006, 'message': 'illegal request'}

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 200, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 535, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 802, in async_turn_on
    await self.async_set_default()
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 265, in _async_wrap
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Error when calling async_set_default for bulb Yeelight Lamp15 0x1c0fbfe8 at 192.168.31.92: {'code': -5006, 'message': 'illegal request'}

回复

使用道具 举报

18

主题

165

帖子

986

积分

高级会员

Rank: 4

积分
986
金钱
821
HASS币
0
 楼主| 发表于 2022-10-17 21:36:20 | 显示全部楼层
调色板改颜色左下角提示
调用服务 light/turn_on 失败。 Error when calling async_set_default for bulb Yeelight Lamp15 0x1c0fbfe8 at 192.168.31.92: {'code': -5006, 'message': 'illegal request'}
回复

使用道具 举报

18

主题

165

帖子

986

积分

高级会员

Rank: 4

积分
986
金钱
821
HASS币
0
 楼主| 发表于 2022-10-17 21:37:30 | 显示全部楼层
虽然报错,但是颜色确实改了。。。另外日志里还有其他一些错误,但是运行没有问题。。。这样有关系吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 09:29 , Processed in 0.147528 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表