Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TP-Link Tapo S505D cannot disable gradual on/off  #1309

Copy link
Copy link
@Avenred

Description

@Avenred
Issue body actions

Coming from home-assistant/core#131493, it seems like you can't disable the gradual on/off by simply setting the value to 0.

2024-11-24 14:28:25.752 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547238052624] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tplink/entity.py", line 101, in _async_wrap
    await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tplink/number.py", line 106, in async_set_native_value
    await self._feature.set_value(int(value))
  File "/usr/local/lib/python3.12/site-packages/kasa/feature.py", line 265, in set_value
    return await getattr(container, self.attribute_setter)(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smart/smartmodule.py", line 35, in _async_wrap
    await func(self, *args, **kwargs)
  File "/usr/local/lib/python3.12/site-packages/kasa/smart/modules/lighttransition.py", line 185, in set_turn_on_transition
    return await self.call(
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smart/smartmodule.py", line 150, in call
    return await self._device._query_helper(method, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smart/smartdevice.py", line 592, in _query_helper
    res = await self.protocol.query({method: params})
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smartprotocol.py", line 89, in query
    return await self._query(request, retry_count)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smartprotocol.py", line 150, in _query
    raise ex
  File "/usr/local/lib/python3.12/site-packages/kasa/smartprotocol.py", line 94, in _query
    return await self._execute_query(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/kasa/smartprotocol.py", line 281, in _execute_query
    self._handle_response_error_code(response_data, smart_method)
  File "/usr/local/lib/python3.12/site-packages/kasa/smartprotocol.py", line 354, in _handle_response_error_code
    raise DeviceError(msg, error_code=error_code)
kasa.exceptions.DeviceError: Error querying device: 192.168.0.244: PARAMS_ERROR(-1008) for method: set_on_off_gradually_info (error_code=PARAMS_ERROR)
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.