codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.04k stars 332 forks source link

looking for a PHP alternative #560

Closed vespino closed 2 years ago

vespino commented 2 years ago

I have been able to connect to the Cloud API using PHP which works, but I would like to see if it's possible to control my Tuya devices using PHP locally since I'm not familiar with node or python.

codetheweb commented 2 years ago

I don't know of any PHP ports of TuyAPI so you'd have to write it from scratch yourself. It's probably much easier to learn a little JS or Python. :)

vespino commented 2 years ago

Is it possible to provide me with the required payload for switches and lights so I can look into building an alternative?

codetheweb commented 2 years ago

This is a little outdated but might help you get started.

The best way to figure out the protocol is to look at existing source code.

vespino commented 2 years ago

Thanks, I will look into that.