You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2021. It is now read-only.
My older plugs (KMC) broadcast to port 6666 both from 49155. My new Tuya/Smart Life plugs (Teckin) both broadcast to port 6667 from 49154.
I can get the status and control the older plugs using pytuya, but whenever trying to interact with the newer plugs with python, even retrieving the status I get an error. I'd guess that maybe these new plugs are listening on a port other than 6668, but I don't know which one. I ran a port scan and these new plugs are listening on TCP port 6668, but pytuya cannot communicate with them.
The error output when trying to get the status is:
File "/usr/local/lib/python2.7/dist-packages/pytuya/__init__.py", line 281, in status
data = self._send_receive(payload)
File "/usr/local/lib/python2.7/dist-packages/pytuya/__init__.py", line 179, in _send_receive
data = s.recv(1024)
I've also tried Python3 and it doesn't work any better.