Can someone help me? I’m at my wits end pulling my hair out with this. I have been trying to convert my old automations from pre 0.45 to the new automation format. I’ve watched @bruhautomation video and followed but nothing is working. The crazy thing is these automatons all worked prior to the upgrade. Sigh…
My automations.yaml file (just trying a simple automation)
- id: test_notify_automation
alias: 'Test Notify'
hide_entity: false
initial_state: 'on'
trigger:
- platform: state
entity_id: input_boolean.notify_test
state: 'on'
action:
- service: notify.vicop3pb
data:
title: "Test Notify PB"
message: 'Notify boolean triggered {{now().strftime("%Y-%m-%d %H:%M:%S")}}'
I added the following to my configuration.yaml
automation: !include automations.yaml
config:
And i’m getting the following errors.
Testing configuration at /home/homeassistant/.homeassistant
2017-08-18 23:15:43 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up http
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up api
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up history
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up notify
2017-08-18 23:15:44 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /home/homeassistant/.homeassistant/configuration.yaml, line 130). Please check the docs at https://home-assistant.io/components/automation/
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up wemo
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up ecobee
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up android_ip_webcam
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up zone
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up group
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.2 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.2 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.2 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain wemo took 0.2 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain ecobee took 0.2 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain android_ip_webcam took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up logbook
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up media_player
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up config
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2017-08-18 23:15:44 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.0 seconds.
Failed config
automation:
- action: [source /home/homeassistant/.homeassistant/automations.yaml:9]
- data: [source /home/homeassistant/.homeassistant/automations.yaml:11]
message: Notify boolean triggered {{now().strftime("%Y-%m-%d %H:%M:%S")}}
title: Test Notify PB
service: notify.vicop3pb
alias: Test Notify
hide_entity: False
id: test_notify_automation
initial_state: on
trigger: [source /home/homeassistant/.homeassistant/automations.yaml:5]
- platform: state
entity_id: input_boolean.notify_test
state: on
Successful config (partial)
automation: