# \[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices

**URL:** <https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287>\
**Category:** Apps\
**Tags:** flow, virtual-device, homey-pro, device-capabilities, avd\
**Created:** [February 19, 2021, 8:20am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287 "2021-02-19T08:20:51Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [August 30, 2022, 9:21pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/285 "2022-08-30T21:21:33Z")

</div>

Doesn’t work for me… I setup a new device with these settings:

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

Created a this flow:

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

It doesn’t do anything when I press the tile in the mobile app, I get no timeline notification.

Then, when I press the on/off button (on the button tab) the device tile doesn’t dim/undim, and I don’t have a flow cards to turn on the device or off.

I can set the "“On/Off” button to Yes or No, but that still doesn’t dim/undim the tile.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/9/d92ff2a6d6a877caae9ae26f17ec6b75eeec88c3.png)

When I look at the capabilities capabilities of the device, it doesn’t have an on\_off capability:

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

What am I not seeing/getting?

---

<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, 9:50pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/286 "2022-08-30T21:50:00Z")

</div>

I think i misunderstood you.  
I thought that you wanted to not be able to click on the device tile? Only use it as a status?

If so, you have the right settings, like you said, you can push it buth nothing happends 🙂

Now, you should be able to set the Hidden to Yes or No through the flowcard, and that will make the device tile light up or darken.

If this is not how you want it, please, explain again what you want, because i thought it was:

> Or is there no possibility to give a device the on/off capability without having the tile act as the on/off switch?

P.s. from my point of view, the Button 2 (OnOff) has no use in what you want. Just the Button 1 as Indicator would be enough to the above question.

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [August 30, 2022, 10:00pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/287 "2022-08-30T22:00:58Z")

</div>

Use case is this; I have a DeviceCapabilities device “Ventilation” When someone presses the tile it changes from automatic to manual (e.g. it starts a timer and the ventilation system is set to medium, and when pressed again it changes to high). This is all working fabulously, but it would be even greater if when the powerplug for the ventilation system is turned off because of an emegency the tile would represent that. But I don’t want a user to be able to tun the device off, only a flow must be able to do that.

Besides that the flow starts medium ventilation after toilet use, and high when someone is taking a shower, and the level of ventilation (and the remaining timer) is in text/status/number fileds.

I really love what this app brings; like I said I was able to combine a lot of ‘old style’ virtual devices and get red of considerable number of flows , so missing this on\_off capability is no biggy!

---

<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, 10:13pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/288 "2022-08-30T22:13:06Z")

</div>

Ah, so you want the tile to be a pushbutton **that can be pushed** (when pushed, it stays in the dark/light status that it was in when pushed) to start a flow, and the dark/light tile status based the powerplug status?

So, pushing it is not connected to the indicator, you want them seperate?

If so, ill look into it tomorrow, its nighty night night 😉

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [August 30, 2022, 10:33pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/289 "2022-08-30T22:33:37Z")

</div>

Exactly…

Thanks, and good night. Indeed it’s time to hit the sack 🙂

Hope you’ll find a way to get this working sometime!

---

<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 31, 2022, 8:25am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/290 "2022-08-31T08:25:34Z")

</div>

Please note: in a upcoming version i have changed the Yes/No Show As Button value to OnOff.  
If you have any Yes/No’s as Buttons, please re-select the onoff option and press save (after next update).

---

<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 31, 2022, 8:36am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/291 "2022-08-31T08:36:43Z")

</div>

@Le_Cactus

Comming up:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14da9f81ae532caf2da59e73a41e444c2bc8db7a.png)

New options:

- On/Off (Hidden)  
When this is selected, there will not be any buttons displayed, only the device-tile is clickable and shows the status of that button. So the same os OnOff, but without a button on the device-tabs.
- Pushbutten and seperate Indicator  
When this is selected, there will be no buttons displayed, just like above.  
But it is a Pushbutton, and not show dark or light based on the value of the button.  
If you push it, it will just flash back like it was before, the same way as a normaal Pushbutton-tile.  
And the flowcard A Button was Pushed will be executed with the reversed value of the button (so when a button is light and you push it, the flow will **always** execute with value false’s, just like a normaal pushbutton.  
**You can however(!!!), update the status of the tile through flowcards!**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c524fc5d8e2bc15dd662d4323c0c3e2128577f7b.png)

P.s. And no(!), pushing it really really fast after each other, is not gonna make a difference!

---

<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 31, 2022, 8:38am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/292 "2022-08-31T08:38:23Z")

</div>

In test now: 1.9.81.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 31, 2022, 8:53am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/293 "2022-08-31T08:53:42Z")

</div>

I have not read the entire post, so it may be that these points have already been addressed. If this is the case, I apologize.

~~– When I create an OnOff device the button inside the device is displayed light (on) or dark (off). Would it also be possible for the device tile to also be displayed light and dark like a switch?~~ ✅ 😉

– I think it would be easier and less work for the user if the created device would not have filled properties (text, number, yes/no, status) which may then need to be deleted (like you explained in the Addendum post).  
It would be even better if when creating a device you could choose which and how many properties you want to use with the device.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [August 31, 2022, 9:00am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/294 "2022-08-31T09:00:59Z")

</div>

But if they are fields that can either only contain numbers, text or yes/no it is nice to know what you can enter.  
Maybe there can be text but it doesn’t do anything and only serves as an example.  
So if you do not fill in anything then it is gone, when you save it  
Light printed text,.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 31, 2022, 9:15am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/295 "2022-08-31T09:15:34Z")

</div>

In my opinion in the advanced device settings it is absolutely clearly visible and understandable what has to be filled into the fields.  
And as I wrote, it would be very nice by creating a new device that it’s choosable which properties you want to have.

---

<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 31, 2022, 9:16am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/296 "2022-08-31T09:16:47Z")

</div>

> [@Mike1233](#):
>
> So if you do not fill in anything then it is gone, when you save it

This is currently not how it works, but it can be made so:  
Create the device with the default properties, but leave them empty in the settings.

But will this then be clear?

Personally i think having them both in settings and in device or both not, would a better approach?!

---

<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 31, 2022, 9:18am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/297 "2022-08-31T09:18:53Z")

</div>

Wait, i have an idea i think 🙂

---

<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 31, 2022, 9:28am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/298 "2022-08-31T09:28:13Z")

</div>

And thanks for the tip (to think about a good solution).  
I really dislike hardcoded data, and now i can remove my “default getter”:

```auto
switch (type) {
                case 'virtualdevice_set_text':
                    cap = cap || 'devicecapabilities_text.text1';
                    break;
                case 'virtualdevice_set_number':
                    cap = cap || 'measure_devicecapabilities_number.number1';
                    break;
                case 'virtualdevice_set_boolean':
                    cap = cap || 'alarm_devicecapabilities_boolean.boolean1';
                    break;
                case 'virtualdevice_set_button':
                    cap = cap || 'button';
                    break;
                case 'virtualdevice_set_status':
                case 'virtualdevice_set_status_optionalnumber':
                    cap = cap || 'measure_devicecapabilities_status.status1';
                    break;
                }

```

Finally!

---

<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 31, 2022, 9:39am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/299 "2022-08-31T09:39:17Z")

</div>

Hey @Mike1233 and @DirkG,

This is how you now start (in develop) when you create a new device:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5c44e3544df4ee787ec566f09176ae8a061f602a.jpeg)

This field is not shown in the settings and when you first save the settings, firstly this capability is removed.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [August 31, 2022, 9:39am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/300 "2022-08-31T09:39:46Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> > [@Mike1233](#):
> >
> > So if you do not fill in anything then it is gone, when you save it
> 
> This is currently not correct, but it can be made so:  
> Create the device with the default properties, but leave them empty in the settings.

It was an example how it could work, if that is possible.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [August 31, 2022, 11:01am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/301 "2022-08-31T11:01:47Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> now: 1.9.81

Are u sure?  
My Homey just auto updated to a very far in the future update 🤣: v1.9. **981**

---

<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 31, 2022, 11:03am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/302 "2022-08-31T11:03:24Z")

</div>

Haha, its just going fast 😉

---

<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 31, 2022, 11:03am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/303 "2022-08-31T11:03:43Z")

</div>

(Resolved btw)

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [August 31, 2022, 11:08am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/304 "2022-08-31T11:08:04Z")

</div>

Thank Arie, I’m going to play with ot later!

[Previous page](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287.md?page=14)

[Next page](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287.md?page=16)
