Homey Community Forum

Disable measure_ trigger flow

Hi Guys,

I’m working on a pull request for a homey app and i’ve added a custom capability with a number starting “measure_” so that besides the default functionality it can also be displayed as a status device-indicator if the user chooses to.

But unfortunately this also add’s two trigger flowcards to my app, is there a way to disable this?

I need this because the value of this will only be updated periodically and it would not be a correct trigger to start flows from. I already have other options for that in place inside the app. The capability is purely for displaying as a status device-indicator or for insights statistics. Thanks for the help.

I knowfor a fact that prepending a capability with .total or something will prevent default capability cards, but it will also prevent the capability from being picked, so that defeats the purpose. Same goes for naming capabilities outside the default measure… naming convention.

I’m not sure but I believe I had to “activate” the trigger in device.flow.compose.json with defining the trigger (API v3)

Without this, the trigger was not shown.

See documentation:

Another suggestion is to set the trigger “deprecated” to avoid selecting it in flows.