Allowlist_external_dirs: Integration not found

In Homeassistant started with docker I have a configuration.yaml:


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

alarm_control_panel:
  - platform: manual
  
# Bitcoin    
sensor:
  - platform: bitcoin
    currency: CHF
    display_options:
      - exchangerate
      - trade_volume_btc
      - number_of_transactions
#      - miners_revenue_usd
#      - btc_mined
#      - hash_rate

  
# for access to store snapshots taken by Blink  
allowlist_external_dirs:
  - /share/appdata/HomeAssist/Snapshots

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

when starting HA the following error shows:

 ERROR (MainThread) [homeassistant.setup] Setup failed for 'allow_external_dirs': Integration not found.

Get almost crazy, what the heck is wrong?

Hi,

with YAML the indentation is important, so you have to put the allowlist_external_dirs underneath the homeassistant configuration like here:
https://www.home-assistant.io/docs/configuration/basic/

  • raspberrypi 5,
  • Core 2024.3.3
  • Supervisor 2024.03.0
  • Operating System 12.1
  • Frontend 20240307.0

I was having the same issues. I have a script:

alias: take snapshot
sequence:

  • service: camera.snapshot
    metadata: {}
    data:
    filename: /config/reolink/photo/filename.jpg
    target:
    entity_id: camera.doorbell_snapshots_clear
    mode: single

Here are the steps I took to correct it.
see: Setup basic information - Home Assistant
but pay close attention to the NOTE in blue.

  1. add to my config.yaml
default_config: # already in file
homeassistant:
  allowlist_external_dirs:
    - "/config/reolink/photo"
    - "/config/reolink/video"
    - "/tmp"  
  1. In a terminal or ssh:
chmod 766 /config/reolink
chmod 766 /config/reolink/photo
chmod 766 /config/reolink/video

3: rebooted ( I rebooted the whole system)

after this, my script worked as planned.
After more investigation: I am changing the 777 to 766.
but I am still wondering if a change of permission is needed.

Read up on 777, highly unadvisable

I know the 777 gives full access to everyone, but everyone is just me. The only thing in the directory is a picture of the people standing at my front door. After working with it, I don’t think that step is needed. Now it is working I will remove the access and see what happens.

I am also trying to get this allowlist_external_dirs to work so I can use the File service, but I keep getting an error on loading the config.

I’ve tried:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml

allowlist_external_dirs:
  - "/share/data"

But when I run the config checker I get the warning:
Configuration warnings
Integration error: allowlist_external_dirs - Integration ‘allowlist_external_dirs’ not found.

This is practically a direct copy from the HA instructions so I don’t understand what I’m doing wrong. Please can anyone explain what I’m doing wrong here?

Thanks

it needs to be under your homeassistant: section and invented like this

homeassistant:
  allowlist_external_dirs:
    - '/share/data'
1 Like