Closed Matssa56 closed 3 years ago
@Matssa56 , can you please try PR #213 and tell me if it fixes your problem? Thank you
@Matssa56 , can you please try PR #213 and tell me if it fixes your problem? Thank you
Hi thanks for your help! Not really sure how I can test this out easily. How can I apply this? Need to overwrite my files directly? Btw just found out that my devices loses the connections frequently and gets it back very fast, don't know why. Can't seem to find the log since I rebooted HA since.
I'm getting new errors as well, its seems like the timer that I added for the fake duration isn't taken into account, therefore the status in HA is completly KO and hangs when sending a command (like when I want to close it doesn't stop at the end the counter continues or the command isn't used). For example I close all of my blinds at a certain hour, on all 5 there are 2 that doesn't work that well :S
Exception in _update_handler when dispatching 'localtuya_78034461500291b3977e': ({'1': 'stop', '9': 25, '101': False},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 245, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 185, in status_updated time_diff = time.time() - self._timer_start TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Exception in _update_handler when dispatching 'localtuya_58037028a4cf12cd1cf7': ({'1': 'stop', '9': 20, '101': False},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 245, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 185, in status_updated time_diff = time.time() - self._timer_start TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Exception in _update_handler when dispatching 'localtuya_5803702898f4abbc55f4': ({'1': 'stop', '9': 25, '101': False},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 245, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 185, in status_updated time_diff = time.time() - self._timer_start TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Exception in _update_handler when dispatching 'localtuya_58037028a4cf12cca76c': ({'1': 'stop', '9': 25, '101': False},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 245, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 185, in status_updated time_diff = time.time() - self._timer_start TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Exception in _update_handler when dispatching 'localtuya_58037028d8bfc0534ed5': ({'1': 'stop', '9': 15, '101': False},) Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 245, in _update_handler self.status_updated() File "/config/custom_components/localtuya/cover.py", line 185, in status_updated time_diff = time.time() - self._timer_start TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
I'm also getting these new errors, maybe linked to the dropout connection (when adding through the integration I could find these DPS before).
[580...5f4] Entity light.led_cinquieme_volet_salon is requesting unknown DPS index None
[580...76c] Entity light.led_deuxieme_volet_salon is requesting unset index for option color_mode
[580...76c] Entity light.led_deuxieme_volet_salon is requesting unknown DPS index None
[580...ed5] Entity light.led_premier_volet_salon is requesting unset index for option color_mode
[580...ed5] Entity light.led_premier_volet_salon is requesting unknown DPS index None
For the connection issue,, here is the error that I found:
[780...77e] Connect to 192.168.XX.XXX failed
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 156, in _make_connection
status = await self._interface.status()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 461, in status
status = await self.exchange(STATUS)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 440, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 239, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 498, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
[780...867] Heartbeat failed (), disconnecting
[580...76c] Heartbeat failed (), disconnecting
[580...5f4] Heartbeat failed (), disconnecting
[580...ed5] Heartbeat failed (), disconnecting
[780...77e] Heartbeat failed (), disconnecting
Traceback (most recent call last):
File "/config/custom_components/localtuya/pytuya/__init__.py", line 379, in heartbeat_loop
await self.heartbeat()
File "/config/custom_components/localtuya/pytuya/__init__.py", line 468, in heartbeat
return await self.exchange(HEARTBEAT)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 440, in exchange
msg = await self.dispatcher.wait_for(seqno)
File "/config/custom_components/localtuya/pytuya/__init__.py", line 239, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 498, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
Hey guys the latest update fixed this issue for me 👍
Hi,
I successfuly configured all my covers (9) as well as the LED on them through the integration directly (not via YAML).
When added, the cover commands are all grey, but not the LED. When toggling the LED, the commands become blue and I can use them.
I rebooted my HA instance and same issue, all the commands are grey but not the LED.![Sans titre](https://user-images.githubusercontent.com/16662808/100842341-fe2cc980-3478-11eb-8074-f32974591ce1.png)
In terms of logs, I don't see anything strange:
Here is when I swtich the LED:
I'm using the version 3.1.0 from HACS directly.