bewee / tuya-adapter

GNU General Public License v3.0
9 stars 8 forks source link

Simplify setup process #28

Open bewee opened 3 years ago

bewee commented 3 years ago

Setting up a new tuya device is pretty painful right now: You need to register for a developer account at tuya in order to get an API key, which you then need to obtain the id and key value of your device using a CLI, which you then have to copy-and-paste into the add-on settings.

Ideally, the add-on should be able to search for tuya devices through the default pairing interface of the gateway. Libs for searching for tuya devices do already exist, e.g. tuya-cli or TinyTuya. This could solve the difficulty of having to use CLI, but it would still require to register for a dev account at tuya, since these tools require an API key. This could of course be solved by delivering the add-on together with an API key, but I am not so sure whether we are allowed to do this.

Any comments appreciated.

LionMike commented 3 years ago

I was able to get the id and key without a developer account with Burp Suite at one time.

bewee commented 3 years ago

Hi @LionMike, Could you please provide some instructions on how to do it this way? Also, feel free to open a PR on the SETUP.md if you like to :)

LionMike commented 3 years ago

It is pretty much the same as @codetheweb Linking a Tuya Device with MITM, except you run Burp Suite through Windows 10. I did some checking and it looks like it no longer works.