TuyaAPI / openapi

🚪 a wrapper for Tuya's OpenAPI
https://github.com/TuyaAPI/openapi/blob/master/docs/classes/api.openapi.md
MIT License
20 stars 13 forks source link

Add change Device name method #3

Open julianbei opened 3 years ago

julianbei commented 3 years ago

I wanted to add the "PUT" function for changing a device name. Somehow I always get Error: permission deny. I need to dig deeper into that to find out why.

Might that just be the wrong API to use? The Web UI also throws a lot of weird errors

codetheweb commented 3 years ago

Did you apply for all the permissions in the cloud API auth section?

julianbei commented 3 years ago

At least I tried... I have the feeling that just the user who registered the device can change names... I haven't investigated further. I just wanted a commandline interface that built localtuya configuration out of my linked devices. I built something like that here: https://github.com/julianbei/tuya-discover Its not a CLI yet but works like a charm for my purpose