# Homey Pro Philips hue motion sensor and switch

**URL:** <https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [January 28, 2026, 10:46pm UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236 "2026-01-28T22:46:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtankard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jtankard/32/150727_2.png) [@jtankard](https://community.homey.app/u/jtankard)\
**Post date:** [January 28, 2026, 10:46pm UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/1 "2026-01-28T22:46:18Z")

</div>

Hi,

Hi all,

I have a hue motion sensor and a hue light switch v3, is there a way I can tell the lights to turn off after 5 mins if no motion detected as long as the lights turning on was not initiated from the switch, if activated from switch leave lights on…. Ty.

I’ve tried but nothing works, do I need new switches that can report back they are in the off or on state?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 29, 2026, 1:07am UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/2 "2026-01-29T01:07:12Z")

</div>

This should get you started

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/84):
>
> Zone activated Device with Manual Device OnOff option When you have, say, a garage with (a) motion sensor(s), and (a) (garage)door sensor(s), the light should turn on for 3 minutes after a motion event, or an opened garagedoor; While there’s movement, lights stay on; When the button gets pushed, lights should turn on, and stay on until the button is pushed again. Apps used: [Chronograph](https://homey.app/a/nl.fellownet.chronograph) TEF: [tef:FLOWS:"H4sIAAAAAAACA8VX224jx…

 ![17397385462014946870163701412951](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cbefc564c8f4c0a2debba0ba1e66e36d06a5a057.png)

---

<div class="post-metadata">

**Author:** ![Anoniemand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoniemand/32/120697_2.png) [@Anoniemand](https://community.homey.app/u/Anoniemand)\
**Post date:** [January 29, 2026, 5:02am UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/3 "2026-01-29T05:02:35Z")

</div>

Interesting flow. I think my wife will appreciate it if I finally get this working properly.

–Edit  
Great inspiration: I’ve recreated the flow with mostly “standard” Athom components right now. The only additional app I’m using is [sun events](https://homey.app/en-nl/app/com.cyclone-software.sunevents/Sun-Events/) (hopefully with the right offsets).

 ![Screenshot 2026-01-30 at 06.46.10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8bee009f3f5daf260f3dcdab1cc2776f85615e79.jpeg)

Below the Athom JSON, save as `any_name_you_like.homeyadvflow` and [import](https://community.homey.app/t/web-app-alt-context-menu-export-import-flows/143013) it in flows while pressing ALT

```auto
{"type":"advanced","name":"Hal boven","cards":{"62866e27-96a7-4941-b75c-4d76c4b5d482":{"ownerUri":"homey:zone:cbad1fb0-2abc-4237-8966-6cceff057af0","id":"homey:zone:cbad1fb0-2abc-4237-8966-6cceff057af0:active","type":"trigger","x":40,"y":100,"outputSuccess":["976b680b-722e-477c-8188-6fa494ecd5cb"]},"63d66c27-f5e2-4720-8f13-f88045e7da81":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:on","type":"condition","x":580,"y":160,"outputTrue":["fa6a6808-e36a-4f49-b306-06fd82e70633"],"inverted":true},"49d971d1-9b56-4b64-86f2-dc722d7741a2":{"ownerUri":"homey:app:com.cyclone-software.sunevents","id":"homey:app:com.cyclone-software.sunevents:cond_sun_event_between","args":{"eventA":{"name":"Zonsopgang","id":"sunrise"},"offsetA":30,"eventB":{"name":"Zonsondergang","id":"sunset"},"offsetB":-30},"type":"condition","x":1860,"y":140,"outputFalse":["789573de-6782-4e14-82ce-b7302f5b8e04"],"outputTrue":["90107192-ad4f-486d-96a9-e95217581c6c"]},"e5c51128-81f3-49ae-a73d-32c5ce547016":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:on","type":"action","x":1460,"y":160,"outputSuccess":["49d971d1-9b56-4b64-86f2-dc722d7741a2"]},"738a6eba-0801-4181-b0a7-67a20139d4c4":{"ownerUri":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67","id":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67:dimmerswitch_button_pressed","type":"trigger","x":40,"y":300,"outputSuccess":["976b680b-722e-477c-8188-6fa494ecd5cb","8a075d73-e13f-4b7e-b956-5560ea2aadf1"],"args":{"button":"on"}},"976b680b-722e-477c-8188-6fa494ecd5cb":{"type":"any","x":440,"y":160,"outputSuccess":["63d66c27-f5e2-4720-8f13-f88045e7da81"]},"8a075d73-e13f-4b7e-b956-5560ea2aadf1":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:variable_set_boolean","args":{"variable":{"id":"8f8f9947-9d10-420a-b430-287f61e9d082","name":"HalBovenManual"},"value":true},"type":"action","x":500,"y":300},"c19aacb4-e72b-4481-b57f-d3f88bc52633":{"ownerUri":"homey:zone:cbad1fb0-2abc-4237-8966-6cceff057af0","id":"homey:zone:cbad1fb0-2abc-4237-8966-6cceff057af0:inactive_for","type":"trigger","x":40,"y":460,"outputSuccess":["6bdd3e75-dfb8-4724-a639-b97195f4545f"],"args":{"minutes":1}},"a278c4f5-9e07-4865-9e2d-61d23e4fd938":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:on","type":"condition","x":920,"y":460,"outputTrue":["9573020d-ef4d-4226-a0e1-0d1f10bf6015"]},"6bdd3e75-dfb8-4724-a639-b97195f4545f":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:equal_boolean","droptoken":"homey:manager:logic|8f8f9947-9d10-420a-b430-287f61e9d082","type":"condition","x":500,"y":460,"outputFalse":["a278c4f5-9e07-4865-9e2d-61d23e4fd938"]},"9573020d-ef4d-4226-a0e1-0d1f10bf6015":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:off","type":"action","x":1340,"y":600},"b5a25f9e-c3da-4b5c-885c-5f1922aad65f":{"ownerUri":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67","id":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67:dimmerswitch_button_pressed","type":"trigger","x":40,"y":600,"outputSuccess":["d339db39-63b5-4d0a-9f4e-a998f09919fe"],"args":{"button":"off"}},"d339db39-63b5-4d0a-9f4e-a998f09919fe":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:variable_set_boolean","args":{"variable":{"id":"8f8f9947-9d10-420a-b430-287f61e9d082","name":"HalBovenManual"},"value":false},"type":"action","x":500,"y":600,"outputSuccess":["9573020d-ef4d-4226-a0e1-0d1f10bf6015"]},"789573de-6782-4e14-82ce-b7302f5b8e04":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:dim","args":{"dim":0.5},"type":"action","x":2280,"y":220},"90107192-ad4f-486d-96a9-e95217581c6c":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:dim","args":{"dim":1},"type":"action","x":2280,"y":120},"b47021ca-0ee7-48c4-993b-b3e5b04d5e06":{"ownerUri":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67","id":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67:dimmerswitch_button_pressed","type":"trigger","x":40,"y":760,"outputSuccess":["9cb0e0c5-12b1-4bfd-af92-512ca7386fee"],"args":{"button":"increase_brightness"}},"9cb0e0c5-12b1-4bfd-af92-512ca7386fee":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:equal_boolean","droptoken":"homey:manager:logic|8f8f9947-9d10-420a-b430-287f61e9d082","type":"condition","x":500,"y":780,"outputFalse":[],"outputTrue":["5536bcd2-2823-44c5-828d-78fdcabd97e3"]},"7e5de831-a85f-4cf0-ba06-6f41160a619d":{"ownerUri":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67","id":"homey:device:a092a151-1392-45f3-9da1-605c9b339b67:dimmerswitch_button_pressed","type":"trigger","x":40,"y":920,"outputSuccess":["47c157b6-b05b-43e4-b784-12e21ca9f2df"],"args":{"button":"decrease_brightness"}},"5536bcd2-2823-44c5-828d-78fdcabd97e3":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:dim_relative","type":"action","x":960,"y":780,"args":{"dim":0.1}},"47c157b6-b05b-43e4-b784-12e21ca9f2df":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:equal_boolean","droptoken":"homey:manager:logic|8f8f9947-9d10-420a-b430-287f61e9d082","type":"condition","x":500,"y":940,"outputFalse":[],"outputTrue":["33cce59c-c425-4738-b2f9-10fbec70b034"]},"33cce59c-c425-4738-b2f9-10fbec70b034":{"ownerUri":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f","id":"homey:device:5fdf3ad2-0ad9-4d84-800b-1ad901a3887f:dim_relative","type":"action","x":960,"y":920,"args":{"dim":-0.1}},"fa6a6808-e36a-4f49-b306-06fd82e70633":{"ownerUri":"homey:manager:logic","id":"homey:manager:logic:gt","droptoken":"homey:device:1a6c289c-7581-4ea2-bab8-e39d74ed7112|measure_luminance","args":{"comparator":50},"type":"condition","x":1000,"y":160,"outputFalse":["e5c51128-81f3-49ae-a73d-32c5ce547016"]}}}

```

Edit: Altered the relative to negative for lowering brightness in JSON (Thanks @Peter_Kawa)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 29, 2026, 8:50pm UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/4 "2026-01-29T20:50:31Z")

</div>

> [@Anoniemand](#):
>
> any\_name\_you\_like.homeyadvflow

any\_name\_you\_like.homeyadvflow._json_

.

 ![Screenshot_20260129_215126_Ecosia](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/97e992ba6bcba24fd3d436baf251491d83bd2cc3.jpeg)  
Set relative dim level to _-10%_ to lower the dim level

---

<div class="post-metadata">

**Author:** ![Anoniemand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoniemand/32/120697_2.png) [@Anoniemand](https://community.homey.app/u/Anoniemand)\
**Post date:** [January 30, 2026, 5:14am UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/5 "2026-01-30T05:14:27Z")

</div>

> [@Peter\_Kawa](#):
>
> any\_name\_you\_like.homeyadvflow._json_

That would have been better (for most users), but homey uses those two extensions:

 ![Screenshot 2026-01-30 at 06.07.14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/63bc38c3b169864124f989e0768eafaf6199e68c.png)

Thanks for spotting the wrong relative dim. Probably a mistake after creating, duplicating and replacing a card. Might not be the right way for me to create flows.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 31, 2026, 2:45am UTC](https://community.homey.app/t/homey-pro-philips-hue-motion-sensor-and-switch/150236/6 "2026-01-31T02:45:18Z")

</div>

I see, here the export filenames always end with `.json`.  
Somehow that seemed to me to be Homey standard.

> [@Anoniemand](#):
>
> Thanks for spotting the wrong relative dim.

YW.  
A trained eye I guess: the same happens to me from time to time, due to copy, paste & distraction 🤪
