Been spending all day getting everything up and running and everything is working except for a few automation. If I have the following automation in my config:
- alias: Garage Light
trigger:
platform: state
entity_id: binary_sensor.ecolink_doorwindow_sensor_sensor_20_0
to: 'on'
condition:
condition: state
entity_id: cover.garage_door_opener
to: closed
for:
minutes: 2
action:
- service: switch.turn_on
entity_id: switch.switch_6
- delay: 00:05:00
- service: switch.turn_off
entity_id: switch.switch_6
I get the following errors:
Testing configuration at /config
ERROR:homeassistant.config:Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['for']. Got None
extra keys not allowed @ data['condition'][0]['to']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See /config/configuration.yaml, line 28). Please check the docs at https://home-assistant.io/components/automation/
Failed config
automation:
- action: [source /config/automation/scenes.yaml:5]
- entity_id: scene.goodnight
service: scene.turn_on
- data: [source /config/automation/scenes.yaml:9]
hold_mode: sleep
service: climate.set_hold_mode
- service: hdmi_cec.standby
alias: Goodnight
trigger: [source /config/automation/scenes.yaml:2]
platform: time
at: 22:00:00
- action: [source /config/automation/scenes.yaml:20]
- entity_id: scene.goodbye
service: scene.turn_on
- data: [source /config/automation/scenes.yaml:24]
hold_mode: away
service: climate.set_hold_mode
- service: hdmi_cec.standby
- data: [source /config/automation/scenes.yaml:28]
message: Goodbye! Home is secured.
service: notify.TacoBot
alias: Goodbye
trigger: [source /config/automation/scenes.yaml:14]
platform: state
entity_id: group.household
for: [source /config/automation/scenes.yaml:18]
minutes: 10
to: not_home
- action: [source /config/automation/scenes.yaml:43]
- entity_id: scene.hello
service: scene.turn_on
- data: [source /config/automation/scenes.yaml:47]
hold_mode: home
service: climate.set_hold_mode
- data: [source /config/automation/scenes.yaml:50]
message: Welcome home!
service: notify.TacoBot
alias: Hello
condition: [source /config/automation/scenes.yaml:36]
condition: and
conditions: [source /config/automation/scenes.yaml:38]
- after: sunset
condition: sun
- before: 22:00:00
condition: time
trigger: [source /config/automation/scenes.yaml:32]
platform: state
entity_id: group.household
to: home
- action: [source /config/automation/scenes.yaml:61]
- entity_id: scene.hello
service: scene.turn_on
- data: [source /config/automation/scenes.yaml:65]
hold_mode: home
service: climate.set_hold_mode
alias: Sunset
condition: [source /config/automation/scenes.yaml:57]
condition: state
entity_id: group.household
state: home
trigger: [source /config/automation/scenes.yaml:54]
platform: sun
event: sunset
- action: [source /config/automation/scenes.yaml:72]
- data: [source /config/automation/scenes.yaml:74]
hold_mode: home
service: climate.set_hold_mode
- entity_id: light.fibaro_system_fgrgbwm441_rgbw_controller_level
service: light.turn_off
alias: Morning
trigger: [source /config/automation/scenes.yaml:69]
platform: time
at: 06:00:00
- action: [source /config/automation/telegram.yaml:7]
- data: [source /config/automation/telegram.yaml:9]
data: [source /config/automation/telegram.yaml:11]
keyboard: [source /config/automation/telegram.yaml:12]
- /woof, /night
message: I'm Taco, the dog. Woof Woof!
service: notify.TacoBot
alias: Start
trigger: [source /config/automation/telegram.yaml:2]
platform: event
event_data: [source /config/automation/telegram.yaml:5]
command: /start
event_type: telegram_command
- action: [source /config/automation/telegram.yaml:21]
- data: [source /config/automation/telegram.yaml:23]
message: woof!
service: notify.TacoBot
alias: Woof
trigger: [source /config/automation/telegram.yaml:16]
platform: event
event_data: [source /config/automation/telegram.yaml:19]
command: /woof
event_type: telegram_command
- action: [source /config/automation/telegram.yaml:32]
- entity_id: automation.goodnight
service: automation.trigger
alias: night
trigger: [source /config/automation/telegram.yaml:27]
platform: event
event_data: [source /config/automation/telegram.yaml:30]
command: /night
event_type: telegram.command
- action: [source /config/automation/notifications.yaml:9]
data: [source /config/automation/notifications.yaml:11]
message: Abbey is Home
service: notify.join
alias: Abbey is home
trigger: [source /config/automation/notifications.yaml:5]
platform: state
entity_id: group.abbey
to: home
- action: [source /config/automation/notifications.yaml:19]
data: [source /config/automation/notifications.yaml:21]
message: Abbey is Away
service: notify.join
alias: Abbey is away
trigger: [source /config/automation/notifications.yaml:15]
platform: state
entity_id: group.abbey
to: not_home
- action: [source /config/automation/notifications.yaml:28]
data: [source /config/automation/notifications.yaml:30]
message: Sunset
service: notify.join
alias: Sunset Notification
trigger: [source /config/automation/notifications.yaml:25]
platform: sun
event: sunset
- action: [source /config/automation/notifications.yaml:37]
data: [source /config/automation/notifications.yaml:39]
message: Sunrise
service: notify.join
alias: Sunrise Notification
trigger: [source /config/automation/notifications.yaml:34]
platform: sun
event: sunrise
- action: [source /config/automation/notifications.yaml:49]
- data: [source /config/automation/notifications.yaml:51]
message: A new update for Home Assistant is available.
service: notify.TacoBot
- data: [source /config/automation/notifications.yaml:54]
message: A new update for Home Assistant is available.
title: New Update
service: persistent_notification.create
alias: Update Available Notifications
trigger: [source /config/automation/notifications.yaml:46]
platform: state
entity_id: updater.updater
- action: [source /config/automation/notifications.yaml:65]
data: [source /config/automation/notifications.yaml:67]
message: Z-Wave Network is up
service: notify.TacoBot
alias: Z-Wave network is complete
trigger: [source /config/automation/notifications.yaml:62]
platform: event
event_type: zwave.network_ready
- action: [source /config/automation/notifications.yaml:78]
data: [source /config/automation/notifications.yaml:80]
message: The front door battery is at {{ states.sensor.frontdoor_battery.state }}%
service: notify.TacoBot
alias: Front door battery
trigger: [source /config/automation/notifications.yaml:74]
platform: numeric_state
below: 10
entity_id: sensor.frontdoor_battery
- action: [source /config/automation/notifications.yaml:88]
data: [source /config/automation/notifications.yaml:90]
message: The basment door battery is at {{ states.sensor.frontdoor_battery.state }}%
service: notify.TacoBot
alias: Basement door battery
trigger: [source /config/automation/notifications.yaml:84]
platform: numeric_state
below: 10
entity_id: sensor.basement_door
- action: [source /config/automation/notifications.yaml:98]
data: [source /config/automation/notifications.yaml:100]
message: The garage motion sensor battery is at {{ states.sensor.stairs_motion_battery.state }}%
service: notify.TacoBot
alias: Garage motion sensor battery
trigger: [source /config/automation/notifications.yaml:94]
platform: numeric_state
below: 10
entity_id: sensor.garage_motion_battery
- action: [source /config/automation/notifications.yaml:108]
data: [source /config/automation/notifications.yaml:110]
message: The garage door battery is at {{ states.sensor.frontdoor_battery.state }}%
service: notify.TacoBot
alias: Garage door battery
trigger: [source /config/automation/notifications.yaml:104]
platform: numeric_state
below: 10
entity_id: sensor.garage_door_sensor
- action: [source /config/automation/lights.yaml:8]
entity_id: switch.switch_9
service: switch.turn_off
alias: Turn off porch light
trigger: [source /config/automation/lights.yaml:5]
platform: sun
event: sunset
- action: [source /config/automation/lights.yaml:17]
entity_id: switch.switch_6
service: switch.turn_on
alias: Basement Door Open
trigger: [source /config/automation/lights.yaml:13]
platform: state
entity_id: binary_sensor.ecolink_doorwindow_sensor_sensor_19_0
to: on
- action: [source /config/automation/lights.yaml:26]
entity_id: switch.switch_6
service: switch.turn_off
alias: Basement Door Closed
trigger: [source /config/automation/lights.yaml:22]
platform: state
entity_id: binary_sensor.ecolink_doorwindow_sensor_sensor_19_0
to: off
- action: [source /config/automation/lights.yaml:58]
- entity_id: switch.switch_6
service: switch.turn_on
- delay: 00:05:00
- entity_id: switch.switch_6
service: switch.turn_off
alias: Garage Light
condition: [source /config/automation/lights.yaml:52]
condition: state
entity_id: cover.garage_door_opener
for: [source /config/automation/lights.yaml:56]
minutes: 2
to: closed
trigger: [source /config/automation/lights.yaml:48]
platform: state
entity_id: binary_sensor.ecolink_doorwindow_sensor_sensor_20_0
to: on
- action: [source /config/automation/lights.yaml:92]
entity_id: switch.switch_11
service: switch.turn_on
alias: Living Room Switch - On
trigger: [source /config/automation/lights.yaml:88]
platform: state
entity_id: switch.switch_3
to: on
- action: [source /config/automation/lights.yaml:101]
entity_id: switch.switch_11
service: switch.turn_off
alias: Living Room Switch - Off
trigger: [source /config/automation/lights.yaml:97]
platform: state
entity_id: switch.switch_3
to: off
- action: [source /config/automation/lights.yaml:119]
- entity_id: switch.switch_2
service: light.turn_on
- delay: 00:05:00
- entity_id: switch.switch_2
service: light.turn_off
alias: Stair lights
condition: [source /config/automation/lights.yaml:115]
after: 22:00:00
before: 06:00:00
condition: time
trigger: [source /config/automation/lights.yaml:110]
platform: state
entity_id: sensor.vision_zp3102_eu_pir_motion_sensor_alarm_level_30_1
from: 0
to: 255
If I comment out just that automation (and leave the rest), it passes fine.