zigbee2mqtt
by alekc
Bridges a Zigbee network (via a USB or network-attached coordinator) to MQTT, with no vendor hub required and Home Assistant auto-discovery built in.
About this chart
zigbee2mqtt
Bridges a Zigbee network (via a USB or network-attached coordinator) to MQTT, with no vendor hub required and Home Assistant auto-discovery built in.
Zigbee2MQTT talks to a Zigbee coordinator (USB dongle or a
network-attached adapter like the SLZB-06 over tcp://) and republishes every device's state to
MQTT, with a web frontend for pairing and a built-in Home Assistant MQTT discovery integration.
Quick start
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-zigbee2mqtt alekc/zigbee2mqtt \
--set config.mqtt.server=mqtt://my-broker:1883 \
--set config.serial.port=tcp://my-coordinator-ip:6638
Or directly from the OCI registry, no helm repo add needed:
helm install my-zigbee2mqtt oci://charts.alekc.dev/zigbee2mqtt --version 0.3.0
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/zigbee2mqtt --version 0.3.0 --verify --keyring pubring.gpg
A minimal working values.yaml for a network-attached coordinator:
persistence:
enabled: true
size: 800Mi
config:
mqtt:
server: "mqtt://my-broker:1883"
serial:
port: "tcp://192.168.1.50:6638"
adapter: zstack
ingress:
enabled: true
hosts:
- host: zigbee2mqtt.example.com
paths:
- path: /
pathType: ImplementationSpecific
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| annotations.deployment | object | {} | Deployment's annotations |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| config | object | {"frontend":true,"homeassistant":true,"mqtt":{"base_topic":"zigbee2mqtt","server":"mqtt://localhost"},"permit_join":false} | Zigbee2MQTT configuration |
| deployment.strategy | object | {"type":"Recreate"} | Deployment strategy |
| env | object | {"full":[],"simple":{}} | environment values |
| env.full | list | [] | full envs, they will be rendered as written here. Useful if you need to use secrets/cm |
| env.simple | object | {} | simple key: val based env vars |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "koenkk/zigbee2mqtt" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| livenessProbe.httpGet.path | string | "/" | |
| livenessProbe.httpGet.port | string | "http" | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| persistence.accessMode | string | "ReadWriteOnce" | |
| persistence.additionalMounts | list | [] | |
| persistence.additionalVolumes | list | [] | |
| persistence.enabled | bool | true | |
| persistence.existingClaim | string | "" | |
| persistence.size | string | "800Mi" | |
| persistence.storageClass | string | "" | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| readinessProbe.httpGet.path | string | "/" | |
| readinessProbe.httpGet.port | string | "http" | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 8080 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] |
Gotchas
configuration.yamlis re-copied from the ConfigMap into the persistent volume on every pod restart, via an init container. Any setting you change through the frontend's Settings page (rather than invalues.yaml'sconfigblock) is lost on the next restart. Zigbee network state (paired devices, keys) lives in separate files on the same volume (database.db,coordinator_backup.json) and is not touched by this, onlyconfiguration.yamlitself is overwritten.persistence.additionalVolumes/additionalMountsappend extra entries alongside the chart's own config volume/mount, they don't replace it.- A USB-attached coordinator needs a
hostPathvolume (or a device plugin) pointing at the serial device, plussecurityContext.privileged: trueor the specific device's group/GID, neither of which this chart wires up automatically; a network-attached coordinator (serial.port: tcp://...) needs neither and is the simpler path if your coordinator supports it.
Upgrade notes
No breaking changes yet. This section will list migration steps for any future release with
a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.
Deploy zigbee2mqtt with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zigbee2mqtt 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 chartzigbee2mqtt is pinned at v1.0.3 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