check your config if it’s valid YAML (it probably is) and check the error log if there is any indication to a problem with the automation. Then reload the automations or restart HA. Delays do work in automations. You do not have to use a script for them to work. I have an automation that uses a 1 minute delay to run off lights after arming the house and locking the door. example:
I have a All In One installer instance that works well, and when I copy my .YAML files in Hass.io, I have the same error as you !!
So I know my files are corrects…
Invalid config for [automation]: [delay] is an invalid option for [automation]
I am not getting that error, I get no error but if you go and trigger the automation (using zwave devices, so I go and open and close my door) there isn’t a delay.
I also have issues with the delay.
I have an automation where the lights should turn on for x minutes, but the delay function doesn’t work at all not in the automation nor in the script. I don’t get any errors, the configs are valid, the automation triggers fine and the lamps turn on, but stays on and don’t turn off after x time.
Here is the part of my script, I just put in 30 seconds just for testing purposes but if it works I’ll make it 5 minutes.
Yes, tried that and the time format I mentioned in my config. It should work by hitting the trigger button when selecting it from the automatic automation section in the dashboard, am I correct ?
The light does turn on so the script is being called but then it should use the delay to turn it off again.
What’s strange is in my automations, times are not in quotes, and they all work for me. Btw, I didn’t script it by hand, used the automation wizard tool in Hassio.
Ok, I think I got it solved. I have completely uninstalled my hassbian installation and reinstalled and now i’m on version 0.67.1 and the delay is working !!