Flows with motion and humidity

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?

1 Like

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:

The humidity tag can be found like:

2 Likes

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!

1 Like