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
Olivier974
(Electronlibre)
October 24, 2020, 5:31pm
3
Any solution found please?
same error :
extra keys not allowed @ data['allowlist_external_dirs']
john1949
(John Phillips)
November 9, 2020, 5:05pm
4
I will add my name to the list receiving this error. I am running version: Home Assistant 0.108.2
john1949
(John Phillips)
November 9, 2020, 6:34pm
5
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
AbDhops
November 17, 2020, 5:44pm
6
Mine is also working in 0.117.5 docker
# Customization file
allowlist_external_dirs:
- /config/dir/
VijayS
(Vijay Sharma)
December 8, 2020, 4:33pm
7
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…
VijayS:
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
Hello,
My tests : This option refuse subfolders
Try only the racine folder.