Hi I’ve just started using home assistant after taking the leap from SmartThings and would like to do something like Reed has done in webcore (i originally had this working using web core but I cannot for the love of money work out how to do it in HA.
I would like the lights in the room to stay on for 10 seconds if motion was less than a minute and on for 5 mins if morion was detected for more than 1 minute.
Let simplify with 2 automations - you can combine with trigger id
The on is simple but you will need a Timer helper.
Here is how I envision it working
Trigger - Motion goes from off to on
Condition - Light is off
Action - Turn on light(s)
Action - Set Timer to 61 seconds
Trigger - Motion goes from on to off
Condition - Light is on
Action - Choose
Condition - Timer is idle
Action - delay 300 seconds
Action - Turn off light(s)
Condition - Default
Action delay 10 seconds
Action - Turn off light(s)
You can create all of this from the UI.
Does this get you to where you want to be?
Edit - I built all of this from the UI and copied the yaml.