# Set uiQuickAction to false on onoff capability

**URL:** https://community.homey.app/t/set-uiquickaction-to-false-on-onoff-capability/39488
**Category:** Developers
**Tags:** app
**Created:** [December 20, 2020, 2:40pm UTC](https://community.homey.app/t/set-uiquickaction-to-false-on-onoff-capability/39488 "2020-12-20T14:40:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan\_Cohen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_cohen/32/32700_2.png) [@Jonathan\_Cohen](https://community.homey.app/u/Jonathan_Cohen)
#### Post date: [December 20, 2020, 2:40pm UTC](https://community.homey.app/t/set-uiquickaction-to-false-on-onoff-capability/39488/1 "2020-12-20T14:40:21Z")

</div>

Hi, I am trying to create an app that should have the “onoff” capability.  
But I want to stop it from being triggered from the “home screen”, only want to trigger it when the user is in the app and device - for custom capabilities, this works if we set the “uiQuickAction”: false. but this is not possible it seems on the normal “onoff”.

I have tried creating an own “onoff” and use that instead - and that works - down ide with that is that f.ex. Google home do not register my device as an onoff device and I can not talk to it.

I tested both with button and toggle types.

Any ideas - also fine if I could track from where it was triggered so i could dismiss it myself in code (on button this seem to work but not toggle).

/Joanthan

---

<div class="post-metadata">

### Author: ![joakim.d](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joakim.d/32/44811_2.png) [@joakim.d](https://community.homey.app/u/joakim.d)
#### Post date: [October 2, 2021, 5:43pm UTC](https://community.homey.app/t/set-uiquickaction-to-false-on-onoff-capability/39488/2 "2021-10-02T17:43:54Z")

</div>

I have the same desire. I want to use the default onoff capability but it should not be a quickaction. In fact, I want locked to be the quickaction. I can’t find a way to do that.
