# \[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator

**URL:** <https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198>\
**Category:** Apps\
**Tags:** app, tools, virtual-device, device-capabilities, avd\
**Created:** [August 30, 2022, 7:24pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198 "2022-08-30T19:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [September 3, 2022, 3:57pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/7 "2022-09-03T15:57:49Z")

</div>

# Homey’s random mood status indicator for mobile app

Inspired by **[this idea](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/258)** by Arie, I extended it a bit, and it became

_You could f.i. use this as “who feeds the cat” indicator, by replacing the moods with names, and run the flow every x hours._  
.

#### - This is the device setting, I used the tag option This is needed to be able to display the moods (text / string value) as Status indicator:

> **Screenshot (click me)**
>
> ![Screenshot_20220903-172408_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bba73119371a353d7d5c764bf4d5b72abadf8a99.jpeg)

#### - In App config, I copied the 'random' function from Arie:

> **Screenshot**
>
> ![Screenshot_20220903-173119_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a4ef7bad0358b2595d2ec5739785e7c697a5f31f.jpeg)

#### - Code for copy/paste:

```auto
function (arr) { 
return arr[Math.floor(Math.random () * Math.floor(arr.length))] 
}

```

#### - Flow:

> **Screenshot**
>
> ![Screenshot_20220903-174220_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18177d1ef6aef3d2ff40130085931a276b626cae.jpeg)

#### - The tag is from "Textfield 1" and can be found with the devicename in Logics:

> **Screenshot**
>
> ![Screenshot_20220903-175236_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6a9cc68e7d79874cc6c7ad5673c0d0abbc62ac27.jpeg)

#### - Device tile:

 ![Screenshot_20220903-175718_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/b/9b822356d908e6a397f712d32b5390b24d871992.jpeg)  
.  
 ![Screenshot_20220903-175615_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/be6330607fcc0254d78d81b14459961d84474d87.jpeg)  
.  
 ![Screenshot_20220903-175443_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/02025536a2a13af4954ae9874ca03152991dc8be.jpeg)

.

#### OK, here's the cat thing:

#### - Flow:

> **Screenshot**
>
> ![Screenshot_20220903-213834_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8e21234bdf2409eb7f3589862ef3ca2619d187a.jpeg)

#### - Device tile:

 ![Screenshot_20220903-212614_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6faf9f0482ffdae0c03bcc8751ced7066fd31b18.jpeg)  
.  
 ![Screenshot_20220903-212448_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e93cfb5c4e1248fd28d3c6f796d5d98c53b1d760.jpeg)

---

_[View the full topic](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198)._
