The second scripts looks for that light to be on during the day - and if so turn it off in 10 seconds. I never see the light turn on due to the first automation as long as the 2nd one is enabled…I’m running
Home Assistant
0.84.5
Tom, that worked! If you don’t mind can you give a short explanation on why? I think I could guess but would like to have someone more knowledgeable than me explain. Really appreciate that quick response…
I think you screwed the pooch with your indenting for the actions… The delay and the service should be shifted 2 spaces left (as well as the remaining lines for the service.
Also automations do funny things if you call them a second time and the delay is still running in the first one.
I screwed up the indentation too. If it works for you good, but it should probably be updated to my edited version above (note the action: indentations).