Hey,
I tried to adapt Frenck’s config a little (https://github.com/frenck/home-assistant-config) and ran into issues when validating my configuration.
To include the automation, I am using:
automation: !include_dir_list ../../automations
And my first automation:
alias: Activate kitchen light preset
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001d8db30
click_type: double
action:
- service: light.turn_off
entity_id: light.schreibtisch
- service: light.turn_on
entity_id:
- light.kochen
- light.kuechentisch_2
data:
brightness: 200
But somehow I am running into this error:
Invalid config for [automation]: expected a dictionary. Got OrderedDict([('config', OrderedDict()), ('sun', OrderedDict([('elevation', 17)])), ('automation', [OrderedDict([('alias', 'Activate preset desk light'), ('trigger', OrderedDict([('platform', 'event'), ('event_type', 'click'), ('event_data', OrderedDict([('entity_id', 'binary_sensor.switch_158d0001870ac2'), ('click_type', 'double')]))])), ('action', [OrderedDict([('service', 'light.turn_off'), ('entity_id', ['light.kochen', 'light.kuechentisch_2'])]), OrderedDict([('service', 'light.turn_on'),.... (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
My folder structure is the same as Frenck’s with the only exception that his my root starts in his config/
directory.
The error does not help me at all and maybe someone can point me toward the solution.
Thanks in advance!