MQTT an Zigbee2MQTT

So that is a good point. Which account does this want? In my Homey Pro or SHS, you do not actually create users like othe applications ( or at least i have not seen this or can find it) Other wise i would make a service acount for these things

The MQTT Broker credentials, that you can configure with that app.

Ah, ok, so you want to go the zigbee2MQTT route to add Zigbee devices to Homey that aren’t natively supported?
That’s an option I didn’t think about. Still, in that case, that is not possible with just Homey.

I think it’s due to confusing names. The Zigbee2MQTT app for homey isn’t actually acting as an app to connect Zigbee devices to Homey and then publish its capabilities over MQTT. It actually is an app that serves as a client of a separate Zigbee2MQTT instance and MQTT broker in your environment.

I think you are comparing the Homey Zigbee2MQTT app with the Home Assistant Zigbee2MQTT app, but although they share their names, they are built for different purposes.

I’ll try to make it visual:

[Zigbee device] <-> [Zigbee2MQTT] <-> [MQTT broker]
[ Home Assistant ]

A Zigbee device connects to an Zigbee2MQTT instance which sends information to an MQTT broker. (A very usable configuration would be to run both Zigbee2MQTT and the MQTT broker on Home Assistant.)

The Homey Zigbee2MQTT app would then communicate with the [MQTT broker] and publish the MQTT data into a Homey device, like this

[MQTT broker] <-> [Zigbee2MQTT] <-> [Device]
[Home Assistant] [ Homey ]

I hope this makes it a bit clear how it works.

2 Likes

Thanks it does. So really i have to go down the path of the Home Assistant being the Host system fr these devices and add them to Homey using the Home Assistant Integration

As long as i know that this is the best (or only way) then happy to continue

It’s by no means the only way, but since you were already able to get HA running and pair a Zigbee device to it, it is the path of least resistance.

Look at it this way, you have to have an intermediate running somewhere anyway, regardless of whether it’s an MQTT broker, or Home Assistant.

To try either is free, so might as well try with Home Assistant and the Home Assistant Community app on Homey first to see if you feel it’s right for you. Besides, there’s pretty well no limit to the devices and cloud integrations you can use when you combine the capabilities of the two home automation platforms.

So, I have Home Assistant now up and running we Zigbee2MQTT.

Which now allows me to add a Zigbee2MQTT Bridge in Homey. This I could not do previously.

So, I have found the following. If I add a device to Home Assistant in Zigbee2 MQTT it works and exposes the different switches. Does anyone know how I can rename them from L1 or L2? For ease of recognition. Not sure if anyone knows how to make this change at all.

Also noticed if I try to add the devices using the Home Assistant Integration then try to add a device it cannot be Zigbee2MQTT it has to be Zigbee Home Automation, but this does not show the two switches when imported. Not sure if someone knows how to resolve this?

You can’t use this menu:

This is meant for the built-in Zigbee integration (ZHA).

If you want to add a new Zigbee device to Zigbee2MQTT, you need to open the Z2M addon’s web page and add it there (ā€œPermit joinā€):

So I found that creating the device with Zigbee2MQTT and then pimporting is giving me excatly what i want. I want the switches to come in either seperate or at least to be able to see the different switches.

My OCD means that i sometimes over think every thing. I am a software consultant by trade and so really analyis all the options before continuing. As i say to my clients. It is easy to think about today, tomorrow and next week when it comes to setup and workflow. But i then ask about what they are planning 6 months, 1 year and 3 years from now.

I hate when they a call and say they want to do a feature and i say to them that we bascially have to start all over again…. This has never steered me wrong. So apply it to my own uses aswel…

Drives my wife insane….