Problem with zigbee2mqtt for the past few days

Hello everyone,

for a few days now (since the last update?) I’ve been experiencing strange behavior from my setup:
For two mornings now I’ve woken up with my gate half open / my garage door half open / and smart plugs doing whatever they want (sudden shutdown / sudden startup)!!

It’s really annoying especially since my NAS has been without power three times (the UPS being, of course, behind the smart plug…) and it shuts down abruptly… :confused:

This problem happens at night / in the morning, but I don’t know at what time. I just tried to connect to my NUC but I see that my Gladys instance is disconnected :frowning:
Yesterday I had to restart my Node-RED container manually… It’s a big mess.

Any idea what’s going on? Is anyone else experiencing similar problems? Could some logs help me figure it out?

maybe someone is trying to hack your Zigbee network… or try re-associating the Zigbee key in Gladys with the correct model

1 Like

Hi @guim31, do you have any scenes in Gladys that could explain this behavior? In Node-RED?

Maybe check the Zigbee2mqtt logs to see if anything has changed on their side?

I had considered scenes (for an outlet in particular) but I don’t have any scenes that control my garage doors / gate.

I’ll check the logs when I get home

1 Like

Well… so this looks much more complicated than I thought.
I went home and I didn’t find anything unusual in my logs.

BUT :

  • when I pressed the switch to open the shutter in my bedroom, the garage gate opened.
  • the button to close the shutter: opened my gate
  • the button to arm my alarm turned on lights
  • etc…

I’m lost, it looks like in the z2m integration everything got mixed up!!! :confused:

Try to control directly from
gladys.local:8080/#/dashboard
to see what’s happening
also restart Zigbee2MQTT
gladys.local:8080/#/settings/tools

1 Like

I also notice (but I don’t know if it was the case before) that I see duplicates in some of my devices:


My infamous switch (which behaves erratically)

In Gladys I have it like this:

But I also have it like this: (maybe an old name I had given it… I don’t even know)

Since I only have one 6-button switch, I can’t have two of them in Gladys.

How can I debug this? I remember having issues before when removing duplicate devices. It’s also happening with other switches.

I don’t know how I can control my switch from the zigbee2mqtt interface, I don’t have a toggle or anything like that. The device sends an action that can be like button1_single or button2_long
mais je ne sais pas la déclencher moi-même à part en appuyant sur le switch physiquement.

I’ve already had this issue with duplicates. I had to delete the devices on the Gladys side and on the Zigbee side in the interface and start over.
Wouldn’t there be a solution that prevents creating duplicate devices by checking the IEEE addresses?

1 Like

I agree — it seems that’s what I had done too.
Also, a very basic question: can we display the device’s IEEE reference in Gladys? That way we can identify it even if we’ve changed its name.

I’m back here because I deleted my switches in z2m, in Gladys… I re-paired one, and I still have a strange behavior: one of the buttons always triggers my gate to open… Even though I never configured that :thinking::thinking::thinking:

Can the Gladys logs help me understand the link between that click and my gate?

Not really, the logs won’t show you anything about that

Two leads for me:

  • A scene you forgot that does that (you need to find which one :p)
  • In Zigbee2mqtt, check if there isn’t a link between 2 devices (like « if I press the button » => « open the gate »)

The thing is I’m sure of myself, I never created a scene that involves my gate and that switch. I have only one scene that links the gate, it’s with an Aqara push button (scene that works very well) :

However, I don’t really know what’s going on with my setup but I have some rather strange things:

I have a scene that closes the blinds in my bedroom at night and notifies me on Telegram that they’re closed.
A week ago during my vacation I disabled the scene because my in‑laws were at my place; I didn’t want them to be disturbed by a blind moving on its own.
So the blind didn’t move… But I received the message as if the scene had been executed :thinking:
And the same happened with the blinds in my living room…
As well as the fact that my surveillance system no longer responds properly…

So I think I have a more global issue here, but I have no idea where to start with the problem… :confused:

Isn’t that related to this?

That’s a very good question ^^

I don’t know, I did look at those scenes with calculations and everything seemed fine.

I hadn’t answered that part — I have nothing at all on that side, simply because I never understood how to create scenes from z2m (which seems possible) so I never touched anything there.

I also checked Node-RED in case I had missed a flow that would cause a mess… and I don’t have anything else.

If you stop the Gladys container for a whole night, do you still get strange behavior with your gate, etc…? Just to see if it’s really related to Gladys or if an external source has actually taken partial control of your ZigBee devices.

1 Like

I’m going to test that! :+1:

Hello,
I don’t know if this comes from Z2MQTT but suddenly at 5:05 PM I lost all sensor readings:


Is this common?

Ahhh… even if I don’t understand everything, there’s something that puzzles me:

It’s evening, my shutters have just closed. And then I receive 2 Telegram messages:

The first message comes from my first scene for the shutters… Since then I changed the message to complete it (the second message).

So it seems that Gladys is sending me a message from an old scene :expressionless: how is that possible??
I just checked, I have NOWHERE that message « Living Room Shutters Closed » configured.


Latest addition, I’m trying to tinker a bit and I notice that even when zigbee2mqtt is stopped manually (via ssh) my configuration page still shows this:

Is that « normal »?