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

Unexpected exception when adding Calex contact sensor #208

Open
smithbill17 opened this issue Dec 2, 2020 · 1 comment
Open

Unexpected exception when adding Calex contact sensor #208

smithbill17 opened this issue Dec 2, 2020 · 1 comment

Comments

@smithbill17
Copy link

When I try to manually add a Calex contact sensor device (automatic detection doesn't find it even though its in SmartLife and working and the device is Tuya capable), i get this exception error:

Logger: custom_components.localtuya.config_flow
Source: custom_components/localtuya/pytuya/__init__.py:626
Integration: LocalTuya integration (documentation, issues)
First occurred: 12:42:51 (1 occurrences)
Last logged: 12:42:51

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/localtuya/config_flow.py", line 260, in async_step_basic_info
    self.dps_strings = await validate_input(self.hass, user_input)
  File "/config/custom_components/localtuya/config_flow.py", line 166, in validate_input
    interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 626, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
    return await fut
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.8.xxx', 6668)
@ultratoto14
Copy link
Collaborator

The sensors are not yet supported in this integration, only the devices that supports full time connections. The sensors as, contact or PIR only connects to wifi when value changes and so the integration is not able to connect to them.

SKULSHADY pushed a commit to SKULSHADY/localtuya that referenced this issue Dec 28, 2024
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