README.md
This commit is contained in:
50
README.md
50
README.md
@@ -32,6 +32,7 @@ Using [code-server docker container](#code-server) for Development / Maintenance
|
|||||||
- [Docker devices](#docker-devices)
|
- [Docker devices](#docker-devices)
|
||||||
- [Host](#host)
|
- [Host](#host)
|
||||||
- [proxmox - lxc container](#proxmox---lxc-container)
|
- [proxmox - lxc container](#proxmox---lxc-container)
|
||||||
|
- [OS](#os)
|
||||||
- [Packages and Requirements](#packages-and-requirements)
|
- [Packages and Requirements](#packages-and-requirements)
|
||||||
- [Users \& Groups](#users--groups)
|
- [Users \& Groups](#users--groups)
|
||||||
- [fstab](#fstab)
|
- [fstab](#fstab)
|
||||||
@@ -177,9 +178,7 @@ Links:
|
|||||||
|
|
||||||
Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges
|
Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges
|
||||||
|
|
||||||
For more information about home assistant integration [check home assistant repo](/marcio.fernandes/homeassistant#Zigbee2mqtt).
|
Currently using portainer stack (name: zigbee2mqtt) with git reference to this repo [docker compose](./services/zigbee2mqtt/docker-compose.yaml).
|
||||||
|
|
||||||
Currently using portainer stack (name: zigbee2mqtt) with git reference to this repo. [Docker compose](./services/zigbee2mqtt/docker-compose.yaml)
|
|
||||||
|
|
||||||
SONOFF Universal Zigbee 3.0 USB Dongle Plus attached on [proxmox host](#host).
|
SONOFF Universal Zigbee 3.0 USB Dongle Plus attached on [proxmox host](#host).
|
||||||
|
|
||||||
@@ -203,11 +202,11 @@ chown 100000:100020 /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plu
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Gitea [Continuous deploy action](./.gitea/workflows/services.zigbee2mqtt.yml).
|
Links
|
||||||
|
|
||||||
Links:
|
|
||||||
|
|
||||||
- [https://www.zigbee2mqtt.io/](https://www.zigbee2mqtt.io/)
|
- [https://www.zigbee2mqtt.io/](https://www.zigbee2mqtt.io/)
|
||||||
|
- [Home assistant integration](/marcio.fernandes/homeassistant#Zigbee2mqtt)
|
||||||
|
- [Continuos Deploy - git action](./.gitea/workflows/services.zigbee2mqtt.yml)
|
||||||
|
|
||||||
## Host
|
## Host
|
||||||
|
|
||||||
@@ -223,7 +222,7 @@ cores: 2
|
|||||||
features: fuse=1,keyctl=1,nesting=1
|
features: fuse=1,keyctl=1,nesting=1
|
||||||
hostname: homesrv01
|
hostname: homesrv01
|
||||||
memory: 1500
|
memory: 1500
|
||||||
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.2,hwaddr=42:F5:02:BC:77:81,ip=192.168.1.252/24,ip6=dhcp,type=veth
|
net0: name=eth0,bridge=vmbr0,firewall=1,ip6=dhcp,...,type=veth
|
||||||
onboot: 1
|
onboot: 1
|
||||||
ostype: ubuntu
|
ostype: ubuntu
|
||||||
protection: 1
|
protection: 1
|
||||||
@@ -236,6 +235,43 @@ lxc.cgroup2.devices.allow: c 188:* rwm
|
|||||||
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
|
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
lxc.cgroup2.devices.allow and lxc.mount.entry identification
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# identify usb pen
|
||||||
|
lsusb
|
||||||
|
|
||||||
|
# example
|
||||||
|
# Bus 001 Device 008: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
|
||||||
|
|
||||||
|
|
||||||
|
#replace with bus and device id
|
||||||
|
ls -l /dev/bus/usb/001/008
|
||||||
|
|
||||||
|
#example result
|
||||||
|
# crw-rw-r-- 1 root root 189, 7 May 17 15:56 /dev/bus/usb/001/008
|
||||||
|
|
||||||
|
# so
|
||||||
|
|
||||||
|
#lxc.cgroup2.devices.allow: c 189:* rwm
|
||||||
|
#lxc.mount.entry: usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 none bind,optional,create=file
|
||||||
|
|
||||||
|
ls -l /dev/serial/by-id/
|
||||||
|
# example result
|
||||||
|
#lrwxrwxrwx 1 root root 13 May 17 15:56 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 -> ../../ttyUSB0
|
||||||
|
|
||||||
|
ls -l /dev/ttyUSB0
|
||||||
|
#example result
|
||||||
|
#crw-rw---- 1 root dialout 188, 0 May 17 15:56 /dev/ttyUSB0
|
||||||
|
|
||||||
|
#so
|
||||||
|
|
||||||
|
#lxc.cgroup2.devices.allow: c 188:* rwm
|
||||||
|
#lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
|
||||||
|
```
|
||||||
|
|
||||||
|
### OS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# lsb_release -a
|
# lsb_release -a
|
||||||
Distributor ID: Ubuntu
|
Distributor ID: Ubuntu
|
||||||
|
|||||||
Reference in New Issue
Block a user