Issues with include_dir_merge_list?

I’m currently using 0.91.3 and I make a few small tweaks to my configuration.yaml file. I went to check my config via the configuration validation and got the following error:

Invalid config for [automation]: expected str for dictionary value @ data['trigger'][0]['to']. Got None
extra keys not allowed @ data['condition'][0]['state']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None. (See /config/configuration.yaml, line 155). Please check the docs at https://home-assistant.io/components/automation/
Invalid config for [automation]: expected str for dictionary value @ data['trigger'][0]['from']. Got None
expected str for dictionary value @ data['trigger'][0]['to']. Got None. (See /config/configuration.yaml, line 155). Please check the docs at https://home-assistant.io/components/automation/

My line 155 in configuration.yaml is not a line I changed but the code is only:
scene: !include_dir_merge_list scene

Any ideas what I did to break it?

it would be great to see your configuration.yaml and all files from /config/scene folder to help you further.

1 Like

Actually since the error specifically says “[automation]” it would be more useful to see the automations list.

But in the meantime, look in your automations and look for any indentation errors.

I just updated my github that should have everything I have locally now. (If anyone wants to take a peek)

I don’t see anything updated recently in the automations but I’ll keep looking. Thanks.

@finity Looks like you’re right. I noticed one of the trigger conditions wasn’t in quotes which might have worked previously but clearly now it does not. I changed that and one of the error messages went away. I’ll keep playing around with it but I’m pretty sure that’s it. Thanks!

All of the to: off and to: on in these need to be in quotes:

- alias: Front Door Motion Turn off Light
  trigger:
    platform: state
    entity_id: binary_sensor.ring_front_door_motion
    to: off
    for:
      minutes: 5
  condition:
    - condition: state
      entity_id: input_boolean.vacation_mode
      state: off
    - condition: time
      after: '23:00:00'
  action:
    - service: light.lifx_set_state
      data:
        entity_id:
         - light.front_door
        power: false
- alias: Front Door Motion Turn on Light
  trigger:
    - platform: state
      entity_id: binary_sensor.ring_front_door_motion
      from: off
to: on

i.e. to: 'off'

off and on are special words that evaluate ot 0 and 1 unless made into a string with quotations.