jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
867 stars 157 forks source link

tinytuya on VPS #479

Open Dadzzio opened 3 months ago

Dadzzio commented 3 months ago

Hey, i've got a question about using tinytuya on google cloud. Is there any way to make this work on WAN? I mean on VPS im not on my LAN so i can't control my device, but when i paste public ip from raw data it wont work.

jasonacox commented 3 months ago

Hi @Dadzzio ,I'm not aware of any way to use tinytuya in Google Cloud for local-control of your devices. If you plan to use the Tuya Cloud to control your devices, instead of Local Access, you could set it up on a VPS in Google Cloud and it would communicate with the Tuya public cloud to control your devices.

Details on using TinyTuya with the Tuya cloud: https://github.com/jasonacox/tinytuya?tab=readme-ov-file#tuya-cloud-access

Dadzzio commented 3 months ago

Thank you @jasonacox it was very helpful :)