Home Assistant: Difference between revisions

imported>Makefu
add note about integrations in home-assistant
imported>Krav
add example config for containerized version
Line 20: Line 20:
* [https://www.home-assistant.io/installation/linux#install-home-assistant-container Install Home Assistant Container (home-assistant.io)]
* [https://www.home-assistant.io/installation/linux#install-home-assistant-container Install Home Assistant Container (home-assistant.io)]


'''TODO:''' add example configuration
=== Example Configuration ===
 
Adding the following to your `configuration.nix` will bring up home-assistant listening on `:8123` on the host interface.
 
<syntaxHighlight lang=nix>
  virtualisation.oci-containers = {
    backend = "podman";
    containers.homeassistant = {
      volumes = [ "home-assistant:/config" ];
      environment.TZ = "Europe/Berlin";
      image = "ghcr.io/home-assistant/home-assistant:stable";
      extraOptions = [
        "--network=host"
        "--device /dev/ttyACM0:/dev/ttyACM0"  # Example, change this to match your own hardware
      ];
    };
  };
}
</syntaxHighlight>
 


== NixOS Module ==
== NixOS Module ==