No access to path error for truenas filepath in Home Assistant

Hi everyone,

I’m having trouble setting up my Nest cam to record, specifically having an issue with “no access to path” error.

Here’s my setup:

OS: Truenas Scale ElectricEel-24.10.1

App version: Core 2025.2.4

Storage settings:

image

Configuration.yaml:

default_config:
tts:
  - platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
recorder:
  purge_keep_days: 6
  commit_interval: 3
  db_url: postgresql://home-assistant:SVk%2A%26%5E2o334JHSs@postgres:5432/home-assistant?sslmode=disable

Action yaml:

action: camera.record
metadata: {}
data:
  duration: 30
  lookback: 0
  filename: >-
    filename: /mnt3. /NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media{{
    now().strftime('%Y/%m/%d/%H-%M-%S') }}.mp4
target:
  entity_id: camera.living_room

Things I’ve tried:

  1. I tried adding the following command into my configuration.yaml file:
homeassistant: 
    allowlist_external_dirs:
        - /mnt/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media

However I got the following error:

"Logger: homeassistant.setup
Source: setup.py:275
First occurred: 4:19:24 PM (1 occurrences)
Last logged: 4:19:24 PM

Setup failed for ‘allowlist_external_dirs’: Integration not found."

  1. I’ve tried setting the path to:
    /NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media
    /mnt/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media/.mp4
    /NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media/.mp4
  2. Tried changing the actions yaml to:
action: camera.record
metadata: {}
data:
  duration: 30
  lookback: 0
filename: /mnt/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media{{now().strftime('%Y/%m/%d/%H-%M-%S') }}.mp4
target:
  entity_id: camera.living_room

However I keep getting the “Error: Can’t write filename: /mnt/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media2025/02/22/16-28-58.mp4, no access to path!” error message.

Not sure what I’m doing wrong, or if this has nothing to do with truenas and is a home assistant, any help is appreciated!

Did you ever find a solution to this? While I’m not using TrueNAS, my setup is similar (running in Docker), and getting the same errors. I’ve tried the same fixes because that’s all that the HA wiki says to do, and everything else I can find online points me to the same answer or an older syntax.