Invalid slug Door Open (try door_open) for dictionary value @ data['packages']

ive uploaded my sensor dir with is called Door Open.yaml and im getting this error ??
invalid slug Door Open (try door_open) for dictionary value @ data[‘packages’]

if i change it to door_open.yaml i get this error
expected a dictionary for dictionary value @ data[‘packages’][‘door_open’]

- platform: template
  sensors:
    doors_open_amount:
      value_template: "{{ expand('group.door_sensors') | selectattr('state', 'eq' , 'on') | list | count }}"
      icon_template: >-
        {% if is_state("sensor.doors_open_amount", "0") %}
          mdi:door
        {% else %}
          mdi:door-open
        {% endif %}

my line in config

sensor: !include_dir_merge_list sensors/

it looks to me like you have messed up the indentation somewhere that is outside of the door_open.yaml file. Most likely in your main configuration.yaml.

check there for bad indentation first.

That’s telling you that Door Open isn’t valid and to use door_open.

So rename that file to door_open.yaml :wink: