Home Assistant: Difference between revisions
→Snippets: Remove manual way to configure custom components and lovelace modules |
→Snippets: Reorder declarative/ui defined scenes to be closer to similar automation section |
||
| Line 318: | Line 318: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Combine declarative and UI defined scenes == | |||
Same as with automations, scenes can also be configured both declaratively and from within the UI: | |||
<syntaxhighlight lang="nix"> | |||
services.home-assistant.config."scene manual" = [ | |||
# declarative scenes go here | |||
]; | |||
services.home-assistant.config."scene ui" = "!include scenes.yaml"; | |||
</syntaxhighlight> | |||
== More Declarative Nix Configuration Examples == | == More Declarative Nix Configuration Examples == | ||
| Line 540: | Line 549: | ||
"f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass" | "f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass" | ||
]; | ]; | ||
</syntaxHighlight> | </syntaxHighlight> | ||