home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.97k stars 31.01k forks source link

Apple Homekit => Home Assistant => WLED #127955

Open pika28 opened 1 month ago

pika28 commented 1 month ago

The problem

Hello.

I hope I'm in the right channel. I'm usually pretty good at finding solutions to problems, but I'm stuck here. I have 3 WLED integrations in HA: 1 single segment and 2 multi segments. The integrations are then propagated to Apple HomeKit with the bridge. The single segment LED strip can be controlled in terms of intensity and color with Siri. Regarding the multi segments, only segment 1 responds. I don't understand why it doesn't work with the others.

In HomeKit, I can see the settings being applied, but it doesn't go back to HA. Any ideas?

Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Interface utilisateur 20241002.2

pika28 commented 1 month ago

I am using Google Translate to express my request to you. Sorry if it is not well formulated.

mib1185 commented 1 month ago

Hi @pika28

We use GitHub for tracking issues with Home Assistant Core itself, not for providing support - you should try our Community Forum or join our Discord chat server.

Thanks! 👍

pika28 commented 1 month ago

Well done! This is what I get.

After verification, the web servers respond to their internet IP and still allow LED control..

Enregistreur: homeassistant.core
Source: core.py:2781
S'est produit pour la première fois: 6 octobre 2024 à 15:27:02 (44 occurrences)
Dernier enregistrement: 12:18:16

Error executing service: <ServiceCall light.turn_on (c:01J9TYZCG1ARB8NJT58KYA559M): entity_id=['light.wled_plafond_segment_1'], params=hs_color=(0.0, 100.0)>
Error executing service: <ServiceCall light.turn_on (c:01J9TYZCG46WKZPN03FHFKEVC4): entity_id=['light.wled_plafond_segment_3'], params=hs_color=(0.0, 100.0)>
Error executing service: <ServiceCall light.turn_on (c:01J9TYZCG7Y4YFFSNY1B8QSM58): entity_id=['light.wled_plafond_segment_2'], params=hs_color=(0.0, 100.0)>
Error executing service: <ServiceCall light.turn_on (c:01J9TYZCG2R403FRCGQW82W82Q): entity_id=['light.wled_niche_segment_2'], params=hs_color=(0.0, 100.0)>
Error executing service: <ServiceCall light.turn_on (c:01J9TYZCG6V5F5RPWDMJ5781P4): entity_id=['light.wled_niche_segment_1'], params=hs_color=(0.0, 100.0)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 26, in handler
    await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/wled/light.py", line 280, in async_turn_on
    await self.coordinator.wled.segment(**data)
  File "/usr/local/lib/python3.12/site-packages/wled/wled.py", line 450, in segment
    await self.request("/json/state", method="POST", data=state)
  File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wled/wled.py", line 201, in request
    raise WLEDError(
wled.exceptions.WLEDError: (503, {'error': 3})

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 628, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 35, in handler
    raise HomeAssistantError("Invalid response from WLED API") from error
homeassistant.exceptions.HomeAssistantError: Invalid response from WLED API
pika28 commented 1 month ago

Hi @pika28

We use GitHub for tracking issues with Home Assistant Core itself, not for providing support - you should try our Community Forum or join our Discord chat server.

Thanks! 👍

I just posted in the discord