# Lights on with motion and button press

**URL:** https://community.homey.app/t/lights-on-with-motion-and-button-press/137712
**Category:** Flows
**Created:** [June 6, 2025, 11:19am UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712 "2025-06-06T11:19:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![J273](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/j273/32/131778_2.png) [@J273](https://community.homey.app/u/J273)
#### Post date: [June 6, 2025, 11:19am UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/1 "2025-06-06T11:19:32Z")

</div>

I have my hue lights setup so with motion in a certain room they activate at a different brightness depending on what time of day it is.

At midnight until 4am I only have them come on a a 10% brightness as a night light. All lights are motion activated, I’ve added a physical switch to my kitchen lights which I have a flow to turn the lights on at a 100% brightness but once I activate the motion sensor they dim back down to the 10%. What’s the best way of setting a flow to stop the lights activating with motion once the buttons pressed?

Thanks

---

<div class="post-metadata">

### Author: ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)
#### Post date: [June 6, 2025, 11:53am UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/2 "2025-06-06T11:53:38Z")

</div>

Hi @J273  
Are you Dutch? No? Then use Google Lens to translate

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/da8a11ef2aa13f4a9d5069d1195edfd76a6fec81.png)

Rogier

---

<div class="post-metadata">

### Author: ![J273](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/j273/32/131778_2.png) [@J273](https://community.homey.app/u/J273)
#### Post date: [June 6, 2025, 12:15pm UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/3 "2025-06-06T12:15:33Z")

</div>

Thank you Rogier

---

<div class="post-metadata">

### Author: ![Kathy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathy/32/121888_2.png) [@Kathy](https://community.homey.app/u/Kathy)
#### Post date: [June 20, 2025, 4:50am UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/4 "2025-06-20T04:50:55Z")

</div>

The motion sensor still triggers because it doesn’t know the button was pressed. Try setting a condition in your flow that checks if the button was used; this way, motion won’t change the light if the button has already turned it on.

---

<div class="post-metadata">

### Author: ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)
#### Post date: [October 14, 2025, 9:51am UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/5 "2025-10-14T09:51:50Z")

</div>

@J273  
I had the exact same issues as you and I just created an advanced tutorial that might solve your problems as well. By using a Virtual Motion Trigger, you can simply disable the autonomous flow by disabling the Virtual Motion Trigger before you dim the lights to its desired Brightness. I Also use a circadian zone for all my lights. I use its night mode and the manual mode to keep dimming autonomously but with different values for different times of the day as well.

> [@\[HOW TO\] Gain full control over Zone Activity using Motion Sensors (PIR) and Virtual Motion Triggers](https://community.homey.app/t/advanced-flow-for-full-control-over-zone-activity-using-motion-sensors-pir-and-virtual-motion-triggers/144082):
>
> Introduction This is not a guide on how to implement a specific use case, but rather a framework that will give you full control over zone activity. Many flows like turning on/off lights could be done much simpler. However, when my personal flows became more complex, I ran into a lot of caveats and quirks that caused me to rethink how I work with motion sensors. I came up with this system which allowed me to solve all the bugs I ran into and I would like to share it with all of you. The problem…

This is how I completely tied it into my home together with presence:

 ![Screenshot 2025-10-14 at 11.51.25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/18dea908546eefd0f6dd757f1282f89fe88f5e32.jpeg)

 ![Screenshot 2025-10-14 at 11.48.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e9946e91b7f878855f86ed9d17ddee902a02b7e5.jpeg)

 ![Screenshot 2025-10-14 at 11.55.28](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3d9916f62a2bcf7acd40fb0dd298ff570d1e0f91.png)

---

<div class="post-metadata">

### Author: ![J273](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/j273/32/131778_2.png) [@J273](https://community.homey.app/u/J273)
#### Post date: [October 14, 2025, 5:24pm UTC](https://community.homey.app/t/lights-on-with-motion-and-button-press/137712/6 "2025-10-14T17:24:53Z")

</div>

Thankyou, will have a look.
