Hej, mam duże problemy z integracją LocalTuya z przełącznikiem takim jak tu (Tuya inteligentny przełącznik WiFi przełącznik 220V ESP8285 Iot z/bez neutralnego przekaźnika inteligentny dom światło bezprzewodowe przełącznik działa Alexa Google Home|Moduły automatyki domowej| - AliExpress). Sama konfiguracja przebiegła bez problemu, ale włacznik działa powiedzmy w 8/10 przypadków. Często wyświetlany jest jako “niedostępny” przez to np. nie gasi mi się światło gdy powinno.
W logach widać niestety mase błędów:
Logger: custom_components.localtuya.common
Source: custom_components/localtuya/common.py:216
Integration: LocalTuya integration (documentation, issues)
First occurred: 3 października 2022 09:24:22 (70 occurrences)
Last logged: 09:53:23
[400...a49] Connect to 192.168.0.232 failed
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 202, in _make_connection
status = await self._interface.status()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 507, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 486, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 259, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 216, in _make_connection
await self._interface.reset(self._default_reset_dpids)
AttributeError: 'NoneType' object has no attribute 'reset'
lub
Logger: custom_components.localtuya.common
Source: custom_components/localtuya/pytuya/__init__.py:259
Integration: LocalTuya integration (documentation, issues)
First occurred: 3 października 2022 09:39:35 (33 occurrences)
Last logged: 09:37:49
[400...a49] Failed to set DP 1 to False
[400...a49] Connect to 192.168.0.232 failed
[400...a49] Failed to set DP 1 to True
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 316, in set_dp
await self._interface.set_dp(state, dp_index)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 553, in set_dp
return await self.exchange(SET, {str(dp_index): value})
File "/config/custom_components/localtuya/pytuya/__init__.py", line 486, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 259, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
Czy ktoś miał podobne problemy?