Automation help: How do I make a "only trigger if a condition has been met for X seconds"

Hi everyone.
I have a automation for my kitchen, where different lights turn on/off based on presence + lux values.
But the current headache is when there is ...

Ads Links by Easy Branches
Play online games for free at games.easybranches.com

Guest Post Services www.easybranches.com/contribute