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

L900 LED strip error while setting hue values: Returned error_code: TapoError.ERR_PARAMS: Request params error #783

Open
oopiicaa opened this issue Jun 28, 2024 · 12 comments

Comments

@oopiicaa
Copy link

oopiicaa commented Jun 28, 2024

Version of the integration

3.1.2

Configuration

L900
by TP-Link
Firmware: 1.1.0
Hardware: 1.0

Repo downloaded/installed through HACS and configured via UI.

Describe the bug

Haven't used LED strip for a while (about 6 months). Before now it worked fine (no errors as far as I remember). I recently re-enabled the integration and I'm getting Failed to call service light/turn_on. Returned error_code: TapoError.ERR_PARAMS: Request params error while setting hue values for the light through default card for light entity: changing color and temperatures of the LED strip - some colors work okay, others not. I can set blue color without errors for an instance, but setting different white hues don't work. Setting state (on/off), brightness and effect of the LED strip work okay.

image

Debug log


Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:526
First occurred: 07:20:50 (1 occurrences)
Last logged: 07:20:50
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Returned error_code: TapoError.ERR_PARAMS: Request params error

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 626, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/config/custom_components/tapo/light.py", line 127, in async_turn_on
    await self._set_state(
  File "/config/custom_components/tapo/light.py", line 174, in _set_state
    ).get_or_raise()
      ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/common/functional/tri.py", line 159, in get_or_raise
    raise self.value
plugp100.responses.tapo_exception.TapoException: Returned error_code: TapoError.ERR_PARAMS: Request params error

Diagnostics file: config_entry-tapo-19b0e47311008e0f2971a22b813488c7.json

@oopiicaa
Copy link
Author

I believe this is the same as: #783 #758 #736 #727

@mazzone
Copy link

mazzone commented Jun 28, 2024

Confirming I have this issue too.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 28, 2024
@oopiicaa
Copy link
Author

Not stale

@github-actions github-actions bot removed the stale label Jul 29, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Aug 29, 2024
@oopiicaa
Copy link
Author

Not stale

@github-actions github-actions bot removed the stale label Aug 30, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 29, 2024
@oopiicaa
Copy link
Author

Not stale

@github-actions github-actions bot removed the stale label Sep 30, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 31, 2024
@oopiicaa
Copy link
Author

oopiicaa commented Nov 1, 2024

Not stale

@github-actions github-actions bot removed the stale label Nov 1, 2024
@gnicolasb
Copy link

gnicolasb commented Nov 9, 2024

Same problem here. Fixed using oficial hass TPLink integration: https://www.home-assistant.io/integrations/tplink

@Danek309044
Copy link

Danek309044 commented Nov 24, 2024

Hi, the error is probably happening beacuse you are trying to set a white tempeture of the led strip, but if you use other colors it works just fine. I think the only fix has to be to make a diffrent card for just the led strip.

First screenshot is using the oficial integration, that doesn't have the option to set the tempeture.
Second screenshot is using this tapo-p100 integraion, that has the option to set the tempeture but doesn't work.
image
image

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

4 participants