From 2dbe0215ebb0d9524449a8a1a17205847ca51f2a Mon Sep 17 00:00:00 2001 From: tteck Date: Thu, 12 Aug 2021 11:47:15 -0400 Subject: [PATCH] Update README.md --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/README.md b/README.md index 4098a200..ad7027f2 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,57 @@ sudo systemctl status mariadb Change your recorder: db_url: in the HA configuration.yaml ```mysql://admin:password@192.168.100.lxc-ip:3306/homeassistant?charset=utf8mb4``` + + + + + +
+PVE6 Zigbee2MQTT LXC + +

Proxmox PVE6 Zigbee2MQTT LXC Container

+ +To create a new Proxmox 6 [Zigbee2MQTT](https://www.zigbee2mqtt.io/) LXC Container, run the following from Proxmox web shell. + +``` +bash -c "$(wget -qLO - https://github.com/tteck/proxmox6_z2m_lxc/raw/master/create_container.sh)" +``` + +Determine the location of your adapter (Run in the zigbee2mqtt console) +``` +ls -l /dev/serial/by-id +``` +Example Output: ```lrwxrwxrwx 1 root root 13 Jun 19 17:30 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0``` + +:warning: **Before you can start Zigbee2MQTT you need to edit the [configuration.yaml](https://www.zigbee2mqtt.io/information/configuration.html)** +``` +nano /opt/zigbee2mqtt/data/configuration.yaml +``` + +Example: +``` +frontend: + port: 9442 +homeassistant: true +permit_join: false +mqtt: + base_topic: zigbee2mqtt + server: 'mqtt://192.168.86.224:1883' + user: usr + password: pwd + keepalive: 60 + reject_unauthorized: true + version: 4 +serial: + port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 +advanced: + pan_id: GENERATE + network_key: GENERATE + channel: 20 + ``` +Zigbee2mqtt can be started after completing the configuration by running +``` +sudo systemctl start zigbee2mqtt +``` +