Reading below is awesome and save some work but what do I need to define in the app.json to make this work.
Thanks Edwin
## Starting Flows for custom capabilities
Custom capabilities starting with `alarm_` , `meter_` and `measure_` will automatically try to trigger a Flow. You only need to define this Flow trigger in your `/app.json` .
### Numbers
Calling `setCapabilityValue('measure_my_number', 1)` will try to start a Flow trigger with ID `measure_my_number_changed` , with a [Tag](https://apps.developer.athom.com/tutorial-Flow-Tokens.html) `value` .
### Booleans
Calling `setCapabilityValue('alarm_my_alarm', true)` will try to start a Flow trigger with ID `alarm_my_alarm_true` , with a [Tag](https://apps.developer.athom.com/tutorial-Flow-Tokens.html) `value` .