home-assistant
by benji
HomeAssistant is an open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server..
About this chart
Home Assistant
HomeAssistant is an open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server..
Installing the Chart
This chart is published two ways: as a classic Helm repo via GitHub Pages (releases only), and as an OCI artifact via the GitHub Container Registry (releases and alpha builds).
Via the classic repo:
$ helm repo add newbenji-charts https://newbenji.github.io/charts/
$ helm repo update
$ helm install my-release newbenji-charts/home-assistant --version 0.9.0
Via OCI:
$ helm install my-release oci://ghcr.io/newbenji/charts/home-assistant --version 0.9.0
To just download the chart package:
$ helm pull oci://ghcr.io/newbenji/charts/home-assistant --version 0.9.0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| config.automations | list | [] | DEPRECATED, to be removed: use an automation: section in config.packages instead. List of automations, mounted read-only at /config/automations/automations.yaml - deliberately not /config/automations.yaml, which HA's UI automation editor writes to. Load them alongside the UI ones by adding automation chart: !include automations/automations.yaml to configuration.yaml. See https://www.home-assistant.io/docs/automation/yaml/ |
| config.blueprints.automation | object | {} | Automation blueprints as a map of file name to blueprint, mounted read-only into /config/blueprints/automation/helm/. Each blueprint is either a YAML string, or a map in which HA tags must be quoted ("!input motion_entity") since Helm drops unquoted custom tags. See https://www.home-assistant.io/docs/automation/using_blueprints/ |
| config.blueprints.script | object | {} | Script blueprints, same format as blueprints.automation, mounted into /config/blueprints/script/helm/ |
| config.configuration.content | string | "# Loads default set of integrations. Do not remove.\ndefault_config:\n\n# Load frontend themes from the themes folder\nfrontend:\n themes: !include_dir_merge_named themes\n\nautomation: !include automations.yaml\nscript: !include scripts.yaml\nscene: !include scenes.yaml\n" | configuration.yaml body (seed/managed mode), as a YAML string (rendered as-is, comments kept) or a map with quoted HA tags. Must not define homeassistant: - use config.configuration.homeassistant. The default is Home Assistant's own default configuration. Keep the automation/script/scene includes so HA's UI editors keep working - they write to those files on the PVC |
| config.configuration.homeassistant | object | {} | Settings for the homeassistant: block of configuration.yaml (seed/managed mode), e.g. name, time_zone, customize. The chart adds packages: !include_dir_named packages here when config.packages is set. HA tags must be quoted, e.g. customize: "!include customize.yaml" |
| config.configuration.mode | string | "unmanaged" | Who owns /config/configuration.yaml. unmanaged: the chart doesn't touch it (HA writes its default on first boot; add includes by hand). seed: an initContainer writes the rendered file only if none exists yet, after which it's yours to edit. managed: the rendered file is mounted read-only and every change rolls the pod - configuration.yaml lives in Git. In seed and managed mode, empty automations.yaml/scripts.yaml/scenes.yaml are created if missing, since HA only creates those alongside its own default configuration.yaml. Switching an existing install to managed hides the configuration.yaml on the PVC - paste it into content first |
| config.http.ip_ban_enabled | bool | false | Ban IPs after too many failed login attempts |
| config.http.login_attempts_threshold | int | 5 | Number of failed login attempts before an IP is banned |
| config.http.trusted_proxies | list | [] | CIDR ranges of reverse proxies trusted to set X-Forwarded-For/X-Forwarded-Proto |
| config.http.use_x_forwarded_for | bool | false | Trust the X-Forwarded-For header from trusted_proxies. See https://www.home-assistant.io/integrations/http/. DEPRECATED along with all of config.http, to be removed: use an http: section in config.packages instead |
| config.notify | list | [] | DEPRECATED, to be removed: use a notify: section in config.packages instead. Rendered into configmap-notify.yaml as Home Assistant's notify platform config |
| config.packages | object | {} | Home Assistant packages (https://www.home-assistant.io/docs/configuration/packages/) as a map of file name (must end in .yaml) to package, mounted read-only into /config/packages/. A package can hold any mix of integrations - automation, script, template, sensor, recorder, ... Each is either a YAML string (rendered as-is, comments kept), or a map in which HA tags must be quoted (db_url: "!secret hadbconfig"), since Helm silently drops unquoted custom tags from values. Load them all by adding this once to configuration.yaml: homeassistant: {packages: !include_dir_named packages}. Mounting this hides any packages/ directory already on the PVC. A change rolls the pod |
| config.recorder.purge_keep_days | int | 30 | Number of days of history to keep in the recorder database. See https://www.home-assistant.io/integrations/recorder/. DEPRECATED along with all of config.recorder, to be removed: use a recorder: section in config.packages instead |
| config.scripts | object | {} | DEPRECATED, to be removed: use a script: section in config.packages instead. Scripts, mounted read-only at /config/scripts/scripts.yaml. Load them by adding e.g. script chart: !include scripts/scripts.yaml to configuration.yaml. See https://www.home-assistant.io/docs/scripts/ |
| config.secrets.existingSecret | string | "" | Mount /config/secrets.yaml (what !secret reads) from this existing Secret, e.g. one created by ExternalSecrets, SOPS or SealedSecrets. Each key in the Secret becomes one key: value entry, written by an initContainer at pod start (a single trailing newline is stripped from each value). Replaces any secrets.yaml already on the PVC - move its entries into the Secret first. Changes only apply on the next pod start; use e.g. Reloader via podAnnotations to restart automatically |
| config.secrets.fileKey | string | "" | Instead of building secrets.yaml from all keys, mount this one key of the Secret as the complete secrets.yaml file |
| config.secrets.values | object | {} | Secrets to put in a chart-created Secret instead of existingSecret, as key: value. Convenient but lands in your values in plain text - prefer existingSecret for anything committed to Git |
| config.telegram_bot | list | [] | Rendered into configmap-telegram-bot.yaml as Home Assistant's telegram_bot platform config. DEPRECATED: current Home Assistant no longer supports YAML setup for telegram_bot and errors on load - set it up via Settings > Devices & Services instead |
| dnsPolicy | string | "ClusterFirstWithHostNet" | Dns policy |
| extraContainerPorts | list | [] | Additional ports to open on the Home Assistant container, e.g. for integrations that listen on their own port (ESPHome dashboard, Matter, HomeKit Bridge, etc). Set count greater than 1 to open a contiguous range starting at containerPort. Port names must stay within Kubernetes' 15-character limit and be unique |
| extraManifests | list | [] | Additional arbitrary Kubernetes manifests to render alongside the chart, e.g. an ExternalSecret or a NetworkPolicy. Each entry is either a map (rendered via toYaml) or a string (rendered as-is); both are passed through tpl, so release/values templating works inside them |
| fullnameOverride | string | "" | |
| hadbconfig | string | "" | Recorder database connection string, written into secrets.yaml as hadbconfig and referenced by config.recorder's db_url. DEPRECATED, to be removed: put it in config.secrets and reference it from a recorder: package as db_url: "!secret hadbconfig". |
| homeAssistant.persistence.volumeName | string | "" | Bind the PVC to a specific pre-provisioned PersistentVolume by name. Leave empty to let the cluster's default provisioner handle it. |
| hostNetwork | bool | true | Enables host networking (so that home assistant can scan devices automatically on the same network). If set to false, you might want to amend dnsPolicy value as well |
| httpRoute.annotations | object | {} | Annotations to add to the HTTPRoute |
| httpRoute.enabled | bool | false | Expose Home Assistant via a Gateway API HTTPRoute instead of an Ingress. Requires the Gateway API CRDs and a Gateway to already exist in the cluster. Mutually exclusive with ingress.enabled |
| httpRoute.hostnames | list | [] | Hostnames the route matches. Leave empty to match all hostnames on the parent Gateway listener(s) |
| httpRoute.labels | object | {} | Additional labels to add to the HTTPRoute |
| httpRoute.matches | list | [{"path":"/","pathType":"PathPrefix"}] | Path matches routed to the Home Assistant service |
| httpRoute.parentRefs | list | [{"name":""}] | References to the Gateway(s) this route attaches to |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "homeassistant/home-assistant" | Home Assistant image repository |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | Annotations to add to the Ingress, e.g. ingress-controller-specific annotations such as nginx.ingress.kubernetes.io/* |
| ingress.className | string | "" | IngressClass to use, e.g. "nginx". Leave empty to use the cluster's default IngressClass |
| ingress.enabled | bool | false | Expose Home Assistant via a classic Ingress resource. Mutually exclusive with httpRoute.enabled |
| ingress.hosts | list | [{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Host/path rules routed to the Home Assistant service |
| ingress.tls | list | [] | TLS configuration for the Ingress |
| macvlan.enabled | bool | false | Give the pod a second interface directly in a LAN/VLAN with Multus + macvlan, as an alternative to hostNetwork: mDNS, SSDP, Cast and Matter/Thread discovery work on that interface, while eth0 stays a normal CNI pod interface (Services, NetworkPolicies, Gateway API). Needs Multus in the cluster and hostNetwork: false (the render fails otherwise). The chart renders the k8s.v1.cni.cncf.io/networks pod annotation, so don't set it in podAnnotations. Set Home Assistant's network adapter (Settings > System > Network) to this interface only, and its local URL to the interface IP, so Cast devices can fetch TTS and media from it |
| macvlan.extraSysctls | object | {} | Additional sysctls for the tuning plugin, e.g. {"net.ipv4.conf.net1.arp_ignore": "1"} |
| macvlan.interface | string | "net1" | |
| macvlan.ipam | object | {"type":"static"} | IPAM block of the macvlan plugin. The default static IPAM takes the addresses from ips above and adds no default route, so only the interface's own subnet goes through it |
| macvlan.ips | list | [] | Fixed addresses for the interface (CIDR), e.g. ["192.168.20.5/24"]. Keep them outside the network's DHCP range. With replicas: 1 and strategy: Recreate, the address is never in use twice |
| macvlan.ipv6.defaultRoute | bool | false | Accept an IPv6 default route from the RAs. Off by default, so internet traffic stays on eth0 |
| macvlan.ipv6.enabled | bool | true | Turn IPv6 on for the interface and accept router advertisements (via the CNI tuning plugin, since these sysctls are per interface and the interface only exists after pod start). Needed for Matter over Thread: the Thread border router announces the route to the Thread mesh in its RAs |
| macvlan.ipv6.routeInfoMaxPrefixLength | int | 64 | accept_ra_rt_info_max_plen: the longest prefix accepted from RA Route Information Options. The kernel default 0 ignores them, which drops the route to the Thread mesh (a /64) |
| macvlan.mac | string | "" | Fixed MAC address, e.g. a locally administered one (02:...), so the router/controller keeps seeing one client across pod restarts. Empty = a random MAC per pod |
| macvlan.master | string | "" | Host interface the macvlan sits on, e.g. a VLAN subinterface (iot0) that exists with the same name on every node HA can run on. Required when the chart creates the NetworkAttachmentDefinition |
| macvlan.mode | string | "bridge" | macvlan mode |
| macvlan.networkAttachmentDefinition.annotations | object | {} | Annotations for the NetworkAttachmentDefinition, e.g. an Argo CD sync wave so it exists before the pod starts |
| macvlan.networkAttachmentDefinition.create | bool | true | Create the NetworkAttachmentDefinition in the release namespace. Set to false to use an existing one, named in name below |
| macvlan.networkAttachmentDefinition.name | string | "" | Name of the NetworkAttachmentDefinition. Defaults to -macvlan when the chart creates it; required when create is false |
| matterServer.enabled | bool | false | IMPORTANT: the image runs as a non-root user (uid 1000). If the Home Assistant container runs as root (the chart's default - see securityContext above), that user can't write to the shared config volume unless you set podSecurityContext.fsGroup: 1000 (or matching whatever uid the image uses) - otherwise this crash-loops on "EACCES: permission denied, mkdir '/data/config'" and, since Kubernetes requires every container in t |
Deploy home-assistant with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has home-assistant on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthome-assistant is pinned at v0.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply