# Motion sensor and contact sensor to manage light

**URL:** <https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955>\
**Category:** Questions & Help\
**Created:** [June 30, 2021, 12:36pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955 "2021-06-30T12:36:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeirL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/geirl/32/70689_2.png) [@GeirL](https://community.homey.app/u/GeirL)\
**Post date:** [June 30, 2021, 12:36pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955/1 "2021-06-30T12:36:11Z")

</div>

Hi! Im really new to homey, just bought this yesterday. Today I´m moving all my sensors, buttons and other stuff over to homey.  
I used a little while to understand how I could easily do the motion sensor - activate turns on the light, and deactivate turns off the light a while later.  
The way I solved it was by using the integrated timer in the motion sensor - setting that to the time I needed. That way, when coming into a room right before the off-time, would let the lights be on.  
And then I came to the hallway. Here I have 1 motion sensor and 2 magnetic contacts. The magnetic contact sensors doesnt have the possibility to set a default wait time like the motion sensor do. So my question is - how do I solve this? 1 motion sensor, 2 magnetic contact sensors - I want the lights to turn on when any of them is activated, and I also want the lights to stay on while people are in the hallway. If none is there, the light can be turned off after 1m or so.  
Any thoughts/tricks/tips would be very appreciated!

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [June 30, 2021, 12:39pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955/2 "2021-06-30T12:39:16Z")

</div>

Look into [zone activity](https://support.athom.com/hc/en-us/articles/360026209853-How-to-use-Zone-Activity-) (flow cards), that does everything you want

---

<div class="post-metadata">

**Author:** ![GeirL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/geirl/32/70689_2.png) [@GeirL](https://community.homey.app/u/GeirL)\
**Post date:** [June 30, 2021, 12:51pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955/3 "2021-06-30T12:51:22Z")

</div>

Thanks @Caseda , I actually think this will work for me the way I want. I just need to figure out a couple of things; like if I have a contact sensor on my inner hallway door; when that is open I need the light in both the outer hallway and the inner hallway to be activated. But I don’t need the inner hallway to be lit if the door is not opened - maybe the person are going into another room than the inner hallway.  
So is it possible to have a sensor in 2 zones?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [June 30, 2021, 12:58pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955/4 "2021-06-30T12:58:47Z")

</div>

Sensors can only be in 1 zone, you’ll have to work around that, perhaps look at this topic for more options: [[Simple] Lights turning on/off based on motion](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889)

---

<div class="post-metadata">

**Author:** ![GeirL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/geirl/32/70689_2.png) [@GeirL](https://community.homey.app/u/GeirL)\
**Post date:** [June 30, 2021, 1:12pm UTC](https://community.homey.app/t/motion-sensor-and-contact-sensor-to-manage-light/48955/5 "2021-06-30T13:12:03Z")

</div>

Thanks @Caseda! This solved my issues! Then I can enjoy my home automation further 🙂
