Closed LucaLovagnini closed 3 weeks ago
This library is designed to work best over the local network.
You have provided an IP address on your local private network, as you should. However, by default, Lambda (or any cloud service, for that matter) cannot access this device on your local private network.
There are ways to get around this, but they are either insecure (opening the device to the internet) or quite involved (VPNs).
Are you sure that cloud is the best choice for your project? This kind of project usually sits best on a Raspberry Pi that's on the same local private network.
I'm trying to run the
tapo_p100.py
example on an AWS Lambda (the local version works with my account and device) with the following code:However it fails due to tiemout:
Again, this works correctly if ran (with a classic main) on my computer.