2017-06-08 18:08:07
ERROR (MainThread) [homeassistant.config]
Invalid config for [automation]: [automation] is an invalid option for [automation].
Check: automation->automation. (See /home/homeassistant/.homeassistant/configuration.yaml, line 55).
Please check the docs at https://home-assistant.io/components/automation/
Line 55 is the line before Include automationyaml in configuration.yaml:
Have followed the examples from
But nevertheless it did not succeed.
Hope a sharp super user can figure out my mistakes and make me happy.
- alias: 'Switch on automaticaly'
trigger:
- platform: time
seconds: 10
action:
- service: switch.turn_on
entity.id: switch.light_in_the_office
The new error log:
The following errors have been logged this session:
2017-06-08 18:46:16 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 3, column 5
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 6, column 5
2017-06-08 18:46:16 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 3, column 5
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 6, column 5
The following errors have been logged this session:
2017-06-08 20:27:21 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 1, column 1
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 9, column 1
2017-06-08 20:27:21 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 1, column 1
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 9, column 1
Only Automation and not Automation 2 is displayet in frontend:
- alias: 'Switch on automatically'
trigger:
- platform: time
seconds: '/6'
action:
- service: switch.turn_on
entity_id: switch.light_in_the_office
automation 2:
- alias: 'Switch off automatically'
trigger:
- platform: time
seconds: '/12'
action:
- service: switch.turn_off
entity_id: switch.light_in_the_office
The following errors have been logged this session:
2017-06-08 20:45:37 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 1, column 1
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 9, column 1
2017-06-08 20:45:37 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in "/home/homeassistant/.homeassistant/automations.yaml", line 1, column 1
expected <block end>, but found '?'
in "/home/homeassistant/.homeassistant/automations.yaml", line 9, column 1
TIME TRIGGER
Time can be triggered in many ways. The most common is to specify at and trigger at a specific point in time each day. Alternatively, you can also match if the hour, minute or second of the current time has a specific value. You can prefix the value with a / to match whenever the value is divisible by that number. You cannot use at together with hour, minute or second.
automation:
trigger:
platform: time
# Matches every hour at 5 minutes past whole
minutes: 5
seconds: 00
automation 2:
trigger:
platform: time
# When 'at' is used, you cannot also match on hour, minute, seconds.
# Military time format.
at: '15:32:00'
automation 3:
trigger:
platform: time
# You can also match on interval. This will match every 5 minutes
minutes: '/5'
seconds: 00