Skip to content

Records details of how I setup my zigbee2mqtt server on my Raspberry Pi 4 Model B

Notifications You must be signed in to change notification settings

bauerjack/zigbee_server_setup

Repository files navigation

zigbee_server_setup

Records details of how I setup my zigbee2mqtt server on my Raspberry Pi 4 Model B

Pre-config on Pi

  • Using Raspbian PI OS Full (Bookworm + Desktop + Recommended Applications)
  • Created using Raspberry Pi Imager with config for
    • Glen Easton Wifi 5ghz
    • user david
    • enabled access via my desktop ssh key
    • mdns: zigbee2mqtt.local
  • Boot to OS
  • SSH in as david
  • Enabled VNC using
    • sudo raspi-config
  • setup ssh keys
    • cd
    • cd .ssh
    • ssh-keygen
  • setup that key on github
  • cd
  • mkdir server
  • cd server
  • git clone [email protected]:bauerjack/zigbee_server_setup.git

Base Instructions

Install Dependences

Setup & Test Adapter

dmesg output after installing adapter  
  
[ 5108.869131] usb 1-1.1: new full-speed USB device number 3 using xhci_hcd  
[ 5108.976749] usb 1-1.1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00  
[ 5108.976775] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3  
[ 5108.976788] usb 1-1.1: Product: Sonoff Zigbee 3.0 USB Dongle Plus  
[ 5108.976798] usb 1-1.1: Manufacturer: ITead  
[ 5108.976807] usb 1-1.1: SerialNumber: 78ed2c652051ef119a53388ccc32aab1  
[ 5109.110110] usbcore: registered new interface driver usbserial_generic  
[ 5109.110149] usbserial: USB Serial support registered for generic  
[ 5109.120755] usbcore: registered new interface driver cp210x  
[ 5109.120868] usbserial: USB Serial support registered for cp210x  
[ 5109.120973] cp210x 1-1.1:1.0: cp210x converter detected  
[ 5109.132823] usb 1-1.1: cp210x converter now attached to ttyUSB0  
  
david@zigbee2mqtt:~/server $ ls -la /dev/ttyUSB0  
crw-rw---- 1 root dialout 188, 0 Jan 30 21:42 /dev/ttyUSB0  
  

Docker Config

  • Took default config from these instructions:
    • TODO
  • Minor Changes
    • Changed Timezone to Europe/Dublin
    • No need to change device as mine enumerated as /dev/ttyUSB0 too
  • Rootless container
    • Followed instructions from here to make the container use my userid rather than root for security reasons:
    • check my user id:
       david@zigbee2mqtt:~/server/zigbee_server_setup $ id
       uid=1000(david) gid=1000(david) groups=1000(david),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),102(input),105(render),110(netdev),115(lpadmin),993(gpio),994(i2c),995(spi)
      
    • adding user and group (dialout (group 20)) to the docker compose config

Zigbee config

About

Records details of how I setup my zigbee2mqtt server on my Raspberry Pi 4 Model B

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages