The complete messge:
2017-08-25 13:09:52 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [delay] is an invalid option for [automation]. Check: automation->action->0->delay. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
The automation
NOTE: Even though the error above shows in the log, this automation works perfectly.
######################################################
# automations for the gray room
######################################################
######################################################
# gray room wakeup turns on the light at 5:45
######################################################
alias: "grayroom wakeup"
trigger:
platform: time
at: '05:45:00'
action:
- service: logbook.log
data_template:
name: grayroom_sleep_in
message: delay of '{{ states.input_slider.grayroom_sleep_in.state | int }}'
# delay from 0 to 59 minutes may be set on the slider
- delay: '00:{{ states.input_slider.grayroom_sleep_in.state | int }}'
# turn the light on at a low level
- service: logbook.log
data_template:
name: grayroom_sleep_in
message: turning on scene.grayroom_wakeup
- service: scene.turn_on
entity_id: scene.grayroom_wakeup
# workaround for a defect with tplink bulbs that will soon be fixed
# turn the light on twice and the second time the brightness will be correct
- service: scene.turn_on
entity_id: scene.grayroom_wakeup
# wait 5 minutes then increase the brightness
- delay:
minutes: 5
- service: logbook.log
data_template:
name: grayroom_sleep_in
message: turning on scene.grayroom_ambient
- service: scene.turn_on
entity_id: scene.grayroom_ambient
# wait five minutes then increase the brightness again
- delay:
minutes: 5
- service: logbook.log
data_template:
name: grayroom_sleep_in
message: turning on scene.grayroom_bright
- service: scene.turn_on
entity_id: scene.grayroom_bright
The condition
The error shows in the log and the automation works JUST FINE.
Thoughts/