I have configuration.yaml and everything works great. If I want to split configuration to !include or !include_dir_list in home-assistant.log i have this error message:
For automation.yaml
16-12-18 19:07:16 homeassistant.bootstrap: Invalid config for [automation]: expected a dictionary. Got OrderedDict([('homeassistant', OrderedDict([('name', 'Home'), ('latitude', edit), ('longitude', edit), ('elevation', 42), ('unit_system', 'metric'), ('time_zone', 'edit')])), ('frontend', {}), ('http', OrderedDict([('api_password', 'edit')])), ('updater', {}), ('discovery', {}), ('conversation', {}), ('history', {}), ('logbook', {}), ('sun', {}), ('camera', [OrderedDict([('platform', 'foscam'), ('ip', '192.168.0.105'), ('name', 'Int'), ('port', edit), ('username', 'edit'), (.... (See ?:?). Please check the docs at https://home-assistant.io/components/automation/
In configuration.yaml I have this:
automation: !include automation.yaml
In automation.yaml I have this:
- alias: 'Beep when door open'
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: binary_sensor.usadorm_mijloc
to: 'on'
action:
service: ifttt.trigger
data: {"event": "StatusUsa", "value1": "UsaDeschisa"}
I have tried even with !include_dir_list but the same result. It is only one automation.I can’t go forward since I fix these.