infra/roles/hass-core/templates/packages/files.yaml.j2

57 lines
2.0 KiB
Django/Jinja

---
homeassistant:
customize:
package.node_anchors:
package_name: &package_name "files"
common_attrs: &common_attrs
package: *package_name
common_attrs_templated: &common_attrs_templated
templated: true
<<: *common_attrs
sensor.inputs:
friendly_name: "{{ systemuserlist.hass.home }}/home-assistant/inputs"
host_path: "{{ systemuserlist.hass.home }}/home-assistant/inputs"
docker_path: "{{ systemuserlist.hass.home }}/home-assistant/inputs"
<<: *common_attrs
sensor.notify:
friendly_name: "{{ systemuserlist.hass.home }}/home-assistant/notify"
host_path: "{{ systemuserlist.hass.home }}/home-assistant/notify"
docker_path: "{{ systemuserlist.hass.home }}/home-assistant/notify"
<<: *common_attrs
sensor.media:
friendly_name: "{{ systemuserlist.hass.home }}/home-assistant/media"
host_path: "{{ systemuserlist.hass.home }}/home-assistant/media"
docker_path: "/usr/var/media"
<<: *common_attrs
sensor.config:
friendly_name: "{{ systemuserlist.hass.home }}/home-assistant/config"
host_path: "{{ systemuserlist.hass.home }}/home-assistant/config"
docker_path: "/config"
<<: *common_attrs
sensor.backups:
friendly_name: "/srv/homeassistant_backups"
host_path: "/srv/homeassistant_backups"
docker_path: "/config/backups"
<<: *common_attrs
sensor.recordings:
friendly_name: "/srv/hass/home-assistant/media/cameras/records"
host_path: "/srv/hass/home-assistant/media/cameras/recordings"
docker_path: "/usr/var/media/cameras/recordings"
<<: *common_attrs
sensor:
- platform: folder
folder: "{{ systemuserlist.hass.home }}/home-assistant/inputs"
- platform: folder
folder: "{{ systemuserlist.hass.home }}/home-assistant/notify"
- platform: folder
folder: "/usr/var/media"
- platform: folder
folder: "/config"
- platform: folder
folder: "/config/backups"
- platform: folder
folder: "/usr/var/media/cameras/recordings"