NixOS Home Automation | 512 Members | |
| Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant | 133 Servers |
| Sender | Message | Time |
|---|---|---|
| 4 Dec 2024 | ||
| from october 10th | 19:38:18 | |
| the latest version is 3.11.9 now | 19:38:28 | |
| and home-assistant and a few dependencies want it | 19:39:04 | |
| trying to get my zigbee dongle to work with HA...I added
but I am confused as to whether I also need to add | 19:55:35 | |
In reply to @netpleb:matrix.orgThat's not needed. zha is an alternative for interfacing zigbee | 20:00:54 | |
| zigbee2mqtt however requires an additional mqtt broker like mosquitto | 20:01:12 | |
In reply to @crtified:crtified.methanks 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? | 20:02:14 | |
In reply to @netpleb:matrix.orgYou 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 | |
| So on the HA side, you'll need the MQTT component in place | 20:03:22 | |
| and for both, you need some type of credentials | 20:03:34 | |
| * and for both, you need some type of credentials to connect to mosquitto | 20:03:40 | |
In reply to @crtified:crtified.meOk, 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 | |
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 | |
* 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 | |
| to both, yes 🙂 | 20:06:51 | |
| relevant part from the settings attrset in my config:
| 20:07:46 | |
| relevant documentation from z2m: https://www.zigbee2mqtt.io/guide/configuration/mqtt.html#server-connection | 20:08:10 | |
| 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 | |
correct. That happens via auto discovery which you enable with services.zigbee2mqtt.settings.homeassistant = true;, and for HA it's transparently "some device" | 20:09:47 | |
| an MQTT device 😄 | 20:10:23 | |
| In a similar vain, you can also use e.g. esphome.io via MQTT instead of the native API, which behaves the same from the perspective of HA | 20:10:49 | |
In reply to @hexa:lossy.networktrue, HA will list them as device within the MQTT Integration | 20:11:16 | |
In reply to @crtified:crtified.meBut for this example, HA won't "know" the difference between a device integrated via wifi on MQTT or via zigbee and z2m to MQTT | 20:11:54 | |
In reply to @crtified:crtified.meok, so when I go into HA right now and look at the MQTT integration it tells me that there is "localhost" with 1 device. When I click on that 1 device it tells me Bridge by Zigbee2MQTT Firmware: 1.41.0 Hardware: zStack3x0 20210708 | 20:17:45 | |
| so I think I'm basically done, right? now I just need to add some zigbee sensors and hopefully it will work | 20:18:13 | |
| Yeah | 20:18:18 | |
| That looks promising | 20:18:20 | |
| That what you're seeing is essentially a device that represents the state of the controller, i.e. zigbee2mqtt | 20:18:44 | |
| 5 Dec 2024 | ||
| 09:58:09 | ||
| 14:59:47 | ||