Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

socket.timeout: timed out #72

Description

@MrBuushy

Error:
line 4, in
data = d.status()
File "C:\Users\Diaboli Sica\AppData\Local\Programs\Python\Python37\lib\site-packages\pytuya_init_.py", line 279, in status
data = self.send_receive(payload)
File "C:\Users\Diaboli Sica\AppData\Local\Programs\Python\Python37\lib\site-packages\pytuya_init
.py", line 175, in _send_receive
s.connect((self.address, self.port))
socket.timeout: timed out

Code:
import pytuya

d = pytuya.OutletDevice('xxxxx', 'xxxxx', 'xxxxx')
data = d.status()

Questions:

  1. Is there any way to use ethernet instead of wifi?
  2. When using wifi, does the light bulb have to be near to the pc?
  3. Can I have my phone near the light and let my pc control the light over the internet using the phone as a connector?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions