# \[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:** 21

<div class="post-metadata">

**Author:** ![Jafar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jafar/32/72066_2.png) [@Jafar](https://community.homey.app/u/Jafar)\
**Post date:** [May 26, 2023, 10:34am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/407 "2023-05-26T10:34:49Z")

</div>

Hi !  
Thanks for this app which seems very powerful. I’m facing a very basic issue :

I’m looking to use AVD to create a virtual device to regroup every light in my kitchen and display this device on Apple Home with HomeKit. I’m using Homey as a brain but I prefer Apple Home way of organizing the UI, I’m also using Alexa as a voice assistant which mean I should use some restricted type of device because some of them are not recognized by Alexa.

Lights with on/off button are theoretically ok in Alexa and HomeKit. Before trying to regroup all my lights into one virtual device, I was trying to create an AVD with light type and see if it works in HomeKit.

My main issue is the following :  
When I create AVD with light type, it shows on Homey and HomeKit. But when I’m hitting the switch button on Apple Home \> it turn on on Apple Home and nothing happen on Homey. Same thing when I’m turning it on on homey \> nothing happen on Apple Home / HomeKit.

Am I missing something ?

Device class : Light  
Buttons with on/off button tab.

---

<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:** [May 26, 2023, 11:08am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/408 "2023-05-26T11:08:08Z")

</div>

Show me the device settings?

---

<div class="post-metadata">

**Author:** ![Jafar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jafar/32/72066_2.png) [@Jafar](https://community.homey.app/u/Jafar)\
**Post date:** [May 26, 2023, 11:37am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/409 "2023-05-26T11:37:23Z")

</div>

I think I get it. This value was missing  
 ![Capture d’écran 2023-05-26 à 13.35.11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/86b1efa254cff26775f4e472071f409373adf676.png)  
Was trying to have a fast result to test, I think I’ll need to go deeper in the architecture of your addon because there is so much possibility. Thanks !

---

<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:** [May 26, 2023, 11:43am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/410 "2023-05-26T11:43:48Z")

</div>

> [@Jafar](#):
>
> Was trying to have a fast result to test, I think I’ll need to go deeper in the architecture of your addon because there is so much possibility.

Yes, that checkbox is very important if you want other apps (or services) te recognise the fields as “real” fields yeah!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 30, 2023, 4:14pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/411 "2023-05-30T16:14:14Z")

</div>

I created two AVDs, restarted the Device Capabilities app and now both devices are showing device unavailable.

This on a HP2023 with rc110

 ![IMG_0589](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b3ce92319de0910fb71b683877857696b6cf3e20.jpeg)

Repairing has no effect on the devices.

---

<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:** [May 30, 2023, 4:25pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/412 "2023-05-30T16:25:16Z")

</div>

@OH2TH Are you using reflect?  
Send me a diagnostic?

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 30, 2023, 4:43pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/413 "2023-05-30T16:43:49Z")

</div>

Yes reflecting power from Shelly 3em on one device. Was hoping to reflect all three phases and sum it up to one value.

 ![IMG_0410](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53f9d93f166d46a9a11e3b8fdd1e2a18589c1abc.jpeg)  
 ![IMG_0411](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/9145b0bb175325549945535bfa391a2b3110a479.jpeg)  
 ![IMG_0412](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/87d89cf0fab6ae392847dc4cfcf04baba6d68fcd.jpeg)  
 ![IMG_0413](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fc20d231027d10898782b703f69b4d3a1390ce08.jpeg)  
 ![IMG_0414](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/779e47495643568921d40eb2e72b73cd50e3227a.jpeg)  
 ![IMG_0415](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aa9d597fb1eca7415a44468fdc0f4b4806cd31fa.jpeg)  
 ![IMG_0416](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8d39be57c7a492cc76c5f83d5044f3adc8d7fc9.jpeg)

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 30, 2023, 4:53pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/414 "2023-05-30T16:53:31Z")

</div>

Aah, got it running. It was the other device that I was setting up for reflecting another device for alarm\_xxx states, however the target devices app is broken due to the ble issues, so I have deleted the device.

So when any reflected device is missing, all AVDs become unavailable, even they aren’t reflecting the missing device?

---

<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:** [May 30, 2023, 4:55pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/415 "2023-05-30T16:55:21Z")

</div>

> [@OH2TH](#):
>
> So when any reflected device is missing, all AVDs become unavailable, even they aren’t reflecting the missing device?

Which version of DC have you installed, because this should have been solved in the latest version.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 30, 2023, 4:57pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/416 "2023-05-30T16:57:12Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Which version of DC have you installed

It is 2.11.11

---

<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:** [May 30, 2023, 5:08pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/417 "2023-05-30T17:08:28Z")

</div>

Yeah, it’s resolved in the current test version. 2.13.9

---

<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:** [June 9, 2023, 3:20pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/418 "2023-06-09T15:20:46Z")

</div>

Hi Arie,

This issue is back:

> **[After creating an AVD, the repair screen is empty (pro 2019)](https://bitbucket.org/QlusterIT/nl.qluster-it.devicecapabilities/issues/36/after-creating-an-avd-the-repair-screen-is)**
>
> Pro 2019 v8.1.3
> 
> DC v2.10.19
> 
> Chronograph v1.6.13
> 
> Both web & mobile app
> 
> ‌
> 
> Hi Arie,
> 
> I can’t edit my AVD’s anymore…
> 
> I just created an AVD with several numeric and a bool capability. When I want to edit it, the repair-settings screen shows an...

I’ve updated the Bitbucket issue.

No hurries of course 🤪

---

<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:** [June 13, 2023, 3:02pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/420 "2023-06-13T15:02:27Z")

</div>

It’s in [TEST](https://homey.app/a/nl.qluster-it.DeviceCapabilities/test/) now:  
When creating or editing an AVD, the icon you selected is shown and the dropdown of custom icons now contain the icons.

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

---

<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:** [June 13, 2023, 4:19pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/421 "2023-06-13T16:19:33Z")

</div>

# 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'});`

In test now.

---

<div class="post-metadata">

**Author:** ![Peter\_Kalrsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kalrsson/32/48872_2.png) [@Peter\_Kalrsson](https://community.homey.app/u/Peter_Kalrsson)\
**Post date:** [June 28, 2023, 3:32pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/422 "2023-06-28T15:32:40Z")

</div>

Hi @Arie_J_Godschalk - thanks for all your work 🙂

Question - the Petition - did you get any response from Athom? I guess we’re still stuck with a zero or dash in front of the Device Tile?

Thanks!

---

<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:** [June 28, 2023, 4:26pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/423 "2023-06-28T16:26:09Z")

</div>

> [@Peter\_Kalrsson](#):
>
> Question - the Petition - did you get any response from Athom? I guess we’re still stuck with a zero or dash in front of the Device Tile?

Actually, @Emile did response once, that they might make text capabilities selectable as Status Indicator, resolving this issue in a very nice way.

---

<div class="post-metadata">

**Author:** ![Peter\_Kalrsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kalrsson/32/48872_2.png) [@Peter\_Kalrsson](https://community.homey.app/u/Peter_Kalrsson)\
**Post date:** [June 28, 2023, 7:14pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/424 "2023-06-28T19:14:02Z")

</div>

Thanks @Arie_J_Godschalk - that would be AWESOME! The only thing I really “lack” at the moment.

---

<div class="post-metadata">

**Author:** ![wsu-runner](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wsu-runner](https://community.homey.app/u/wsu-runner)\
**Post date:** [July 5, 2023, 10:05pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/425 "2023-07-05T22:05:22Z")

</div>

Just getting started with AVD and impressed with the possibilities (thanks!) but can’t seem to use the API to set the AVD value.

I’m trying the Device Capabilities card, specifically ‘Execute Expression’ and with the following code:

```auto
await dcApp.apiPost('setvalue', {device:'9961bb2f-8bd5-48db-97c1-30bb900297a4', field:'locked', value:true});

```

where ‘locked’ is the name of a yes/no field, and I get an “Invalid Token: text” error. I’ve also tried setting value to 0 or 1 without success. I’m (obviously) new to coding with Homey and could use some pointers here. Sorry if this is a rudimentary question, I’ve been searching and hacking for the past couple hours and not making progress so I thought I’d reach out for help. Thanks.

---

<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:** [July 5, 2023, 11:07pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/426 "2023-07-05T23:07:53Z")

</div>

Hi WSU,

I guess you should run it as code in a HomeyScript flowcard, which is not explicitly mentioned.

 ![Screenshot from 2023-07-06 01-06-07](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0af81d8f9b696ab59b12873d0f27a7f9b85580f6.png)

It works here when I use the device name

```auto
let dcApp = await Homey.apps.getApp({id:'nl.qluster-it.DeviceCapabilities'});
// API call to set the value of AVD fields
await dcApp.apiPost('setvalue', {
  device:'1_Spotjes Keuken AVD', field:'button1', value:false
});

```

(The button gets set to Off or On position, but the actual lights is not turned off or on)

![Peek 2023-07-06 01-03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/3127b16bb0509fb0d863037cddc365ba508c008a.gif)

---

<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:** [July 6, 2023, 6:14am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/427 "2023-07-06T06:14:12Z")

</div>

Hey,

Why dont you just use the device card to set the value if you are working in a flow?

Each AVD has flowcards to set values. And each AVD also has an Set value to Expression, but that card should just return the value, like a (calculated) true or false in this instance.

The API calls are mostly for use in HomeyScript, other apps, or remote (outside of Homey) setting of values.

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

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