# \[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:** 16

<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:** [June 6, 2024, 11:21am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/306 "2024-06-06T11:21:07Z")

</div>

What brand/model of device is it?

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [June 6, 2024, 11:21am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/307 "2024-06-06T11:21:38Z")

</div>

In my further search I recogned it was strange that Zigbee2Mqtt could be seen by Homey a source of the action, since the device is activated by a flow or directly as device in the homey app.  
So what I did was : activate the device via the flow, directly as device in homey, and the on/off switch on the device. And looked at the log.  
The result : via script shows actition homeyscript.  
direct device shows activation via Web  
on-off switch shows activation Zigbee2Mqtt  
See screenshot.  
So perhaps my device is faulty.

 ![Screenshot 2024-06-06 131541](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1a18f3143014ed60463d5a06f14d95989b1d1458.png)

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [June 6, 2024, 11:23am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/308 "2024-06-06T11:23:20Z")

</div>

It is a TS0121 Tuya.

---

<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:** [June 6, 2024, 11:29am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/309 "2024-06-06T11:29:12Z")

</div>

Some devices are susceptible to other devices (remotes) that send commands to particular Zigbee groups (and/or broadcast messages), even when those other devices aren’t even in the same Zigbee network.

Perhaps the socket is receiving a command from such a device and turns itself on.

Have you tried pairing the device again? With z2m you can turn on “Permit join” then put the device in pairing mode, and it will be added again with the same name.

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [June 6, 2024, 11:40am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/310 "2024-06-06T11:40:00Z")

</div>

I’ll try that.  
Also created a map, and I see 2 unknown Zigbee devices, (the ones shown in red) one of them has a connection to the smart power plug. So have to find out what device that is.

 ![Screenshot 2024-06-06 133536](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/282468b91f986d44a9f026ec7155403ea73d2c66.png)

---

<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:** [June 6, 2024, 11:45am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/311 "2024-06-06T11:45:18Z")

</div>

It might also be the IKEA 5-button remote that’s connected through it, might be worthwhile to see if you can turn the socket on/off using it (provided that you don’t have actual flows that will perform that action).

---

<div class="post-metadata">

**Author:** ![TheKos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thekos/32/33969_2.png) [@TheKos](https://community.homey.app/u/TheKos)\
**Post date:** [June 6, 2024, 3:06pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/312 "2024-06-06T15:06:49Z")

</div>

Tried re-pairing. Issue is solved for now, so seems to be a solution.

---

<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:** [July 23, 2024, 10:32am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/313 "2024-07-23T10:32:52Z")

</div>

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

- Added L3 and L4 switch support.
- Added backlight\_mode support.
- Improved naming of switch flow cards.

@Joel_Larsson This should add support for L3 and L4 of your 4 channel device 😉 Please let me/us know if it works.

---

<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:** [July 25, 2024, 1:58pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/314 "2024-07-25T13:58:17Z")

</div>

@Gruijter Hi Robin,  
~~I have 3 issues but two of them could be related~~ just solved all of them

- one is that according to the z2m bridge device in my homey my z2m bridge is offline, and restarting the homey app, z2m or mqtt doesn’t fix that, but the weird thing is that everything else works as expected I can even enable pairing from homey from the bridge device  
solution: this apparently was a configuration issue on my side, I had to set `dvanced.legacy_availability_payload` to `false` source: [MQTT Topics and Messages | Zigbee2MQTT](https://www.zigbee2mqtt.io/guide/usage/mqtt_topics_and_messages.html#zigbee2mqtt-bridge-state)
- the number of joined devices is incorrect in the Homey Bridge device it says 40 while in z2m its 38, or could this be 38 devices, 1 group and 1 bridge?  
solution: also a issue on my side, my z2m configuration contained devices that weren’t there
- when I restart MQTT all z2m homey devices go in error mode and the only way to fix that is to restart the z2m homey app  
solution: this one now also seems to be fixed now that the bridge state updates automatically

While debugging this I also exposed the number of groups to your bridge, not a very exciting PR but it’s something 😉

> <https://github.com/gruijter/com.gruijter.zigbee2mqtt/pull/30>
>
> !\[IMG\_5176\](https://github.com/user-attachments/assets/06e6758c-d6dc-4f40-8af1-c…6342372fcf1)

 ![IMG_5176.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4d2bc79b56079ffa5c8db0b6f0dccc40bece8747.jpeg)

---

<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:** [July 30, 2024, 6:39pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/315 "2024-07-30T18:39:24Z")

</div>

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

- Added joined groups capability for bridge. (Thx @Sre !)

---

<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:** [July 31, 2024, 10:51am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/316 "2024-07-31T10:51:26Z")

</div>

new version 2.4.3 is released.

- Fix status bridge for legacy\_availability\_payload.

This should fix the online/offline status of the bridge when `legacy_availability_payload` is set to true.

---

<div class="post-metadata">

**Author:** ![Jorg\_Heesbeen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorg_heesbeen/32/78355_2.png) [@Jorg\_Heesbeen](https://community.homey.app/u/Jorg_Heesbeen)\
**Post date:** [July 31, 2024, 1:04pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/317 "2024-07-31T13:04:50Z")

</div>

Hi, since this update the app keeps crashing

---

<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:** [July 31, 2024, 2:28pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/318 "2024-07-31T14:28:01Z")

</div>

> [@Jorg\_Heesbeen](#):
>
> this update

Please be specific… Are you on 2.4.5?

---

<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:** [July 31, 2024, 3:03pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/320 "2024-07-31T15:03:50Z")

</div>

Athom had a bug in their release software. That got fixed now. Version 2.4.5 should work 🥵  
(That cost me a precious hour that I wanted to spend on the beach 🥴)

---

<div class="post-metadata">

**Author:** ![Jorg\_Heesbeen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorg_heesbeen/32/78355_2.png) [@Jorg\_Heesbeen](https://community.homey.app/u/Jorg_Heesbeen)\
**Post date:** [July 31, 2024, 3:28pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/321 "2024-07-31T15:28:47Z")

</div>

Yes it’s working again! But my bridge is still saying status offline.

Also tried restarting everything, including Zigbee2mqtt and the MQTT broker

Any ideas?

And enjoy the beach! 🏖

---

<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:** [July 31, 2024, 11:12pm UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/322 "2024-07-31T23:12:48Z")

</div>

Pfff, my apologies sir Heesbeen, I was just trying to help.  
Why tf do you assume I’m nagging you?

Let me try to explain why I asked what I asked:  
The last post about a version was v2.4.3

> [@Gruijter](#):
>
> 2.4.3 is released

But,  
in the meantime the changelog in the app store mentioned two newer versions with bugfixes already:

> ![Screenshot_20240801-010739_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bcf07f6c042e71a9fbcadec613c8e079867cdded.jpeg)

Hence my question about which version you meant with “_this update_” you had issues with →   
If it was v2.4.3, I would have recommended you to install v2.4.5, and see if this would solve your issue.  
But nevermind 😘

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [August 3, 2024, 7:08am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/323 "2024-08-03T07:08:29Z")

</div>

Guys, any tip how to get rid of offline notification while it’s on-line? Note the time stamps…

 ![SmartSelect_20240802_222612_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/292d0dfd41ceb39a1f743ab4e2eaf6493c42fdf0.jpeg)

---

<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:** [August 3, 2024, 7:57am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/324 "2024-08-03T07:57:59Z")

</div>

@Sharkys can you check if this helps?

> [@Sre](#):
>
> one is that according to the z2m bridge device in my homey my z2m bridge is offline, and restarting the homey app, z2m or mqtt doesn’t fix that, but the weird thing is that everything else works as expected I can even enable pairing from homey from the bridge device  
> solution: this apparently was a configuration issue on my side, I had to set `dvanced.legacy_availability_payload` to `false` source: [MQTT Topics and Messages | Zigbee2MQTT](https://www.zigbee2mqtt.io/guide/usage/mqtt_topics_and_messages.html#zigbee2mqtt-bridge-state)

---

<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:** [August 3, 2024, 11:28am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/325 "2024-08-03T11:28:21Z")

</div>

@Gruijter another issue that I have is that whenever I try to add a new device in the homey z2m app my cpu rises and (apparently) the app crashes at 2% cpu usage

 ![Scherm­afbeelding 2024-08-02 om 12.43.19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/5/65134625f398549bf33a0c17389c4f1d9a48dfb1.png)  
 ![Scherm­afbeelding 2024-08-03 om 13.24.25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/9947812cbdb4f5f10177d5de2b4c9c132241b2b8.png)

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [August 4, 2024, 8:27am UTC](https://community.homey.app/t/app-pro-zigbee2mqtt-use-zigbee-devices-via-mqtt/83214/326 "2024-08-04T08:27:09Z")

</div>

Thank you for the tip Robin, indeed, adding :

```auto
advanced:
    legacy_availability_payload: false

```

into the configuration.yaml helped. 👍

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

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