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

C510W status not synced and cannot control light correctly (light functions are swapped on->off, off->on) #852

Closed
sogehige opened this issue Feb 1, 2025 · 3 comments

Comments

@sogehige
Copy link

sogehige commented Feb 1, 2025

Description

If I trigged floodlights from dashboard then on/off gets swapped.

Reproduction Steps

  1. Set timed floodlights on

Image

  1. After 5 minutes light will go off as expected, but status is still set as 'on'
  2. Then functionality of light.turn_off and light.turn_on is swapped

Expected behavior

I would expect to sync status seems like if I do any changes directly on tapo it is not being synced back to HA.

If applicable, add error logs.

No response

Device Firmware

1.3.1 Build 241111 Rel.29618n

Integration Version

6.0.9

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Docker on RPi

Search for similar issues

Yes

Additional information

No response

@sogehige
Copy link
Author

sogehige commented Feb 1, 2025

I think it used to work but now I don't get even updated motion detection (when it ends)

@sogehige
Copy link
Author

sogehige commented Feb 1, 2025

2025-02-01 21:32:01.304 ERROR (MainThread) [custom_components.tapo_control] Unexpected error fetching Tapo resource status data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 280, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo_control/__init__.py", line 485, in async_update_data
    await syncTime(hass, entry.entry_id)
  File "/config/custom_components/tapo_control/utils.py", line 1512, in syncTime
    await device_mgmt.SetSystemDateAndTime(time_params)
  File "/usr/local/lib/python3.13/site-packages/zeep/proxy.py", line 64, in __call__
    return await self._proxy._binding.send_async(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/zeep/wsdl/bindings/soap.py", line 164, in send_async
    return self.process_reply(client, operation_obj, response)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zeep/wsdl/bindings/soap.py", line 391, in process_error
    raise Fault(
    ...<5 lines>...
    )
zeep.exceptions.Fault: error time

@sogehige
Copy link
Author

sogehige commented Feb 1, 2025

I removed and added it back without time sync and it seems like it is working now.

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

2 participants