Erreur avec l'intégration yeelight

Mon problème

bonjour a tous,

J’ai deux yeelight parfaitement reconnues par l’integration Yeelight.
Après les avoir integrées à mon dashboard j’ai deux comportement étranges.

L’une d’elle est parfaitement pilotable, ON/OFF, changement de température et de couleur ok, reactif sur le dashboard. Mais a chaque action j’ai un message d’erreur qui apparait et le log donne

Logger: homeassistant.components.websocket_api.http.connection
Source: components/yeelight/light.py:265
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 13:19:48 (1 occurrences)
Last logged: 13:19:48

[281472031412032] Error when calling async_set_default for bulb Yeelight Color 0x7e10610 at 192.168.0.13: {'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 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1808, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 726, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 572, 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 Color 0x7e10610 at 192.168.0.13: {'code': -5006, 'message': 'illegal request'}

Pour la deuxième,
On peut allumer et eteindre mais a chaque action elle apparait sur le dashboard en « indisponible » avec un point d’interogation; puis revient au bout de quelques secondes.
Meme comportement pour tout autre action, et surtout aucune réaction de l’ampoule.

le log :

Logger: homeassistant.core
Source: components/yeelight/light.py:265
First occurred: 13:29:57 (1 occurrences)
Last logged: 13:29:57

Error executing service: <ServiceCall light.turn_on (c:01GVWXHM9EKM1XHC8GYWDYQHFN): entity_id=['light.yeelight_color_0x7e3f01a'], params=>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/yeelight/aio.py", line 749, in async_start_music
    reader, writer = await asyncio.wait_for(
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/yeelight/aio.py", line 759, in async_start_music
    reader, writer = await asyncio.wait_for(
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

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

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 601, in _async_set_music_mode
    await bulb.async_start_music()
  File "/usr/local/lib/python3.10/site-packages/yeelight/aio.py", line 765, in async_start_music
    raise BulbException(
yeelight.main.BulbException: Timed out enabling music mode on the bulb at 192.168.0.55:55443.

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1826, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 726, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 572, 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 791, in async_turn_on
    await self.async_set_music_mode(True)
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 592, in async_set_music_mode
    await self._async_set_music_mode(music_mode)
  File "/usr/src/homeassistant/homeassistant/components/yeelight/light.py", line 265, in _async_wrap
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Error when calling _async_set_music_mode for bulb Yeelight Color 0x7e3f01a at 192.168.0.55: Timed out enabling music mode on the bulb at 192.168.0.55:55443.

Screenshot 2023-03-19 at 13-17-39 Eclairages – Home Assistant

J’en ai deux autres que je n’ai pas testées…

Merci pour vos lumières! (sans mauvais jeux de mots…)

Ma configuration


System Information

version core-2023.3.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 5.15.90
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4976
Installed Version 1.31.0
Stage running
Available Repositories 1313
Downloaded Repositories 9
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.03.1
agent_version 1.4.1
docker_version 20.10.22
disk_total 27.9 GB
disk_used 5.6 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.6.1), File editor (5.5.0), TasmoAdmin (0.23.0), Studio Code Server (5.5.4), Mosquitto broker (6.1.3), Node-RED (14.0.4), InfluxDB (4.5.0)
Dashboards
dashboards 2
resources 3
views 2
mode storage
Recorder
oldest_recorder_run 12 mars 2023 à 10:24
current_recorder_run 18 mars 2023 à 14:58
estimated_db_size 182.30 MiB
database_engine sqlite
database_version 3.38.5
Sonoff
version 3.4.0 (5406fa7)
cloud_online 0 / 2
local_online 2 / 2

Hello

avec tes message d’erreur , j’ai trouve ceci sur le git

1 « J'aime »

ok
Merci pour le lien.
J’ai décoché l’option « enregistrer l’etat lors d’un changement » et plus d’erreur…
Merci a toi.

Quesion subsidiaire, ces ampoules ont des « listes » prédéfinies de « mode ». Elle n’apparraissent pas sur la carte; savez vous comment les faire apparaitre?

Elles sont bien présente dans le menu "objet"pourtant…

Merci!