# Flows with motion and humidity

**URL:** <https://community.homey.app/t/flows-with-motion-and-humidity/133340>\
**Category:** Flows\
**Created:** [March 23, 2025, 10:32pm UTC](https://community.homey.app/t/flows-with-motion-and-humidity/133340 "2025-03-23T22:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Melton](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ryan_melton/32/120839_2.png) [@Ryan\_Melton](https://community.homey.app/u/Ryan_Melton)\
**Post date:** [March 23, 2025, 10:32pm UTC](https://community.homey.app/t/flows-with-motion-and-humidity/133340/1 "2025-03-23T22:32:45Z")

</div>

I have a flow that turns on bathroom lights with motion and then turns off 8 minutes later. I would like for the lights to stay on if the humidity in the bathroom is at a certain level. Any advice on how to set this up?

---

<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:** [March 23, 2025, 11:00pm UTC](https://community.homey.app/t/flows-with-motion-and-humidity/133340/2 "2025-03-23T23:00:25Z")

</div>

This flow starts a timer when the zone becomes inactive,  
when the timer is finished, it turns off the light;  
But the light stays on, when the humidity is above 50%;  
now the same timer gets started again, until finally the humidity is below 50%;  
then, when the zone is still inactive, the light is turned off:

 ![1000000684](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8ee294ed93c3502afc6f72d488e0cb4f8ff58033.jpeg)

The humidity tag can be found like:

 ![1000000680](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/0/907693a78b5445a86fbffb9b5ca40e47bb90fb0b.jpeg)

---

<div class="post-metadata">

**Author:** ![Ryan\_Melton](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ryan_melton/32/120839_2.png) [@Ryan\_Melton](https://community.homey.app/u/Ryan_Melton)\
**Post date:** [March 24, 2025, 2:36pm UTC](https://community.homey.app/t/flows-with-motion-and-humidity/133340/3 "2025-03-24T14:36:10Z")

</div>

Thank you! I noticed you used a variable. I had not figured out how they work. I figured that out and it’s working perfectly!
