added zigbee2mqtt app

This commit is contained in:
Tommy Hartmann 2024-02-23 18:03:42 +01:00
parent c0fadd8269
commit 72c95e07c4
5 changed files with 104 additions and 0 deletions

32
apps/zigbee2mqtt/config.json Executable file
View File

@ -0,0 +1,32 @@
{
"$schema": "../schema.json",
"name": "Zigbee2MQTT",
"port": 8290,
"available": true,
"exposable": true,
"id": "zigbee2mqtt",
"tipi_version": 1,
"version": "1.35",
"categories": [
"utilities",
"automation"
],
"description": "Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges",
"short_desc": "Zigbee to MQTT bridge",
"author": "@Koenkk",
"source": "https://github.com/Koenkk/zigbee2mqtt",
"website": "https://www.zigbee2mqtt.io/",
"form_fields": [
{
"type": "string",
"label": "zigbee device path",
"required": true,
"hint": "/dev/ttyUSB0",
"env_variable": "Z2M_DEVICE"
}
],
"supported_architectures": [
"arm64",
"amd64"
]
}

View File

View File

@ -0,0 +1,43 @@
version: "3.7"
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt:1.35
environment:
- TZ=${TZ}
volumes:
- ${APP_DATA_DIR}/data/:/app/data
devices:
- ${Z2M_DEVICE}:/dev/ttyACM0
ports:
- ${APP_PORT}:8080
expose:
- 8080
restart: unless-stopped
labels:
# Main
traefik.enable: true
traefik.http.middlewares.zigbee2mqtt-web-redirect.redirectscheme.scheme: https
traefik.http.services.zigbee2mqtt.loadbalancer.server.port: 8080
# Web
traefik.http.routers.zigbee2mqtt-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.zigbee2mqtt-insecure.entrypoints: web
traefik.http.routers.zigbee2mqtt-insecure.service: zigbee2mqtt-web
traefik.http.routers.zigbee2mqtt-insecure.middlewares: zigbee2mqtt-web-redirect
# Websecure
traefik.http.routers.zigbee2mqtt.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.zigbee2mqtt.entrypoints: websecure
traefik.http.routers.zigbee2mqtt.service: zigbee2mqtt-web
traefik.http.routers.zigbee2mqtt.tls.certresolver: myresolver
# Local domain
traefik.http.routers.zigbee2mqtt-local-insecure.rule: Host(`zigbee2mqtt.${LOCAL_DOMAIN}`)
traefik.http.routers.zigbee2mqtt-local-insecure.entrypoints: web
traefik.http.routers.zigbee2mqtt-local-insecure.service: zigbee2mqtt-web
traefik.http.routers.zigbee2mqtt-local-insecure.middlewares: zigbee2mqtt-web-redirect
# Local domain secure
traefik.http.routers.zigbee2mqtt-local.rule: Host(`zigbee2mqtt.${LOCAL_DOMAIN}`)
traefik.http.routers.zigbee2mqtt-local.entrypoints: websecure
traefik.http.routers.zigbee2mqtt-local.service: zigbee2mqtt-web
traefik.http.routers.zigbee2mqtt-local.tls: true

View File

@ -0,0 +1,29 @@
# Zigbee2MQTT 🐝🌉🔨
Allows you to use your Zigbee devices without the vendor's bridge or gateway.
It bridges events and allows you to control your Zigbee devices via MQTT. In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using.
|**Compatible** | **Integrations** | **Open Source** |
|---|---|---|
| Zigbee2MQTT supports [various Zigbee adapters](https://www.zigbee2mqtt.io/guide/adapters/) and a big bunch of [devices](https://www.zigbee2mqtt.io/supported-devices/). | Zigbee2MQTT integrates well with most home automation solutions because it uses [MQTT](https://mqtt.org/). | Zigbee2MQTT is licenced under the free [GNU General Public License 3](https://www.gnu.org/licenses/gpl-3.0.de.html). |
## Setup
You need to have a mqtt broker like [eclipse mosquitto](/apps/eclipse-mosquitto) running to use this app.
### Configuration of the Zigbee adapter
For USB apdaters you can use dmesg command on Linux hosts to find the mounted device. Where possible you should use the `/dev/serial/by-id/` path of the stick, instead of `/dev/tty*`. This is because the `/dev/tty*` path can change - for example ´/dev/ttyACM0` may become `/dev/ttyACM1` and then later back to `/dev/ttyACM0`. The `/dev/serial/by-id/` path won't change.
The **usb device path** must be set in the settings of the app before installing.
## Integrations
Zigbee2MQTT integrates well with (almost) every home automation solution because it uses MQTT. However the following integrations are worth mentioning:
- [Home Assistant](/apps/homeassistant)
- [Homey](https://homey.app/)
- [Domoticz](https://www.domoticz.com/)
- [Gladys Assistant](https://gladysassistant.com/)
- [IoBroker](https://www.iobroker.net/)

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB