Chciałem sobie dodać automatyzację, która co 30 sekund będzie mi robić automatyzację aby generowała mi snapshota co 30 sekund i mam problem z external_dirs. W logach pojawia się taki wpis
2025-02-27 18:38:30.315 ERROR (MainThread) [homeassistant.components.automation.generowanie_snapshot] generowanie_snapshot: Error executing script. Error for call_service at pos 1: Cannot write `./camera/snapshot_.jpg`, no access to path; `allowlist_external_dirs` may need to be adjusted in `configuration.yaml`
2025-02-27 18:38:30.316 ERROR (MainThread) [homeassistant.components.automation.generowanie_snapshot] Error while executing automation automation.generowanie_snapshot: Cannot write `./camera/snapshot_.jpg`, no access to path; `allowlist_external_dirs` may need to be adjusted in `configuration.yaml`
plik 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
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
allowlist_external_dirs:
- "./camera"
plik automation
- id: '1740601629391'
alias: generowanie_snapshot
description: k
triggers:
- trigger: time_pattern
seconds: '30'
conditions: []
actions:
- action: camera.snapshot
metadata: {}
data:
filename: ./camera/snapshot_.jpg
target:
device_id: eb7dd387c1037ac1f93c763393e319d2
mode: single
W czym może być problem, tak naprawdę to chciałem to wrzucać na sambe na qnap, ale narazie to nawet lokalnie nie działa
Wersja HA
Home Assistant
- Core2024.12.5
- Supervisor2025.02.1
- Operating System14.2
- Interfejs użytkownika20241127.8