Xiaomi zigbee switch

Hello everyone,

I purchased a Xiaomi switch (the same one, I think, as the one used in the explanatory video on Zigbee2mqtt). I can pair it perfectly but it disappears after an hour or two. I have repeated the procedure several times, forcing the removal each time, with the same result.

If you have any suggestions for solutions, or another model of wireless switch to recommend, I’m interested.

Thanks in advance and happy holidays

I don’t have the video in front of me, are you talking about this switch?

I’m surprised by this behavior, it looks like a Zigbee dongle problem or maybe interference. Do you have a Wi-Fi device near your Gladys box?

Here are some tips to follow: Improve network range and stability | Zigbee2MQTT

Yes, that is indeed the model. The Raspberry Pi is just behind the Delta box. Do you think this could have an impact?

minimum 20 cm recommended but 50 cm is better

Thank you very much, I’ll test it tonight. Do I need to redo the pairing?

I don’t think so, but when in doubt, it’s a plus :ok_hand:

Hello,

Well, I redid the pairing, moved it at least 50 cm away from the Freebox and it’s the same thing: the pairing holds for about an hour… I left the button near the Raspberry Pi, because I read somewhere that this could happen if the button detects a « linkquality » that’s too low, but that didn’t change anything.

Can you tell us which dongle you have? And could you take a photo of your setup for us?

Do you have other ZigBee devices or is this the first one?
Do you have a way to test its battery?
Did you go directly to the ZigBee2MQTT interface (accessible from the integration’s configuration page)?
If there’s no change, can you retrieve the logs from the Gladys and ZigBee2MQTT containers?
When you say it « disappears », where does it disappear from?

Did you do a factory reset?
I had a problem with a zbminil2 that always went into pairing mode when we turned it on. After a factory reset it started working properly.

Thank you for helping me identify the problem and sorry for the late reply.

@guim31 I’m using the Sonoff dongle, the same one I think is in the video. Here’s a photo of the installation (it’s a bit of a mess…)Photo

@ I have US Zigbee outlets and I have no problem. I changed the switch’s battery with no result, and during pairing the battery level does come back up (100%).
In the ZigBee2MQTT interface, the switch appears correctly. I have no idea how to retrieve the logs.
When I say it disappears, I’m talking about the connection. I added the switch to the dashboard, and at first the status updates correctly but after

For me, regarding the setup it’s too crowded.

You should be able to move the RPi away from the router, or failing that use a USB extension cable for the dongle (often recommended).

You should also try changing the channel in the Zigbee2mqtt interface.

After that I won’t be able to help you anymore :sweat_smile::wink:

Thank you very much, I’ll try to move all that away. However, I don’t know how to change the channel in the ZigBee2MQTT interface; I’ll take a look at the docs.
I also received a Xiaomi door sensor, which is normally recognized by ZigBee2MQTT but won’t pair. What if I flashed the Sonoff dongle with the latest firmware?

Do you mean that if you operate the switch, the new state does not get reported to the dashboard? And in that case, is the correct value present in the ZigBee2MQTT interface?

There should be a small hole into which you need to insert a small pin. Then you should either do a short press, several presses, or a press of several seconds (check the manual).

If I toggle the switch, everything works at first. The state is correctly reported in the dashboard and the scene where it controls the outlets works. But after about an hour, the state no longer updates in the dashboard, and it no longer controls the outlets.

Hello,

I added an extension cable for the Sonoff dongle, tried with another switch and everything seems to be working perfectly. I even managed to pair the Aqara door sensor.
The problem therefore apparently came from the absence of the extension.

Thank you very much for your help and have a great holiday season

1 Like