# Flow with motion sensor

**URL:** https://community.homey.app/t/flow-with-motion-sensor/101438
**Category:** Questions & Help
**Tags:** homey-pro
**Created:** [January 17, 2024, 11:10am UTC](https://community.homey.app/t/flow-with-motion-sensor/101438 "2024-01-17T11:10:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Knguyen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/knguyen/32/78999_2.png) [@Knguyen](https://community.homey.app/u/Knguyen)
#### Post date: [January 17, 2024, 11:10am UTC](https://community.homey.app/t/flow-with-motion-sensor/101438/1 "2024-01-17T11:10:38Z")

</div>

Hi,  
I have the following:

- 2023 Homey Pro
- Esphome motion sensor
- Sensibo to control the air conditioner unit.  
Both the sensor and the sensibo are connected to the Homey Pro  
I want to create a flow in which if there has been no motion for 1 hour (which means there is no one in the room) then for the sensibo to turn off the air conditioner.  
The PIR sensor has flow conditions if the sensor is turned on or off but I can’t figure out how to get a state where if it turned off and not turned back on within one hour

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [January 17, 2024, 11:26am UTC](https://community.homey.app/t/flow-with-motion-sensor/101438/2 "2024-01-17T11:26:07Z")

</div>

Your use case just looks like switching on a light width a motion sensor, and switching it off after some time. For example a toilet light, hall light, etc. So just search this forum for motion sensor and light and flow, e.g.

> [@Advanced flow: Chronograph/Timer of 'Wait' button?](https://community.homey.app/t/advanced-flow-chronograph-timer-of-wait-button/99921/6):
>
> De 2e manier/flow is m.i. ook de beste manier. Zone activity zelf is wel betrouwbaar, maar ik vind de ‘inactiviteit’ functie niet altijd betrouwbaar (stond ineens in het donker te douchen rofl ), vandaar het gebruik van een timer i.p.v. de inactiviteit functie en dat werkt perfect. Voordelen van zone activity: Je kunt, zonder je flows te hoeven aanpassen: (virtuele) sensoren toevoegen of weghalen (behalve de laatste uiteraard) een kapotte sensor vervangen, door dezelfde, maar ook door een…

---

<div class="post-metadata">

### Author: ![Andy\_Henderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andy_henderson/32/80642_2.png) [@Andy\_Henderson](https://community.homey.app/u/Andy_Henderson)
#### Post date: [January 17, 2024, 3:16pm UTC](https://community.homey.app/t/flow-with-motion-sensor/101438/3 "2024-01-17T15:16:07Z")

</div>

The zone containing your motion sensor has a ‘when’ card: The zone has been inactive for…

---

<div class="post-metadata">

### Author: ![Knguyen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/knguyen/32/78999_2.png) [@Knguyen](https://community.homey.app/u/Knguyen)
#### Post date: [January 18, 2024, 11:21am UTC](https://community.homey.app/t/flow-with-motion-sensor/101438/4 "2024-01-18T11:21:02Z")

</div>

Thank you for the replies.

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [January 18, 2024, 12:40pm UTC](https://community.homey.app/t/flow-with-motion-sensor/101438/5 "2024-01-18T12:40:19Z")

</div>

It looks like you want an hour delay for switching on and a hour delay for switching on, so you need two flows:  
WHEN the zone has been active for 60 minutes  
THEN switch on the airco

WHEN the zone has been inactive for 60 minutes  
THEN switch off the airco
