Home Assistant: Difference between revisions

Hexa (talk | contribs)
Snippets: Remove manual way to configure custom components and lovelace modules
Hexa (talk | contribs)
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>
== Combine declarative and UI defined scenes ==
Scenes are configured the same way automations(described above) are.
<syntaxHighlight lang=nix>
services.home-assistant.config."scene manual" = [];
services.home-assistant.config."scene ui" = "!include scenes.yaml";
</syntaxHighlight>
</syntaxHighlight>