# SmartThings and SmartLife

**URL:** <https://community.smartthings.com/t/smartthings-and-smartlife/283617>\
**Category:** Devices & Integrations\
**Created:** [June 26, 2024, 12:14am UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617 "2024-06-26T00:14:51Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![TapioX](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TapioX](https://community.smartthings.com/u/TapioX)\
**Post date:** [June 26, 2024, 2:24pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/21 "2024-06-26T14:24:09Z")

</div>

> [@Paul\_Oliver](#):
>
> When I upload a Rule using the method you show I always get an error. I would assume that is because I am doing something wrong. If it works for you great and let me know the secret.

Short guide here

> [@Mirror temperature sensor to virtual device](https://community.smartthings.com/t/mirror-temperature-sensor-to-virtual-device/256740/21):
>
> Add only action when you add rule using my.smartthings advanced rules

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 2:37pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/22 "2024-06-26T14:37:06Z")

</div>

Thanks, that is likely my problem.

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 2:37pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/23 "2024-06-26T14:37:35Z")

</div>

Yes it will, automatically run

---

<div class="post-metadata">

**Author:** ![Subramanian\_Swaminat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/subramanian_swaminat/32/131385_2.png) [@Subramanian\_Swaminat](https://community.smartthings.com/u/Subramanian_Swaminat)\
**Post date:** [June 26, 2024, 5:55pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/24 "2024-06-26T17:55:27Z")

</div>

I tried adding a VD in Tuya developer platform but it doesn’t appear in ST. Am I missing something?

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/1/9/19fc26a3468e01c492b5a54c2d20687a88b8c2ad.png)

---

<div class="post-metadata">

**Author:** ![Andreas\_Roedl](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andreas_roedl/32/209616_2.png) [@Andreas\_Roedl](https://community.smartthings.com/u/Andreas_Roedl)\
**Post date:** [June 26, 2024, 5:56pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/25 "2024-06-26T17:56:54Z")

</div>

See the button “link app account”?

---

<div class="post-metadata">

**Author:** ![Subramanian\_Swaminat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/subramanian_swaminat/32/131385_2.png) [@Subramanian\_Swaminat](https://community.smartthings.com/u/Subramanian_Swaminat)\
**Post date:** [June 26, 2024, 5:58pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/26 "2024-06-26T17:58:44Z")

</div>

It’s disabled

---

<div class="post-metadata">

**Author:** ![Andreas\_Roedl](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andreas_roedl/32/209616_2.png) [@Andreas\_Roedl](https://community.smartthings.com/u/Andreas_Roedl)\
**Post date:** [June 26, 2024, 6:01pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/27 "2024-06-26T18:01:07Z")

</div>

> **[Manage Virtual Devices-Tuya Developer Platform-Tuya Developer](https://developer.tuya.com/en/docs/iot/manage-virtual-devices?id=Ka4725tiyfhg0)**
>
> Virtual devices help you to perform cloud development without an actual sma......

And create several different devices like plugs, sensors, even bulbs. Only a few could show up in ST. It’s trial and error.

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 6:31pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/28 "2024-06-26T18:31:25Z")

</div>

Like any Tuya device you need to open the device tile and check for 3rd party integrations. If ST is not listed, delete the device and keep trying until you find 1 with an ST integration.

Try the following one under Power Strips. It will give you 5 virtual devices that show up in ST.

 ![Screenshot_20240626-142827](https://global.discourse-cdn.com/smartthings/original/3X/e/3/e31fd94a71b92a7881884aec702d2062e7c7e26a.png)

---

<div class="post-metadata">

**Author:** ![Subramanian\_Swaminat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/subramanian_swaminat/32/131385_2.png) [@Subramanian\_Swaminat](https://community.smartthings.com/u/Subramanian_Swaminat)\
**Post date:** [June 26, 2024, 6:45pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/29 "2024-06-26T18:45:09Z")

</div>

When you say open a tile, where exactly?

Just to mention the steps I tried,

1. Created a project
2. Created an asset
3. I tried adding the Brazilian strip and am still not able to link app as per this screenshot. I am using tuya smart and not smart life - not sure if this makes a difference.

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/4/a/4ac97a13f8eefe5a00abb14973fbc08a2b614c32.png)

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 7:12pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/30 "2024-06-26T19:12:01Z")

</div>

This works with the Tuya, SmartLife and other Tuya based apps

You are doing something different than me. I have a half dozen Tuya virtual devices that work, but my device list (shown in your screen shot) is blank.

Steps that I follow: cloud, open project, devices, add devices, add virtual device, select the device I want, add virtual device, add to Tuya app account, scan the QR code with the Tuya mobile app. And the device shows up in the Tuya app. Them in ST I go to linked services and choose SmartLife to refresh the list in ST. They show up in no room assigned.

---

<div class="post-metadata">

**Author:** ![Subramanian\_Swaminat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/subramanian_swaminat/32/131385_2.png) [@Subramanian\_Swaminat](https://community.smartthings.com/u/Subramanian_Swaminat)\
**Post date:** [June 26, 2024, 7:14pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/31 "2024-06-26T19:14:49Z")

</div>

Thanks for your help on this Paul. All done now. I can see the VD in the Tuya app and ST app. In electrical, I had to choose the first one which says UK plug…and it saved as a plug in the Tuya app.

One thing I noticed is, if I on or off this in Tuya, it reflects in ST so could I not write a scene in Tuya for ‘If gas detected, then turn on this switch’ rather than using refresh rules in ST or sharptools?

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 7:19pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/32 "2024-06-26T19:19:01Z")

</div>

If you virtual Tuya switch updates in ST you are good to go. No refresh rule is needed. The problem is that most of the Tuya virtual devices don’t update in ST, so you found a good one.

Remember you can only use each Tuya virtual device once.

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 7:24pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/33 "2024-06-26T19:24:45Z")

</div>

FYI. The Brazilian Plug Strip also updates in ST if you need any additional virtual Tuya switches

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 8:35pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/34 "2024-06-26T20:35:52Z")

</div>

Thank you @Johnnybegoode and @TapioX with your help I am able to create API rules using the Advanced Web App.

---

<div class="post-metadata">

**Author:** ![Johnnybegoode](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/johnnybegoode/32/172925_2.png) [@Johnnybegoode](https://community.smartthings.com/u/Johnnybegoode)\
**Post date:** [June 26, 2024, 8:38pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/35 "2024-06-26T20:38:14Z")

</div>

Just for interest, what do you think of this function within the web UI?

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 26, 2024, 8:49pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/36 "2024-06-26T20:49:45Z")

</div>

I like it. I can find a similar rule, copy the code and past it into a new rule and make the needed changes. In addition I can do quick edits to existing rules. I should be able to do a lot of this on my android tablet with firing up my old Laptop.

I am not a Coder, so I depend on copying a similar rule and they make minor changes.

What I really like is have one spot to find all my Routines, API Rules, and Smart lighting Recipes.

---

<div class="post-metadata">

**Author:** ![Johnnybegoode](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/johnnybegoode/32/172925_2.png) [@Johnnybegoode](https://community.smartthings.com/u/Johnnybegoode)\
**Post date:** [June 26, 2024, 9:00pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/37 "2024-06-26T21:00:03Z")

</div>

I’m with you there, and find the ‘Logic View’ interesting to see the rule’s operation.  
Seems to me there might be a possibility of further development there, in that view, bringing rules more into the mainstream. Useful that deleted devices are shown as ‘Unnamed’, and can be traced, which has always been a difficulty.  
Seems that you can’t use the 100 character naming which is interesting if you want to use a descriptive title and don’t see any reason for that.

---

<div class="post-metadata">

**Author:** ![szchren](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@szchren](https://community.smartthings.com/u/szchren)\
**Post date:** [June 26, 2024, 10:23pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/38 "2024-06-26T22:23:29Z")

</div>

Thanks for note. Yes, ST is working as intended and it correctly shows the status of each switch in the ST app. The only issue is the naming of the devices.

![~WRD0000.jpg](https://global.discourse-cdn.com/smartthings/original/3X/6/e/6ef143cfa530dbb3f0759b2df27dffa38f5a10cc.jpeg)

---

<div class="post-metadata">

**Author:** ![Subramanian\_Swaminat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/subramanian_swaminat/32/131385_2.png) [@Subramanian\_Swaminat](https://community.smartthings.com/u/Subramanian_Swaminat)\
**Post date:** [June 28, 2024, 6:54pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/39 "2024-06-28T18:54:41Z")

</div>

This is the refresh rule I wrote within the square bracket and it is working fine. How do I know if this code ran? I mean, is there a place to see the log?

{  
“every”: {  
“interval”: {  
“value”: {  
“integer”: 5  
},  
“unit”: “Minute”  
},  
“actions”: [  
{  
“command”: {  
“devices”: [  
“5566ff90-a22a-4337-a81d-deb7c36a9761”  
],  
“commands”: [  
{  
“component”: “main”,  
“capability”: “refresh”,  
“command”: “refresh”  
}  
]  
}  
}  
]  
}  
}

---

<div class="post-metadata">

**Author:** ![Paul\_Oliver](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/paul_oliver/32/195152_2.png) [@Paul\_Oliver](https://community.smartthings.com/u/Paul_Oliver)\
**Post date:** [June 28, 2024, 8:49pm UTC](https://community.smartthings.com/t/smartthings-and-smartlife/283617/40 "2024-06-28T20:49:32Z")

</div>

> [@Subramanian\_Swaminat](#):
>
> How do I know if this code ran? I mean, is there a place to see the log?

I don’t know. Maybe @TapioX or @orangebucket has some insight

[Previous page](https://community.smartthings.com/t/smartthings-and-smartlife/283617.md?page=1)

[Next page](https://community.smartthings.com/t/smartthings-and-smartlife/283617.md?page=3)
