Home Assistant: Difference between revisions
imported>Mweinelt →Declarative configuration: Update onboarding dependencies |
imported>Ibizaman Add tmpfiles.d rule to avoid start failure |
||
Line 355: | Line 355: | ||
"automation ui" = "!include automations.yaml"; | "automation ui" = "!include automations.yaml"; | ||
} | } | ||
</syntaxHighlight> | |||
If you did not create any automations through the UI, Home Assistant will fail loading because the <code>automations.yaml</code> file does not exist yet and it will fail including it. To avoid that, add a systemd tmpfiles.d rule: | |||
<syntaxHighlight lang=nix> | |||
systemd.tmpfiles.rules = [ | |||
"f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass" | |||
]; | |||
</syntaxHighlight> | </syntaxHighlight> | ||