zigbee2mqtt

by alekc

Helm chartv1.0.3App 2.14.3GPL-3.0Verified publisher

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

KeyTypeDefaultDescription
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
configobject{"frontend":true,"homeassistant":true,"mqtt":{"base_topic":"zigbee2mqtt","server":"mqtt://localhost"},"permit_join":false}Zigbee2MQTT configuration
deployment.strategyobject{"type":"Recreate"}Deployment strategy
envobject{"full":[],"simple":{}}environment values
env.fulllist[]full envs, they will be rendered as written here. Useful if you need to use secrets/cm
env.simpleobject{}simple key: val based env vars
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"koenkk/zigbee2mqtt"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbe.httpGet.pathstring"/"
livenessProbe.httpGet.portstring"http"
nameOverridestring""
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.additionalMountslist[]
persistence.additionalVolumeslist[]
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.sizestring"800Mi"
persistence.storageClassstring""
podAnnotationsobject{}
podSecurityContextobject{}
readinessProbe.httpGet.pathstring"/"
readinessProbe.httpGet.portstring"http"
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint8080
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerationslist[]

Gotchas

  • configuration.yaml is 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 in values.yaml's config block) 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, only configuration.yaml itself is overwritten.
  • persistence.additionalVolumes/additionalMounts append extra entries alongside the chart's own config volume/mount, they don't replace it.
  • A USB-attached coordinator needs a hostPath volume (or a device plugin) pointing at the serial device, plus securityContext.privileged: true or 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartzigbee2mqtt is pinned at v1.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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