| 4 Dec 2024 |
CRTified | 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 | So on the HA side, you'll need the MQTT component in place | 20:03:22 |
CRTified | and for both, you need some type of credentials | 20:03:34 |
CRTified | * and for both, you need some type of credentials to connect to mosquitto | 20:03:40 |
netpleb | 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 | 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 | * 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 | to both, yes 🙂 | 20:06:51 |
CRTified | 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 | relevant documentation from z2m: https://www.zigbee2mqtt.io/guide/configuration/mqtt.html#server-connection | 20:08:10 |
netpleb | ok, 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 |