No access to path error for truenas filepath

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:

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 home assistant and is a truenas issue, any help is appreciated!

Just updated the configuration yaml to this:

default_config:
homeassistant:
  allowlist_external_dirs:
    - '/mnt/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media'
    - '/NAS 16TB 2 Vdevs Mirrored /Home-assistant/Media'
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

When I boot up I get this screen:

It’s been stuck on loading log for about an hour, nothing yet

Reinstalling the app, and changing code to this fixed issue:

action: camera.record
metadata: {}
data:
  duration: 30
  lookback: 0
  filename: /media/{{now().strftime('%Y/%m/%d/%H-%M-%S') }}
target:
  area_id: living_room
  device_id: 53f2a04e47607d2bf6be39d5dcd7a331
  entity_id: camera.living_room

HI can you tell me how you got the cameras set up to HA All i really want is my doorbell to show up my DAshboard. Any help will be much appreciated.