How to set up file notify (via integration) to write outside the config directory

Hi there,

I would like to use a notify to a file, and place that file outside of the config folder.

I am using the new File integration, and for this to work, you need to add to configuration.yaml :

homeassistant:
  allowlist_external_dirs:
    - "/config"

With this config I am able to log to a file in (a subfolder of) the /config folder, after reloading HA of course.

If I want to put the file in eg. the /backup folder, I change the config to:

homeassistant:
  allowlist_external_dirs:
    - "/config"
    - "/backup"

But when I reload HA (or even do a config check), I get the error:

Invalid config for ‘homeassistant’ at configuration.yaml, line 21: Not a directory ‘allowlist_external_dirs->1’, got ‘/backup’

That directory does exist:

image

Any clues?

PS. I am using a HAOS installation (latest updates done yesterday)