rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.91k stars 557 forks source link

Local tuya stopped working possibly after latest system update. #1001

Open KendallStauffer opened 2 years ago

KendallStauffer commented 2 years ago

Here is what I am seeing let me know what else I can do to help troubleshoot! rror doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 868, in _read_readydata_received self._protocol.data_received(data) File "/config/custom_components/localtuya/pytuya/init.py", line 412, in data_received self.dispatcher.add_data(data) File "/config/custom_components/localtuya/pytuya/init.py", line 286, in add_data self._dispatch(TuyaMessage(seqno, cmd, retcode, payload, crc)) File "/config/custom_components/localtuya/pytuya/init.py", line 306, in _dispatch self.listener(msg) File "/config/custom_components/localtuya/pytuya/init.py", line 372, in _status_update decoded_message = self._decode_payload(msg.payload) File "/config/custom_components/localtuya/pytuya/init.py", line 588, in _decode_payload return json.loads(payload) File "/usr/local/lib/python3.10/json/init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

KendallStauffer commented 2 years ago

Also seeing this [702...103] Connect to 192.168.3.91 failed Traceback (most recent call last): File "/config/custom_components/localtuya/common.py", line 160, in _make_connection self._interface = await pytuya.connect( File "/config/customcomponents/localtuya/pytuya/init.py", line 669, in connect , protocol = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionResetError: [Errno 104] Connect call failed ('192.168.3.24', 6668)

KendallStauffer commented 2 years ago

Update. I rolled back to version 8.1 and it seems to be working now.

matteoopc commented 2 years ago

Update. I rolled back to version 8.1 and it seems to be working now.

I have the same problem as you, how did you downgrade?

KendallStauffer commented 2 years ago

Its more than one step but under Settings-> system-> backups find snd older backup and restore it. I then had to update the local tuya from hacks again, which I did and it seems to work so far, but has only been about 5 hours so far. I am using 8.1 but 8.2 might work as well.

After I did all this I had to play with it for a while but eventually seems to work ok.

Kendall Stauffer

On Aug 30, 2022, at 8:02 AM, matteoopc @.***> wrote:



Update. I rolled back to version 8.1 and it seems to be working now.

I have the same problem as you, how did you downgrade?

— Reply to this email directly, view it on GitHub https://github.com/rospogrigio/localtuya/issues/1001#issuecomment-1231570371, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ2HBAZR7UVEA3NEWEGTYTV3XZ4RANCNFSM6AAAAAAQAA6IU4 . You are receiving this because you authored the thread.Message ID: @.***>