# \[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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [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/1 "2022-08-30T19:24:40Z")

</div>

- If you have questions about the App Device Capabilities or seek help with an Flow or with the Flow Exchanger, please see the [Device Capabilities Topic](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287).

- **If you have questions about the Advanced Virtual Device or seek help with the Exchanger File, please see the [Advanced Virtual Devices Topic](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198).**  
**This topic!**

- If you want to post a AVD as a Template for others to use, please post it on [Share Your Device! - Advanced Virtual Devices](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676).

- If you want to post a Flow(s) as a Template for others to use, please post it on [The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981).

## Thanks!

* * *

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bdc4842bcfcc19bbb3407f7244f67c263922f479.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/895c62633e99452c3808f31e722d903a3e207c50.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/c/cc5605876c9966bcfb52f2c1b2a8a348aedf7058.png)

If you also want a status text on your device tile, please continue reading!

* * *

**[Device Capabilities 2.0 App voor Homey | Homey](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/)**  
**It’s live!**

This Addendum to [Device Capabilities (Forum topic)](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/) is for explanation on, and examples, for the newly created free fully customisable virtual device.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6a89be9eebdedbbcc15ae46702b63eecfe2b2873.png)

Fully Customisable **Advanced Virtual Device** with Unique **Text Status Indicator** for Device Tile.

**You yourself can completely customise these virtual devices, the way you want!**

Also allows for the creation of Insights for capabilities of existing devices that have no insights.  
  
  
  
To explain how far this goes and how this works, i will create a Livingroom Device, which i will configure to accommodate multiple devices in my livingroom.

I will be using the Web App for this example and Advanced Flows, but neither are needed.

**Because of the length of this article, i placed the texts inside summaries, click on them to open to open.**

# Living Room Example

## Create a device

> **Summary**
>
> Goto create a device, then select Device Capabilities, then Virtual Device (the name is up for suggestions and could be changed).  
> A list with one device will be shown (allthough you can create more if you wish, one by one).  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/c/ac28ff81b561a44536ae0ff9b217c3f6f4849421.png)  
> Click continue.
> 
> Next you can select a icon from the list, or you can upload your own icon.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5cd371a059619d924ba82b980a514356275748ae.png)  
> After that, click continue.  
> The device will now have been created and you can change the name to Living Room.  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/951daddcb40aa257ff4e8db7737257a3af2d0a82.png)

## Enter the Device Settings

> **Summary**
>
> Because there are a lott of Device Settings, i’m gonna do this step by step.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/666c6899ea3d77c6a26a7c2a5207f48fa04b29aa.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3dbaa1de47fb55ef4515f09d36075ddd0fc8ebe1.png)
> 
> **The status field is unique, and can be used as a textual (and number) status on the device tile in the Web/Mobile App.**
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/a/9a859300d556b380bce9411b3e1be07a75542b57.png)
> 
> I am gonna turn button 1 into an indicator. That means that the device tile in the Web/Mobile App will be light/dark based on that buttonvalue.  
> **You remove a field by removing its name.**
> 
> Only button 1 can be a hidden button, so i will first use other buttons, until i know what i will use it for.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f1a1818220867c1cc11bc24bc65e6faaf7c42c7d.png)
> 
> After removing all fields and pressing save, my device looks empty:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/f/8f9560b43c7774384f074a88a9023d5d50a6ad16.png)

### Create Media Buttons

> **Summary**
>
> Firstly, i want my media to show on this device, firstly from my sonos, but we can later overrule that to also show TV info.  
> We first need a few buttons for this:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/611a96daf0553e3f8ab323af34413e3c7e495d18.png)

### Create a Flow

> **Summary**
>
> Now we need a flow to handle this virtual device.  
> We need to setup the status and reactions to the music buttons.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cbe4d127c3231c99b7803bf5a1f2a942a809a3ae.png)
> 
> - Because the Playing button can be false or true, we need to check the value (waarde)
> 
> After this, the playing button on the LivingRoom device can be used to start the music, and it will also show it if music is playing or not.
> 
> Next up we need to react to the previous and next button being pushed.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/62e21230acec9aa52d17262de3bae5578ab2ecc7.png)
> 
> - No need here to check for the value, it will always be true

### Textfields

> **Summary**
>
> Next i would also like to Add the Artist, Album and Track.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0a27ba4a014518516c8e9d76f5f39225bad8ac3d.png)
> 
> And we need the flow for it:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/0/8063ff38957a9b04be5714a05f3f1c83e8b61c77.png)

### Volume

> **Summary**
>
> First we add a Volume to the settings.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/fe049fb1d31cd76cf14da5830079b69475891434.png)
> 
> And then we write the next flow.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e4504e8077b02b2781272b0fe6c25486495fdcb3.png)
> 
> **And, tada, we are done with the Media!**
> 
> Lets now add the four Curtains that we have in our livingroom to this same device.

## Four Curtains

> **Summary**
>
> Again we go into the device settings to add four number fields:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/1/5176532224e91231b1f6042f972261b061ef8036.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/b/0bca5fc528695229635a3f30c5267c37525c5844.png)
> 
> And for those we need flows, two ways.  
> First a reaction to us change the slider in the Living Room device:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e4e7658f0caf2c030519b26d3f46efd99e1c890a.png)
> 
> Then we need to update its status:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c50d7c827c9564144b8a6c4ec3b42d937c1574fb.png)
> 
> And now we have, within this one device, my music and my curtains from the livingroom in one device 🙂
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e0128f1509fb0175bfb81b2339b95e65dba76878.jpeg)

## Custom Buttons

> **Summary**
>
> Lets continue with Buttons for the TV and Xbox.  
> First we define the buttons in the device settings:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36535bb1277334e6b4140fe292cc21a634f431e9.png)
> 
> This gives us two on-off buttons on the small button tab, next to each other, so we see tham al at once.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/837e99f1c60834b7e7e8ec6689f90cb15abf85de.png).
> 
> We could actually do the exact same thing with the Yes/No fields, when set to Button
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/be31c925bcf45152922a3a77609c70e4772d8df2.png)  
> Would result in:  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db75c9a279e6366ad4f9ae084df8b4d8fde7b4eb.png)
> 
> But back to the Buttons, lets add a flow for the TV first:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1ac9f60709d38768341ca5993fa855bb4cddf153.png)
> 
> And next for the xbox:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e1e2d959acc71e805cd40cf5bacec0aeb83c6960.png)
> 
> And the final result us now:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee77dc3a84b9b28d9bd432a649f7affd851e1c20.png)  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db11367efeee31aaca851ea644572ae2c0015d2c.png)  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40200a11e520907044c85e186f2643a58b8a2b90.png)

## One Main Curtain Button

> **Summary**
>
> Now i want **one** button for all my curtains, which should be a light button when one is open, and dark when all are closed.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf59f81e97594080acd446b83a6654159378a91f.png)
> 
> Will result in:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/b/7bbde5221e3c5c27771570adbabbbc6ee7ced527.png)
> 
> And now for the flows.  
> First a flow, that when i push the button, i want them to all close/open:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee79dcbc47c44a1b291743214859c05c44a52cba.png)

## Setting and Using Functions

> **Summary**
>
> And now for the button status to be set.  
> But for this we first add a function in **App** settings.  
> We go to the bottom, fill in `average` and press add function:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0fa05ce410c562352f4caa7ba23463511a39b629.png)  
> Then we scroll down and press on edit, and fill in the function:
> 
> ```auto
> function () {
> var sum = 0.00;
> for( var i = 0; i < arguments.length; i++ ){
> sum += parseFloat( arguments[i], 10 );
> }
> return sum/arguments.length;
> }
> 
> ```
> 
> _Please note that you don’t give the function a name in the codefield, but in the namefield._
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7ebcc57455fe8f8e7f50c2914a0c24f10404bbf9.png)
> 
> No we go back to the flow for the curtains.  
> For this we use a Set field to Expression card:  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/878edf5dc83202eafb4de348a635ad40a4c05898.png)
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee47a19719f3f905bd76522b0e93ed9c414b8ddf.png)  
> And here we use the average function from the App Settings.  
> All the number tags are **not** from the flowcards (because only one trigger triggers the flow), but the tags from the curtain-devices.
> 
> And once again, tada! We can now close all curtains in the Living room with one button, next to the tv button 🙂

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f016e3cab302568b075d9062626f209a1dedd90f.png)

`let dcApp = await Homey.apps.getApp({id:'nl.qluster-it.DeviceCapabilities'});`

# Added an API call to set the **value** of AVD fields:

`await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'number1', value:21});`

`await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'measure_devicecapabilities_number-custom_1.number1', value:22});`

`await dcApp.apiPost('setvalue', {device:'c34dc5b4-3c30-48a9-8a4e-014aea93d00d', field:'measure_power', value:501});`

# Added an API call to set the **name** of AVD fields:

`await dcApp.apiPost('setfieldname', {device:'Day-Amount', field:'number1', name:'Day-More'});`

`await dcApp.apiPost('setfieldname', {device:'Day-Amount', field:'measure_devicecapabilities_number-custom_1.number1', name:'Day-More'});`

`await dcApp.apiPost('setfieldname', {device:'c34dc5b4-3c30-48a9-8a4e-014aea93d00d', field:'measure_power', name:'Day-More'});`

To be continued.

If you would like to add an example, please feel free to do so.

### Apps:

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/2):
>
> Apps developed or maintained by me: [Advanced Triggers](https://community.homey.app/t/app-pro-advanced-triggers-trigger-and-action-cards-with-eventname-for-advanced-flows/65651) , [BeNext](https://community.homey.app/t/app-pro-benext-benext-devices-for-homey/76104) , [Better Logic](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568) , [Chronograph](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214) , [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) , [Advanced Virtual Device](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) , [FTP Client](https://community.homey.app/t/app-pro-ftp-client/70876) , [Google Services](https://community.homey.app/t/google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257) , [Homesh Controller](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [Homesh Satellite](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [JSON Handler and Manipulator](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317) , [LOQED](https://community.homey.app/t/app-pro-loqed-your-personal-doorman/89816) , [Music Url Converter](https://community.homey.app/t/music-url-converter-play-music-urls-on-homey-bigger-then-900-kb/43546) , [Simple Log](https://community.homey.app/t/simple-log-app/146) , [Universal Media Player](https://community.homey.app/t/universal-media-player-a-generic-storages-place-for-your-homey-speakers-tvs-or-other-media-devices/43450) and [Virtual Devices](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723) . [Goto profile of Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663) for more …

### Donations or Sponsorship

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/3):
>
> Donations or Sponsorship. You can help with the development, maintenance and support for the Apps, by donating or becoming a sponsor. This would be much appreciated! The more donations i receive, the more time i can make free for development and support. slight_smileDonations can be done through: [[PP] PayPal](https://paypal.me/QlusterIT) Requires a PayPal account. [[GS] Github Sponsors](https://github.com/sponsors/XeroxQ) Allowes for CreditCard. Sponsorships can be done through: [[P] Patreon](https://www.patreon.com/QlusterIT/membership) Requires a Patreon account. [[GS] Github Sponsors](https://github.com/sponsors/XeroxQ) …

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [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/2 "2022-08-30T19:24:55Z")

</div>

# How to request a custom picker?

Goto the topic for it: [Request custom picker for Advanced Virtual Devices from the Device Capabilities App - Homey Community Forum](https://community.homey.app/t/request-custom-picker-for-advanced-virtual-devices-from-the-device-capabilities-app/79440/3)

**You can now create your own custom lists in the App Settings and select them in the AVD.**

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [August 30, 2022, 7:25pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/3 "2022-08-30T19:25:00Z")

</div>

[Reserved 2]

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [August 30, 2022, 7:25pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/4 "2022-08-30T19:25:05Z")

</div>

Wiki

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [September 2, 2022, 8:44am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/5 "2022-09-02T08:44:41Z")

</div>

Hi Arie, I closed my private and business Paypal accounts for good reason. But still I would like to contribute. Do you have another way to support you? I am in NL so a pm with an IBAN does miracles for this case 😉

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 2, 2022, 9:04am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/6 "2022-09-02T09:04:00Z")

</div>

Many Thanks Roger for your gracious gift!

---

<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)

---

<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, 8:31pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/8 "2022-09-03T20:31:10Z")

</div>

# Show the time on a device tile (afaik this was not possible before).

#### - Flow

> **Screenshot (click me)**
>
> ![Screenshot_20220904-130739_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a48c11a1a5b83a0eba35ce52add750dbfef529bf.jpeg)

#### - The [time] tag can be found with 'Date & time'

> **Screenshot**
>
> ![Screenshot from 2022-09-03 22-26-58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21c3a2757dd0aa994ca17001e3ee33ad9a12090d.png)

.

- Device tile

> ![Screenshot_20220903-221743_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/dad5503f559b05a1aaa0d2091f1e6b6083f26b72.jpeg)

- Web app:

> ![Screenshot from 2022-09-03 22-36-01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/8/383a157cadd904ed16a1196b1948d3ea1fc1f9c6.png)

### Check this one too, with the date and without a leading zero:

[https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/31?u=peter\_kawa](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/31)

---

<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 5, 2022, 2:40pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/9 "2022-09-05T14:40:02Z")

</div>

## - Dummy power consuming device -

_When you want the used power of a hardwired boiler, ac unit or whatever, to be present in Homey_

1. First, create a Logics numeric variable (this way you can adjust the value quite easy); Enter `0` as value.  

2. Add a Device Capabilities virtual device, (optional: and pick an appropriate device icon)

- Settings:  
 ![Screenshot_20220905-143046_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7a344ba179d0960a1892aff049027f401aefde4b.jpeg)  
.  
 ![Screenshot_20220905-153524_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c5ea63beba4d564f53f895e390b12b8c64ce100.jpeg)

1. Create a simple flow (it’s only needed to set the value)

1. Change the variable value to, say, 1800:  

2. The device tile now should look like this:  

3. When you like the power value to appear in Energy tab, use this (hardcoded) field

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [September 5, 2022, 2:59pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/10 "2022-09-05T14:59:36Z")

</div>

I am a diabetic and have built a min/max temperature display especially for my insulin. It helps me a lot because insulin is not allowed to leave a certain temperature range. But the whole thing works with any temperature.  
Here is the example of the outside temperature:

The min/max values are provided by a variable. When the temperature changes, a flow with greater/smaller than compares the current temperature with the number stored in the variable. If the value is greater or less than the variable value, the respective variable is updated.  
The variables are reset to 0 at 0:00 in order to always have the current value of the day.

![Screenshot_20220905-164638_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c3053d9e964293e9bc774e3e8de768da279056a.jpeg)

 ![Screenshot_20220905-164600_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d7465f93290e2d01c2d58149d1b041f9203d6829.jpeg)

Insulin:

 ![Screenshot_20220905-165728_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/6/a62368da6996206a2ad3610459910cd36928f2ba.jpeg)

---

<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 5, 2022, 11:59pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/11 "2022-09-05T23:59:54Z")

</div>

# Monitor (an) app(s) memory usage

This app now can check any app/system/weather/logic insights,  
 so with this example flow we can check a memory value, and send alerts,  
and optionally disable of restart an app which is memory hungry

_The [Number] tag is a local variable_

 ![Screenshot from 2022-09-06 01-11-30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/5/657ab2dd25aa2201cea90a7cd593ea69fb0e2ac9.png)

#### Optional: you can add an Advanced virtual device, to display the used memory value.

##### Device settings

 ![Screenshot from 2022-09-06 01-49-58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/ab0ffeaaba283a15deebc7e8ecde42377a99d81f.png)

##### Device tile:

 ![Screenshot_20220906-015126_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/4787be6a5b1e557e0c0960b8c05d7e143c07a001.jpeg)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 7, 2022, 9:20am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/12 "2022-09-07T09:20:21Z")

</div>

> [@Peter\_Kawa](#):
>
> When you like the power value to appear in Energy tab, use this (hardcoded) field

Actually, @Peter_Kawa , perhaps do it like this, at least, when the power\_usage could be dynamic (could it be off for instance?)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b65e3ebda5d2725df1daf0729e83ad45e3707b2.png)

This will make sure that you really have a measure\_power that is detected by Homey:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8737bdd37aafd998bfa7d2addb6e7d11e41e93d.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e1aba167ae82e5d94331326136b0e5694a6d187a.jpeg)

Now you can dynamicly set the power usage value just through the Flowcards:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09857227adcb69abc8df86a2bb9feb9de3671716.png)

---

<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 7, 2022, 1:21pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/13 "2022-09-07T13:21:26Z")

</div>

That’s what I was looking for Arie! But I didn’t know how😬

---

<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 7, 2022, 1:31pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/14 "2022-09-07T13:31:54Z")

</div>

### Now it's possible to change Device Name as well!

This can be achieved by installing the [H.O.O.P. app v1.4.5](https://store.homey.community/app/nl.qluster-it.HOOP)  
_That’s it, the flow card to set the device name is now available_.

- With Advanced flow:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=D1Sln01HbPI)

- Standard Flow

---

<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 7, 2022, 10:33pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/15 "2022-09-07T22:33:50Z")

</div>

# Practical example, a thermostat device which also shows the room temperature

The default thermostat device, only shows the target temperature:

 ![Screenshot from 2022-09-08 00-31-21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e516cb1b86f959b37d9fbe446a5bf0d033ddf54f.png)

But now, with use of the updated [H.O.O.P. app](https://store.homey.community/app/nl.qluster-it.HOOP), we can show the room temperature as well, by alternating the device name for the temperature tag.

This can be done with the _original device!_

![Peek 2022-09-08 00-12](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/049ab782826b9ac5f3a8999fcd408532131f0bfc.gif)  
(_right click and open in new tab for big screen view_)

.

### - Similar example for window coverings position -

![Peek 2022-09-08 01-09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/92eb3e834e1fee08032d6045f17a50e5b173d34a.gif)  
(_right click and open in new tab for big screen view_)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 8, 2022, 7:51am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/16 "2022-09-08T07:51:13Z")

</div>

Also an option: Show the percentage in the Device Tile.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/896b37dc961454fcfd6df4884d7e08a6abf06943.png)

But, you can still set the Dark/Light of the Tile based on Open or Closed, and have the button react to it.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9decd6be93d9bb5031c1b223fd9e51e22a2d0e7e.png)

---

<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 8, 2022, 12:22pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/17 "2022-09-08T12:22:16Z")

</div>

True, but then you’ll have to add a new AVdevice and make it control (a) curtain(s) as well ?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 8, 2022, 12:27pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/18 "2022-09-08T12:27:40Z")

</div>

Indeed, just in some case can it been usefull, for instance, when you have a living room device showing all curtains.  
Just wanted to let you know you could use percentages als in the units 😉

---

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

</div>

So, using “Show as: sensor”, makes it display _0.45_ automatically as _45_?

- **EDIT** Just tested: No it doesn’t

B/c I still use this to convert it to %

> ![Screenshot_20220908-163644_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/04a61e85343a5604b78dc3c57823cda08fe2d069.jpeg)

.

> [@Arie\_J\_Godschalk](#):
>
> in some case can it been usefull, for instance, when you have a living room device showing all curtains.  
> Just wanted to let you know you could use percentages als in the units 😉

Thanks, so it’s nice to have a choice now:

1. _H.O.O.P._ to display a value quickly on a tile
2. _Device Capabilities_: Create a virtual device which does and shows everything (if possible) you want.

---

<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 8, 2022, 4:32pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/20 "2022-09-08T16:32:07Z")

</div>

> [@Peter\_Kawa](#):
>
> ## Monitor (an) app(s) memory usage
> 
> This app now can check any app/system/weather/logic insights,  
> so with this example flow we can check a memory value, and send alerts,  
> and optionally disable of restart an app which is memory hungry
> 
> _The [Number] tag is a local variable_

## I created a Homey memory and average load monitor as well:

 ![Screenshot from 2022-09-08 01-23-54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0a5da0f30e3f583b566259cb60a0589b22256b05.png)

.  
Last night I was fiddling a bit too much, and Homey got unreachable. That means, _too busy to care for the wifi connection_

Looking in Insights, Homey’s memory was **over 400MB** , and system load **over 10**.  
Well, when that’s the case, Homey is allowed to be restarted automatically!

[Next page](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198.md?page=2)
