# LIghts on with Hue motion Sensor

**URL:** <https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003>\
**Category:** Questions & Help\
**Created:** [September 1, 2018, 6:51pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003 "2018-09-01T18:51:05Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 6:51pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/1 "2018-09-01T18:51:05Z")

</div>

Hi all,

I strugle with the following flow.  
I made a flow that if the motion sensor in out living room reaches 700lummen homey ask if he can turn on the lights.  
But… Homey keeps asking the same question over and over again, cant seem to find the solution.  
I want Homey to stop asking, when i said its oke.

Could use some help 🙂

The flow is build as followed:

 ![Homey%20flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/3838cd03d9056a9e5dee77a431a37d4754dc4dbd.png)

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 7:16pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/3 "2018-09-01T19:16:00Z")

</div>

what do you mean exactly?  
Cause in the “And” collum i cant put the card from the hue app.

Or i’m missing something

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 7:27pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/5 "2018-09-01T19:27:13Z")

</div>

Nice, going to try.

Thnx for so far.

---

<div class="post-metadata">

**Author:** ![tlangelaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tlangelaar/32/10980_2.png) [@tlangelaar](https://community.homey.app/u/tlangelaar)\
**Post date:** [September 1, 2018, 7:28pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/6 "2018-09-01T19:28:20Z")

</div>

Don’t use the Hue app card, but select a specific device card from your list (probably a little below the Hue card, scroll down).

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 7:32pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/7 "2018-09-01T19:32:57Z")

</div>

To bad, when i put al mine hue device in the “and” collum and say, its on.  
Than still homey ask if he should turn on the light ☹

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 8:01pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/9 "2018-09-01T20:01:26Z")

</div>

![Nieuwe%20flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/b9260756db518bf74928fcc5c312119a7a8a2ac1.png)

Zo dus?

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 1, 2018, 8:08pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/11 "2018-09-01T20:08:15Z")

</div>

Looks like it.  
Flow is actived again, almost 10min ago. And so far Homey did’nt ask the question again.

Fingers crossed.

Thnx guys.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 2, 2018, 7:41pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/12 "2018-09-02T19:41:17Z")

</div>

So what if you are not home?  
Homey will keep crying for attention for 3 hours…

I use virtual devices to control my flows. (Betterlogic variabels can do the same)

1 create a virtual device that represents the status “ask for light “ On/Off

2 add that device “On” in your AND column and remove the hue lamp and the timeslot.

3 also add that device to the THEN column and switch it off

4 now you can create flows to control you virtual device:  
Switch it on at 17:00, switch it off at 20:00. Switch it off when no you people present in the house. Etc.

The advantage is that you can now also easily change the times: weekday on at 17:00, weekends on at 16:00 just add a different flow to set the virtual device…

Hope its usefull for you

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 12, 2018, 5:26pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/13 "2018-09-12T17:26:44Z")

</div>

Hi @FKey ,

Maybe a silly question. But is it possible that you can make a visual example?

The current flow i made stopped working yesterday, and keeps asking if homey should turn on the lights ☹

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 12, 2018, 6:22pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/15 "2018-09-12T18:22:58Z")

</div>

I agree. But since the away and home detection from Homey suck haha, that really isnt a option.  
Smart pressence isnt flawless also

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 12, 2018, 7:32pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/16 "2018-09-12T19:32:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/d3dee48c6027c3b65356e70ec75b4906fc6e7e05.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/1c5489441322d52f6ee438ce77eafd37d812024a.jpeg) Hi Patrick,  
Here the visual examples. Not exactly the flow you want to build. But I hope it gets you going  
1st you need the virtual devices App.  
I created several devices type “button” that I use to store timed trigger. (Marked blue”opstaan”)  
And a device type “switch” for “keuken” status

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 12, 2018, 7:38pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/17 "2018-09-12T19:38:39Z")

</div>

Next I created a flow that activates the virtual divice (press the button) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/bc61c32460183783b782d33992214b186633e040.jpeg)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 12, 2018, 7:42pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/18 "2018-09-12T19:42:00Z")

</div>

The triggering of that device set off several flows. Here’s one of them switching on the other virtual device “keuken” (yellow) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/21d120dfb2e2b2c294e71a6cd0394233dfb1d42c.jpeg)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 12, 2018, 7:46pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/19 "2018-09-12T19:46:49Z")

</div>

And finally the flow that uses the virtual divice in both the “And” and the “then” column. To prevent the flow from running all the time  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/59e904f60a4c58ab53d34bb4c222c3e3e7b204b8.jpeg)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [September 12, 2018, 7:51pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/20 "2018-09-12T19:51:54Z")

</div>

“since the away and home detection from Homey suck”  
If you have a regular life you can replace presence by a virtual device that is set based on times you leave.  
I personally use a trigger that my alarm sends out. If the alarm is on I am not downstrairs (out / in bed)

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [September 15, 2018, 8:32pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/22 "2018-09-15T20:32:55Z")

</div>

@FKey, thnx. I will take a look at it soon 👍👍

---

<div class="post-metadata">

**Author:** ![Thomas\_Hedenstrom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_hedenstrom/32/16580_2.png) [@Thomas\_Hedenstrom](https://community.homey.app/u/Thomas_Hedenstrom)\
**Post date:** [October 16, 2020, 3:10pm UTC](https://community.homey.app/t/lights-on-with-hue-motion-sensor/1003/23 "2020-10-16T15:10:25Z")

</div>

> [@Patrick\_Ruitenbeek](#):
>
> app

Hi Patrick! Sorry, what app do you mean or do you mean to go in on the Hue application? I cannot find any luminance conditions under And or Then and under When only “The luminance changed”. Maybe I go about this totally wrong or one should have a different app?

Many thanks in advance.
