# Get device Name from the device (Tuya) in an advanced flow

**URL:** <https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429>\
**Category:** Questions & Help\
**Tags:** homey-pro, advancedflow\
**Created:** [October 23, 2025, 8:03am UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429 "2025-10-23T08:03:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerard\_Westerdijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard_westerdijk/32/87090_2.png) [@Gerard\_Westerdijk](https://community.homey.app/u/Gerard_Westerdijk)\
**Post date:** [October 23, 2025, 8:03am UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/1 "2025-10-23T08:03:06Z")

</div>

Is it possible to retreive the name of the device in an advanced flow?  
It is about a Tuya device and I want to send a message if it is turned off.

I have tried a script (made by ChatGPT), but I cannot get it to work.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 23, 2025, 12:51pm UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/2 "2025-10-23T12:51:15Z")

</div>

In other words: you like a condition which states if that device is on or off?

If so, you can add an ‘And’ logic card `[value] is equal to Yes`, and add the tag from the Tuya device.

 ![Screenshot_20251023_144217_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ceddb40665a68fc07e0d178ab1e870275b608fc4.jpeg)  
 ![Screenshot_20251023_144339_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/b/6b8ccc5df12d72926019790ce11922ecac4ecf14.jpeg)  
 ![Screenshot_20251023_144748_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/ea089b3946ac46bfe9637163822f23af36812721.jpeg)

---

<div class="post-metadata">

**Author:** ![Gerard\_Westerdijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard_westerdijk/32/87090_2.png) [@Gerard\_Westerdijk](https://community.homey.app/u/Gerard_Westerdijk)\
**Post date:** [October 23, 2025, 6:02pm UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/3 "2025-10-23T18:02:28Z")

</div>

Thank you.  
I am looking for the device.Name  
If I add a device to Tuya (and give it a name) and then add it to Homey, it gets the given name.

In my flow I want to use that name, but cannot retreive it.  
If I can get the device.name, I can use it for more purposes; now I have to do it manually with a extra tag.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/deaa164eb2ae8b9295dc9dbfe5a81c903b412d5c.png)  
I want to get the M-3… name

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 23, 2025, 10:05pm UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/4 "2025-10-23T22:05:58Z")

</div>

Hi Gerard,

I clearly don’t get your use case, can you give an example of what you trying to achieve?  
Which card or event should provide for the device.name?

---

<div class="post-metadata">

**Author:** ![Gerard\_Westerdijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard_westerdijk/32/87090_2.png) [@Gerard\_Westerdijk](https://community.homey.app/u/Gerard_Westerdijk)\
**Post date:** [November 6, 2025, 8:16am UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/5 "2025-11-06T08:16:40Z")

</div>

Hello,

Thanks for the reply.

I want to get the name of the device in the advanced flow (and store it as a variable) so I can copy the flow for (a lot) more machines without entering the devicename every time.

But I think it isn’t possible with (unknown) Tuya devices.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [November 6, 2025, 11:45am UTC](https://community.homey.app/t/get-device-name-from-the-device-tuya-in-an-advanced-flow/144429/6 "2025-11-06T11:45:13Z")

</div>

Maybe you can use the capability watcher card from the [Device Capabilities](https://homey.app/en-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/) app.

 ![DC Watch Card](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18d7dd4a3363600e48a7ba499858166fdbf1304d.png)

It returns a number of tags, including the device name. You can use it to watch the on/off state of your switch.
