# \[APP\]\[Pro\] Zigbee2MQTT - Use Zigbee devices via MQTT

**URL:** <https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214>\
**Category:** Apps\
**Tags:** app, zigbee, tools, homey-pro\
**Created:** [June 26, 2023, 7:02am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214 "2023-06-26T07:02:44Z")\
**Posts on this page:** 20\
**Page:** 18

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 8, 2024, 7:14pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/348 "2024-10-08T19:14:07Z")

</div>

> [@Jan\_Z](#):
>
> Then I installed Zigbee2MQTT, filled in the ipv4 (127.0.0.1, localhost etc results in the same error), user, pw, and left the last field blank during bridge device add wizard.

You can’t be running zigbee2mqtt on Homey, so you can’t use 127.0.0.1 as broker address.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [October 9, 2024, 10:38am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/349 "2024-10-09T10:38:09Z")

</div>

@Jan_Z I think what Robert is trying to ask is, did you install and connect a [zigbee2mqtt **bridge**](https://www.zigbee2mqtt.io/guide/getting-started/#prerequisites) in your network and is it connected properly to your mqtt server?

Beware, the homey zigbee2mqtt **app** is NOT a Zigbee2mqtt **bridge**!  
So your setup should be:

Homey zigbee2mqtt app ↔ mqtt server ↔ zigbee2mqtt bridge ↔ Zigbee devices.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [October 9, 2024, 11:21am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/350 "2024-10-09T11:21:52Z")

</div>

> [@Gruijter](#):
>
> **How to setup**
> 
> 1. You need to have Zigbee2MQTT and an MQTT broker running, e.g. on a Raspberry Pi. See instructions here: [Getting started | Zigbee2MQTT](https://www.zigbee2mqtt.io/guide/getting-started/)

Please carefully read the instructions in the first post of this thread.

---

<div class="post-metadata">

**Author:** ![Elinu](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@Elinu](https://community.homey.app/u/Elinu)\
**Post date:** [October 20, 2024, 2:40am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/351 "2024-10-20T02:40:23Z")

</div>

Hi all, new to z2m and need some help. I’ve installed mosquitto and zigbee2mqtt on my NAS within HAOS. Using the zigstar uzg 01 adapter via wifi. Have managed to get mosquitto and z2m running on HAOS following the documentation. Now I’m stuck trying to add the bridge in the homey.

1. Is it possible to add the bridge in homey app before adding my zigbee devices to z2m? Or do I need to add all my devices to z2m first before adding the bridge?
2. When trying to add the bridge, I keep getting the timeout error. Not sure if I’m putting in the correct credentials. This is what I’ve tried so far:

IP address: tried the local IP (192.168.1.41) as well as mqtt://core-mosquitto  
Port: left as 1883  
username/pw: tried the one specified in the HA z2m app (addons) as well as the user I had to create on HA when configuring mosquitto  
Zigbee2MQTT TOP Topic: Tried leaving it blank as well as setting it to “zigbee2mqtt”

What am I missing or doing wrong? Would appreciate any help.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 9, 2024, 10:16am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/352 "2024-11-09T10:16:48Z")

</div>

New version 2.4.8 is ready for testing: [Zigbee2MQTT | Homey](https://homey.app/a/com.gruijter.zigbee2mqtt/test/)

- Action event received trigger based on string match.

Many thx to @OH2TH for this addition!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 9, 2024, 11:23am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/353 "2024-11-09T11:23:08Z")

</div>

Before the new card, I had a flow:

 ![Screenshot 2024-11-09 at 13.02.43](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/491325811d97498ecbc01f6f672e3c792cff755b.jpeg)

With the new card, it is simpler:

 ![Screenshot 2024-11-09 at 13.04.41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/491a064349534acf605a803efd5d1f2418232b13.jpeg)

Has also a more complex setup with HomeyScript:

 ![Screenshot 2024-11-09 at 13.06.38](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/1248c98cdb2364a3701b305e6466b99ed95368c0.jpeg)

And with the new card:

 ![Screenshot 2024-11-09 at 13.13.19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9eed3fba87b4cd579f9afcffb9c10481cc6644fc.jpeg)

All in all, easier to setup triggers and the flows become a bit more readable. Also, the flow doesn’t trigger on every event from the buttons unless specically expecting for an event.

---

<div class="post-metadata">

**Author:** ![Alex\_Wijnsma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex_wijnsma/32/118709_2.png) [@Alex\_Wijnsma](https://community.homey.app/u/Alex_Wijnsma)\
**Post date:** [November 11, 2024, 4:56pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/354 "2024-11-11T16:56:29Z")

</div>

When I add my Home Assistant as a bridge in Homey, it goes offline after a few hours. The only way to reconnect it is to remove the bridge and add it again. Anyone have an idea what this could be? Greetings

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 11, 2024, 6:01pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/355 "2024-11-11T18:01:45Z")

</div>

> [@Alex\_Wijnsma](#):
>
> When I add my Home Assistant as a bridge in Homey,

HA is not a bridge for Z2M, so what do you mean exactly?  
Z2M works completely without HA (but HA can run alongside of Homey with Z2M).

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 11, 2024, 6:15pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/356 "2024-11-11T18:15:56Z")

</div>

> [@Gruijter](#):
>
> HA is not a bridge for Z2M, so what do you mean exactly?

They’re probably running z2m as a HAOS addon.

---

<div class="post-metadata">

**Author:** ![Alex\_Wijnsma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex_wijnsma/32/118709_2.png) [@Alex\_Wijnsma](https://community.homey.app/u/Alex_Wijnsma)\
**Post date:** [November 11, 2024, 11:00pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/357 "2024-11-11T23:00:13Z")

</div>

Okay, I mean in Home Assistant I have a Zigbee2Mqtt Broker for my Sonof Zigbee Stick. When I add this as a bride in Homey, it works for a few hours and I can also add my devices that I have in Home Assistant to Homey. Hopefully you can do something with this information.

Greetings

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 12, 2024, 6:56am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/358 "2024-11-12T06:56:25Z")

</div>

Where are you running the MQTT broker: HAOS or on Homey?

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 12, 2024, 11:33am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/359 "2024-11-12T11:33:37Z")

</div>

new version 2.5.0 is ready for testing: [Zigbee2MQTT | Homey](https://homey.app/a/com.gruijter.zigbee2mqtt/test/)

- Added support for SONOFF TRVZB thermostat.
- Added possibility to send custom payload settings via a flow.

Thanks @Faceless for donating a SONOFF thermostat for this!

With the custom payload flowcard you can now set control values to a device that are not (yet) supported by Homey capabilities. E.g. for the SONOFF thermostat there is a function to calibrate the measured temperature. You can now send this command to the thermostat:  
`{"local_temperature_calibration": -0.2}`

See documentation on available commands on the Z2M docs. This is for the SONOS device: [SONOFF TRVZB control via MQTT | Zigbee2MQTT](https://www.zigbee2mqtt.io/devices/TRVZB.html)

---

<div class="post-metadata">

**Author:** ![Alex\_Wijnsma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex_wijnsma/32/118709_2.png) [@Alex\_Wijnsma](https://community.homey.app/u/Alex_Wijnsma)\
**Post date:** [November 13, 2024, 6:26am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/360 "2024-11-13T06:26:17Z")

</div>

Mqtt Broker run on HAOS

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 13, 2024, 6:41am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/361 "2024-11-13T06:41:33Z")

</div>

That’s good 👍🏻 I assume your Home Assistant server has a fixed IP address on your network?

---

<div class="post-metadata">

**Author:** ![Alex\_Wijnsma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex_wijnsma/32/118709_2.png) [@Alex\_Wijnsma](https://community.homey.app/u/Alex_Wijnsma)\
**Post date:** [November 13, 2024, 5:31pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/362 "2024-11-13T17:31:12Z")

</div>

Yes i use a fixed ip adress 😊

---

<div class="post-metadata">

**Author:** ![Alex\_Wijnsma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex_wijnsma/32/118709_2.png) [@Alex\_Wijnsma](https://community.homey.app/u/Alex_Wijnsma)\
**Post date:** [November 15, 2024, 6:39pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/363 "2024-11-15T18:39:45Z")

</div>

Hello,

I can’t find the problem, it seems that the broker goes into sleep mode or something like that. I have also tried to create my own user for homey without success. Anyone else have an idea?

Greetings

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 16, 2024, 3:20am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/364 "2024-11-16T03:20:09Z")

</div>

You did add the [MQTT integration](https://www.home-assistant.io/integrations/mqtt) as well?

You can run the Homey [MQTT broker](https://homey.app/en-nl/app/nl.scanno.mqttbroker/MQTT-Broker/test/) app instead, to see if it gets better results.

Otherwise feel free to take a look at [my tutorial](https://community.homey.app/t/tutorial-pro-how-to-integrate-home-assistant-with-homey-pro/92641) about connecting HA + Z2M and Homey per MQTT.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 16, 2024, 6:14am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/365 "2024-11-16T06:14:26Z")

</div>

> [@Alex\_Wijnsma](#):
>
> it seems that the broker goes into sleep mode or something like that

When it happens again, you can use an app like [MQTT Explorer](https://mqtt-explorer.com/) to check if your broker is still accessible. If so, the problem is likely not caused by the broker.

---

<div class="post-metadata">

**Author:** ![Sre](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sre/32/73560_2.png) [@Sre](https://community.homey.app/u/Sre)\
**Post date:** [December 2, 2024, 7:43am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/366 "2024-12-02T07:43:10Z")

</div>

![Screenshot 2024-12-02 at 08.40.35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/2951b9c9518add34eaf73295a1810ee8f05d092b.png)

@Gruijter I noticed Z2M 2.0.0 will be released tomorrow and that it contains breaking changes, did you already do a check if the changes affect us?  
See this link for more information: [Zigbee2MQTT 2.0.0 breaking changes · Koenkk/zigbee2mqtt · Discussion #24198 · GitHub](https://github.com/Koenkk/zigbee2mqtt/discussions/24198)

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [December 2, 2024, 9:01am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/367 "2024-12-02T09:01:04Z")

</div>

It might break some stuff. We’ll find out soon enough 😜

[Previous page](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214.md?page=17)

[Next page](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214.md?page=19)
