Configuring Your Zigbee Services
Quick instructions of how to configure Mosquitto and Zigbee2MQQTT ensuring it to work with this Smart Home setup.
says ⮞ I use 20x magnification when I code and debug. I use emoji to simplify logs for myself. If you can't handle my code style you can disable most of it on this website by toggling the button in the navbar. Shall duck continue?
Today we are defining our Smart Home dependencies, Mosquitto and Z2M.
I believe you can have them configured in many ways and still be compatible, but to ensure proper integration the configuration below is the duck recommended.
Feel free to play around to see what is working for your specific needs.
No delay - let's get the qwackin' started!
Mosquitto
Not really anything special going on here.
⮞ View Mosquitto code block
{ # 🦆 duck say ⮞ my house - qwack config, lib, pkgs, ... } : let in { # 🦆 duck say ⮞ qwack services.mosquitto = { enable = true; listeners = [ { # 🦆 says ⮞ mqtt:// @ 1883 acl = [ "pattern readwrite #" ]; port = 1883; omitPasswordAuth = false; # 🦆 says ⮞ safety first! users.mqtt.passwordFile = config.house.zigbee.mosquitto.passwordFIle.path; settings.allow_anonymous = false; # 🦆 says ⮞ never forget, never forgive right? # settings.require_certificate = true; # 🦆 says ⮞ T to the L to the S spells wat? DUCK! # settings.use_identity_as_username = true; } { # 🦆 says ⮞ ws:// @ 9001 acl = [ "pattern readwrite #" ]; port = 9001; settings.protocol = "websockets"; omitPasswordAuth = false; # 🦆 says ⮞ safety first! users.mqtt.passwordFile = config.house.zigbee.mosquitto.passwordFIle.path; settings.allow_anonymous = false; # 🦆 says ⮞ never forget, never forgive right? #settings.require_certificate = false; # 🦆 says ⮞ T to the L to the S spells wat? DUCK! } ]; };
Comments on this blog post