!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

515 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant131 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Dec 2024
@crtified:crtified.meCRTified
In reply to @netpleb:matrix.org
thanks for your help. I am also now starting to understand that. In my case I already have mosquitto installed and working (used by my HA zwave integration). So do I need to just somehow tell mosquito about zigbee2mqtt?
You rather need to tell zigbee2mqtt about mosquitto. mosquitto is the message broker, and both HA and z2m connect to the broker as client, listening and sending messages over it
20:03:07
@crtified:crtified.meCRTifiedSo on the HA side, you'll need the MQTT component in place20:03:22
@crtified:crtified.meCRTifiedand for both, you need some type of credentials20:03:34
@crtified:crtified.meCRTified * and for both, you need some type of credentials to connect to mosquitto20:03:40
@netpleb:matrix.orgnetpleb
In reply to @crtified:crtified.me
So on the HA side, you'll need the MQTT component in place
Ok, I am starting to finally understand. I do have the MQTT component in place on the HA side. I've (currently) disabled auth with mosquitto just while I try to get things working
20:04:29
@netpleb:matrix.orgnetpleb so basically you're saying there is some magic that I need to add to the zigbee2mqtt.settings = ... which should do the trick. And once mosquitto sees it, then HA will be able to see it too. 20:05:31
@netpleb:matrix.orgnetpleb * so basically you're saying there is some magic that I need to add to the zigbee2mqtt.settings = ... which should do the trick. And once mosquitto sees it, then HA will be able to see it too? 20:05:36
@crtified:crtified.meCRTifiedto both, yes 🙂20:06:51
@crtified:crtified.meCRTified

relevant part from the settings attrset in my config:

        mqtt = {
          server = "mqtt://127.0.0.1:1883";
          user = "zigbee";
          password =
            "!${config.sops.secrets."zigbee2mqtt.yaml".path} mqtt_pass";
        };
20:07:46
@crtified:crtified.meCRTifiedrelevant documentation from z2m: https://www.zigbee2mqtt.io/guide/configuration/mqtt.html#server-connection20:08:10
@netpleb:matrix.orgnetplebok, and then from the HA side it does not even need to know or care that these devices are "zigbee" right? it just thinks these are devices that magically are in the mqtt stream (sorry, I am new to home automation in general as well as home-assistant)20:09:07

Show newer messages


Back to Room ListRoom Version: 6