Help implementing Cloud-To-Cloud

Developer Platform features usage and feedback.


Post Reply
fms
Posts: 4

Hi everyone,

We're in the initial steps to create a Cloud-to-Cloud integration.
We're following the "Cloud-to-Cloud Integration Version: 20240614"
document.

However, I think I do not fully understand how to work with this approach.

Our schema is very basic as described in this page:
https://developer.tuya.com/en/docs/iot/ ... f34c54ar7k

That's to say, we have some devices deployed to our customer's
facilities, those devices communicate information to and from our cloud
services, and we want to integrate those devices as "virtual devices" in
Smartlife, so they can receive actions, report status, etc.

We're following "Cloud-To-Cloud integration" document for this, we can add a device
to the Tuya and Smartlife app, but we cannot debug the device ("device not exists").

Can someone help us understand how to do this?

Thank you very much,
Regards

JamesG
Posts: 47

Re: Help implementing Cloud-To-Cloud

Hi,

Is the smartlife you mentioned the Tuya app?

fms
Posts: 4

Re: Help implementing Cloud-To-Cloud

Hi.

We've tryed Tuya app and Smartlife app.

Please note: we are not sure that we're doing the correct process. There are substantial differences between the doc ("Cloud-To-Cloud Integration") and the developer site, it seems that this manual is outdated.

I dont' know if it's relevant, but we cannot add devices with the API either:
https://openapi-ueaz.tuyaus.com/v1.0/io ... 3/register
RESP {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1719585391746, 'tid': 'cfd8f98c355b11efb081b2.....'}

1106 seems to be a generic permission related error bu every step in the doc was double-checked.

Thank you.

JamesG
Posts: 47

Re: Help implementing Cloud-To-Cloud

Hi,

Cloud-to-cloud integration is suitable for your cloud-based program to request Tuya cloud data, while the app is not suitable for this scenario.

You can refer to the documentation at:

https://developer.tuya.com/en/docs/iot/ ... vijvqb3uhn

fms
Posts: 4

Re: Help implementing Cloud-To-Cloud

Hello.
Thank you for your answer.

I've read that document previously and re-read it now at your suggestion; I do fail, however, to understand the correct process.

Can you help me?

We want to provide our users with a "virtual" device or service, that can be added to Tuya and/or Smartlife apps so they can use the status in their scenes, and send perform some actions on the device.

We considered creating a service (similar to a weather service for example) but we need actions (enable, disable, suspend) to control these devices.

The general architecture would be:

[device] <-- prop. protocol --> [OUR CLOUD] <---> [TUYA CLOUD] <---> smarlife

Is this att all possible?

Thank you very much.

JamesG
Posts: 47

Re: Help implementing Cloud-To-Cloud

Hi,

The text you previously sent me is the development documentation for cloud development.

Suitable scenarios are as follows:

your cloude <-> tuya cloude

By this way, your cloud service can access your app user information.

But based on the scenario you described, the following approach would be more suitable :

https://platform.tuya.com/oem/app/custom

This way, you need to develop the panel of your device and add the functions you need on the panel.

fms
Posts: 4

Re: Help implementing Cloud-To-Cloud

Hello.
Thank you very much for your help.

I will try to implement as you suggest.

Best regards,

Post Reply