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/