Help needed with simple motion lights off flow

Hi, I am am having a problem with my bathroom mirror light turning off. This has probably very simple solution but cant find it.

I hav a flow Shared Flow | Homey
When motion is turned off, light turns off after 900seconds. Is it possible some how to set that is starts countdown from zero if motion is detected again? Now if i go bathroom lights turn on > i go put for a sec and motion detection is turned off > countdown to 900 begins > i go back to bathroom to take a shower etc and lights turn off. What kind of flow I need to avoid this? Thanks.

There are already several solutions in the forum available. This is a simple one:

1 Like