# My Nodered flow for setting lights. Is this possible with Homey?

**URL:** https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536
**Category:** Questions & Help
**Created:** [October 7, 2018, 6:34am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536 "2018-10-07T06:34:17Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![arnizzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnizzle/32/9485_2.png) [@arnizzle](https://community.homey.app/u/arnizzle)
#### Post date: [October 7, 2018, 6:34am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/1 "2018-10-07T06:34:17Z")

</div>

![12](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/32a47cc1ec6778fb7fc0ca5c07494488693cde19.png)

Hi All,

Posted some questions already regarding this (point solutions) so I decided to upload the flow I currently have in Home Assistant with the question of how I can do this in Homey (preferably with a single flow).

Essentially a sensor is created which can contain multiple motion sensors. If any of those are on then turn off the timer and turn on the light. Brightness is a function that checks if it’s night (brightness to 20%) or day (brightness 100%). For some of my area’s I have more advanced brightness based on the luminance in that room. When a sensor is off (no motion detected) a timer starts running and eventually turns off the light.

Curious in how I can make this work in Homey without making a lot of flows per room

Thanks

---

<div class="post-metadata">

### Author: ![arnizzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnizzle/32/9485_2.png) [@arnizzle](https://community.homey.app/u/arnizzle)
#### Post date: [October 7, 2018, 8:12am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/3 "2018-10-07T08:12:31Z")

</div>

Because (as I mentioned) these were point solutions in my current Nodered flow. I decided to show the entire flow to show the end goal I have.

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [October 7, 2018, 1:54pm UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/4 "2018-10-07T13:54:12Z")

</div>

I have an app that can do what you ask. Allows grouping of sensors and then choosing what the status of the group is based off the results.

Ie I any are on, all are on, more than half are on … for Boolean items like lights and motion sensors. Or average (mean,mode,median, min, max) for other devices. (Ie Temperature/ dimmer)

Contact me if you can install through cli - otherwise im hoping to have a alpha in a couple of days.

---

<div class="post-metadata">

### Author: ![arnizzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnizzle/32/9485_2.png) [@arnizzle](https://community.homey.app/u/arnizzle)
#### Post date: [October 7, 2018, 3:00pm UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/5 "2018-10-07T15:00:42Z")

</div>

Hey thanks. I’ll give it a go. Let me know how to install.

Thanks again!

---

<div class="post-metadata">

### Author: ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)
#### Post date: [October 8, 2018, 5:21pm UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/6 "2018-10-08T17:21:39Z")

</div>

Looking forward to this app that group sensors!

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [October 10, 2018, 2:13am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/7 "2018-10-10T02:13:25Z")

</div>

I’m actually looking for some pre-alpha testers, if anyone is interested and is comfortable installing an app via CLI :

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198):
>
> Homey Pro only!!! It does not work this way with Homey (cloud), it only supports CLI run which is there only for development purposes. Installing Node.js Check Node.js version on Homey: Homey App: Settings - General - About - Node.js version Download Node.js (use Homey’s version or higher) from [https://nodejs.org/](https://nodejs.org/) and install it on your computer. Download the app you want to install from GitHub Go to the repository on [GitHub](https://github.com/) (the correct link for the app you want to install is at the bottom…

---

<div class="post-metadata">

### Author: ![arnizzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnizzle/32/9485_2.png) [@arnizzle](https://community.homey.app/u/arnizzle)
#### Post date: [October 10, 2018, 5:40am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/8 "2018-10-10T05:40:59Z")

</div>

I don’t get it… This looks like an exact copy from Device Groups. Nothing added regarding motion sensors…

Also had to delete the “old” version which then deleted my device groups. ☹

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [October 10, 2018, 5:42am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/9 "2018-10-10T05:42:37Z")

</div>

Make sure that you checkout the alpha branch, not the master branch.

This branch is 26 commits ahead of swttt:master.

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [October 10, 2018, 5:43am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/10 "2018-10-10T05:43:30Z")

</div>

Sorry to hear you had to delete the ‘old’ version, if you check out the alpha branch - that wont happen, though that’s a bit late now.

---

<div class="post-metadata">

### Author: ![arnizzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnizzle/32/9485_2.png) [@arnizzle](https://community.homey.app/u/arnizzle)
#### Post date: [October 10, 2018, 5:44am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/11 "2018-10-10T05:44:32Z")

</div>

Haha, no big deal. Still in Alpha phase here regarding Homey. Home Assistant runs everything outside my own lab 🙂

---

<div class="post-metadata">

### Author: ![mauritsivs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mauritsivs/32/17688_2.png) [@mauritsivs](https://community.homey.app/u/mauritsivs)
#### Post date: [November 24, 2018, 1:26pm UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/12 "2018-11-24T13:26:29Z")

</div>

hows development going for this app? whats the name actually?

---

<div class="post-metadata">

### Author: ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)
#### Post date: [November 27, 2018, 12:07am UTC](https://community.homey.app/t/my-nodered-flow-for-setting-lights-is-this-possible-with-homey/2536/13 "2018-11-27T00:07:38Z")

</div>

Its stable and awaiting merging into the main branch, you can read more here :

> [@\[APP\]\[Pro\] \< group \> (3.2.4 - Stable)](https://community.homey.app/t/device-groups-v2-update/3168):
>
> \< group \> With this app you can group devices with the same capabilities as one device. This means you an control multiple devices from the one place. The general approach for this application is to keep things as simple as possible, especially for the default device classes. (light, sockets, etc). To do anything other then these simple operations please use the advance (other) groups. [Donate](https://PayPal.Me/peakej)[Help me buy a homey to create this and other apps on.](https://PayPal.Me/peakej) Please note that this app now only supports v…
