Hi,
My SD card got broken and I had to reinstall my HA. When I try to copy my previous configuration I get following error:
homeassistant@raspberrypi:~$ /srv/homeassistant/homeassistant_venv/bin/hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up introduction
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up http
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up history
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up api
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up zwave
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up group
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up scene
2017-04-12 06:23:20 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [before] is an invalid option for [automation]. Check: automation->trigger->0->before. (See /home/homeassistant/.homeassistant/configuration.yaml, line 149). Please check the docs at https://home-assistant.io/components/automation/
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up switch
2017-04-12 06:23:20 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-04-12 06:23:21 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-04-12 06:23:21 INFO (MainThread) [homeassistant.setup] Setting up config
2017-04-12 06:23:21 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-04-12 06:23:21 INFO (MainThread) [homeassistant.setup] Setting up logbook
Failed config
automation:
- action: [source /home/homeassistant/.homeassistant/configuration.yaml:155]
data: [source /home/homeassistant/.homeassistant/configuration.yaml:158]
brightness: 130
entity_id: group.living_room
service: homeassistant.turn_on
alias: Rule 1 Light on in the morning
trigger: [source /home/homeassistant/.homeassistant/configuration.yaml:151]
platform: time
after: 06:30:00
before: 07:30:00
- action: [source /home/homeassistant/.homeassistant/configuration.yaml:164]
entity_id: group.living_room
service: homeassistant.turn_off
alias: Rule 2 - Light off in the morning
trigger: [source /home/homeassistant/.homeassistant/configuration.yaml:161]
platform: time
after: 07:30:00
Here’s my config (it was working before):
automation:
- alias: 'Rule 1 Light on in the morning'
trigger:
platform: time
after: '06:30:00'
before: '07:30:00'
action:
service: homeassistant.turn_on
entity_id: group.living_room
data:
brightness: 130
- alias: 'Rule 2 - Light off in the morning'
trigger:
platform: time
after: '07:30:00'
action:
service: homeassistant.turn_off
entity_id: group.living_room
==========================
Any ideas what’s wrong?
Cheers
Slaw