Alarm goes off immediately

i have this in my configuration.yaml. when i arm my alarm it waits fine 20 seconds so i can reach out of the house. but when I get home my alarm goes off right away so I can not when to turn it off. what should i put into my automation so that it waits the 20 seconds, that i have written in delay_time, before it goes off?