# \[QUESTION\] Making a set of flows that trigger other flows quicker?

**URL:** https://community.homey.app/t/question-making-a-set-of-flows-that-trigger-other-flows-quicker/61593
**Category:** Questions & Help
**Tags:** homeyscript, flow
**Created:** [March 11, 2022, 9:54pm UTC](https://community.homey.app/t/question-making-a-set-of-flows-that-trigger-other-flows-quicker/61593 "2022-03-11T21:54:43Z")
**Posts on this page:** 1
**Showing post:** 23

<div class="post-metadata">

### Author: ![dzt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dzt/32/50239_2.png) [@dzt](https://community.homey.app/u/dzt)
#### Post date: [March 15, 2022, 11:54pm UTC](https://community.homey.app/t/question-making-a-set-of-flows-that-trigger-other-flows-quicker/61593/23 "2022-03-15T23:54:16Z")

</div>

Tnx! 🙂  
I’ll look into it tomorrow!

* * *

EDIT (tommorow is now):  
Thanks Nick. I was obviously long overdue for some sleep to get what I was doing wrong.

But this morning - Eureka time! The missing link (writing the whole process for reference for the others uneduceted like myself):

By using

```auto
const Devs = await Homey.devices.getDevices();
console.log(Devs)

```

Find the capabilities in the log:

```
capabilities: [
  'alarm_motion',
  'measure_temperature',
  'measure_luminance',
  'measure_battery',
  'alarm_battery'

```

> [@Nick\_Pauwels](#):
>
> after that you can use ` await Homey.devices.GetDevice({id: "id here"})`

And then, put the wanted capability to be read and stored in variable _LuxSensorLiving_ (“the missing link” [[Source]](https://community.homey.app/t/device-capabilitiesobj-in-homeyscript-stays-the-same-value-when-triggered-in-a-flow/14529/3)):

```auto
const LuxSensorLiving = device.makeCapabilityInstance('measure_luminance');
console.log(LuxSensorLiving.value);

```

Okay. Now I think I have what I need to get all the needed criteria from the sensors, and I think I can manage if-statements on my own.

The next thing will be

- Finding a logic/variable through HomeyScript, probably some getVariables thingy.
- Finding how to activate hue scenes from the script.

I’ll keep the track of it in the post. ~~Now, if you’ll excuse me, I need to go to work with what I’m getting payed for to do. Strike the last one~~.

---

_[View the full topic](https://community.homey.app/t/question-making-a-set-of-flows-that-trigger-other-flows-quicker/61593)._
