Configuration error for allowlist_external_dirs

Hi All,
I am trying to use the file sensor. It asks to add the file path to allowlist_external_dirs.
So I have made my configuration like below,

homeassistant:
  name: Home
  latitude: !secret ha_latitude
  longitude: !secret ha_longitude
  elevation: !secret ha_elevation
  unit_system: metric
  time_zone: Europe/Berlin
  allowlist_external_dirs:
    - /tmp
  customize: !include customize.yaml

But then I get error
extra keys not allowed @ data['allowlist_external_dirs']

Any idea what am I doing wrong…

Thanks !!!

2 Likes

Did you end up figuring this out? I’m having the same issue.

Home Assistant 0.116.4
Path to configuration.yaml: /config

I tried all of these configurations…

homeassistant:
  customize: !include_dir_merge_named ../customizations/entities
  allowlist_external_dirs:
    - "/tmp"
homeassistant:
  customize: !include_dir_merge_named ../customizations/entities
  allowlist_external_dirs:
    - '/tmp'
homeassistant:
  customize: !include_dir_merge_named ../customizations/entities
  allowlist_external_dirs:
    - /tmp

All of these result in a warning in the log of…

WARNING (MainThread) [homeassistant.config] Package homeassistant contains invalid customize

Any solution found please?

same error :

extra keys not allowed @ data['allowlist_external_dirs']

I will add my name to the list receiving this error. I am running version: Home Assistant 0.108.2

At least for version my version (Home Assistant 0.108.2) the older term is the one that works

whitelist_external_dirs:
  - /home/homeassistant/.homeassistant

Mine is also working in 0.117.5 docker

  # Customization file
  allowlist_external_dirs:
    - /config/dir/

I have the same problem:
It seems we can only configure the known directories in this section like “config” but not other directories outside of what the home assistant docker process volumes. Why should it be so? I am not able to understand the purpose of this setting?

  allowlist_external_dirs:
    - /config  # This one works
    - /home/vijay # This one bombs
2 Likes

Good observation…
@VijayS, why not raising this as an issue in Github…

Hello,

My tests : This option refuse subfolders
Try only the racine folder.