Zigbee2MQTT

From KG7QIN's Wiki
Revision as of 02:34, 12 April 2024 by Kg7qin (talk | contribs) (Created initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Information on a Dockerized Zigbee2MQTT setup:

Setup

docker-compose.yml

version: '3.8'
services:
  # uncomment to include mqtt server as well in container
  #  mqtt:
  #    image: eclipse-mosquitto:2.0
  #    restart: unless-stopped
  #    volumes:
  #      - "./mosquitto-data:/mosquitto"
  #    ports:
  #      - "1883:1883"
  #      - "9001:9001"
  #    command: "mosquitto -c /mosquitto-no-auth.conf"

  zigbee2mqtt:
    container_name: zigbee2mqtt
    restart: unless-stopped
    image: koenkk/zigbee2mqtt
    volumes:
      - ./zigbee2mqtt-data:/app/data
      - /run/udev:/run/udev:ro
    ports:
      - 8080:8080
    environment:
      - TZ=America/Los_Angeles
    devices:
      - /dev/ttyACM0:/dev/ttyACM0