tuyapi icon indicating copy to clipboard operation
tuyapi copied to clipboard

No "Smart Home Devices Management in Service API

Open richibrics opened this issue 3 years ago • 9 comments

Hi I followed all the steps to create a new project and subscribe to "Smart Home Devices Management"but I can't find it in the list of available services. I also searched, I "Device Connection Service" but I could not find anything.

Is it possible that Tuya IOT renamed the API service ?

richibrics avatar Oct 27 '21 09:10 richibrics

https://github.com/codetheweb/tuyapi/issues/516 might help.

Happy to accept a PR if the documentation needs to be updated. :)

codetheweb avatar Oct 27 '21 19:10 codetheweb

It appears that now the APIs have been reorganized and IOT core is the service to subscribe

lionhe1966 avatar Oct 30 '21 16:10 lionhe1966

I subscribed to IoT core but when I query my device ID, it still returns "access denied" and doesn't grab the local keys.

bobloadmire avatar Nov 01 '21 15:11 bobloadmire

+1

cconde avatar Nov 03 '21 11:11 cconde

I got it to work!

I accepted the 'default APIs' in the screen (accept service options instead of skip), i got:

IoT Core Authorization Smart Home Scene Linkage IoT Data Analytics

This happens in step 2 of "Linking a Tuya device with Smart Link" (of course I selected the wrong datacenter, so I had to redo the project). I didn't do step 3. And then went to "Listing Tuya devices from the Tuya Smart or Smart Life apps"

The 'virtual ID' (needed by "tuya-cli wizard") can be found in the device 'info' screen, it is a hex string with some non-hex letters at the end.

rsnel avatar Nov 13 '21 22:11 rsnel

The IoT Core also works for me. But the trial version is just for 30 days? After the trial period, it is supposed to cost 5,000 USD per year?

ALaSDos avatar Nov 16 '21 11:11 ALaSDos

You only need the IoT Core service to get the keys. Afterwards you can revoke the api, and (for my usecase: localtuya) stuff will keep working.

rsnel avatar Nov 17 '21 06:11 rsnel

@rsnel of course I also selected the wrong data center. But you can actually edit your project and select a new datacenter location (or even additional ones). No need to recreate the project!

otherguy avatar Nov 18 '21 00:11 otherguy

I got it to work!

I accepted the 'default APIs' in the screen (accept service options instead of skip), i got:

IoT Core Authorization Smart Home Scene Linkage IoT Data Analytics

This happens in step 2 of "Linking a Tuya device with Smart Link" (of course I selected the wrong datacenter, so I had to redo the project). I didn't do step 3. And then went to "Listing Tuya devices from the Tuya Smart or Smart Life apps"

The 'virtual ID' (needed by "tuya-cli wizard") can be found in the device 'info' screen, it is a hex string with some non-hex letters at the end.

https://github.com/codetheweb/tuyapi/pull/553

UsefulVid avatar Dec 12 '21 18:12 UsefulVid