zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Xiaomi QBKG03LM and QBKG04LM issues

Open Koenkk opened this issue 7 years ago • 86 comments

As various (probably similar) issues with the Xiaomi QBKG03LM and QBKG04LM have been reported, I decided to create this single issue and close the other ones.

Reported issues:

  • Unresponsive after some time; no route found (#254, #884, #334)
  • Randomly turning off (#812)

Koenkk avatar Jan 26 '19 18:01 Koenkk

Regarding #884 I too had issues with QBKG03LM loosing it's connection (whilst on Coordinator firmware version: '20181024'), but due to issues described here I ended up refreshing my coordinator with version '20181224' (found here), and it's been stable since. However it's worth noting that I added an extra router between the wall switch and coordinator, so that may have helped as well...

It still occasionally turns off the lights by itself, but I haven't got to the bottom of that yet.

jarrah31 avatar Jan 29 '19 21:01 jarrah31

Seems like random turn offs are caused by having mqttadminpanel in NodeRed. I have disabled the dashboard and all looks good. Maybe it is related to the frequent networkmap lookups... Anyone, who has random turn off issues, could you please confirm that you are having mqttadminpanel in NodeRed? If so, could you please have a try with turning off the admin panel?

pkedvessy avatar Jan 30 '19 00:01 pkedvessy

Seems like random turn offs are caused by having mqttadminpanel in NodeRed. I have disabled the dashboard and all looks good. Maybe it is related to the frequent networkmap lookups... Anyone, who has random turn off issues, could you please confirm that you are having mqttadminpanel in NodeRed? If so, could you please have a try with turning off the admin panel?

I've nodered, and I've some mqtt input and ouput nodes, but I don't think I've mqttadminpanel installed :S

aimartin avatar Jan 30 '19 09:01 aimartin

Same as Aitor. I use nodered but no admin as far as I know.

I’m testing device connected through Xiaomi gateway and that to hastío through component and it seem to work just fine and stable.

Alex Catena RTM Iberia

On 30 Jan 2019, at 10:15, Aitor Martin [email protected] wrote:

Seems like random turn offs are caused by having mqttadminpanel in NodeRed. I have disabled the dashboard and all looks good. Maybe it is related to the frequent networkmap lookups... Anyone, who has random turn off issues, could you please confirm that you are having mqttadminpanel in NodeRed? If so, could you please have a try with turning off the admin panel?

I've nodered, and I've some mqtt input and ouput nodes, but I don't think I've mqttadminpanel installed :S

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

hanross2323 avatar Jan 30 '19 09:01 hanross2323

@aimartin @hanross2323 based on @pkedvessy this issue seems to happen when the network map is requested, do you request this map on a regular base?

Koenkk avatar Jan 30 '19 09:01 Koenkk

I've never requested a network map (at least, not manually, nor in NodeRed).

I still see that the device is showing up in other instances of zigbee2mqtt (I've 3 floors, and one Pi acting as independent server, posting to different MQTT topics), so it seems that even if I join to one server, eventually it will "jump" to other and that seems to cause issues... I'm planning to upgrade to the 1.1.0 version and try the "ban" feature, to see if that helps...

@Koenkk that makes sense to you?

Regards

aimartin avatar Jan 30 '19 13:01 aimartin

@aimartin are these zigbee2mqtt instances operating on the same zigbee channel?

Koenkk avatar Jan 30 '19 16:01 Koenkk

@aimartin are these zigbee2mqtt instances operating on the same zigbee channel?

I've checked my configuration.yaml and I don't see anything regarding channel... how can I check that? (I've Linux and systems knowledge, but not much in Zigbee)

aimartin avatar Jan 30 '19 16:01 aimartin

That means they are all on the same channel (I guess you also didn't set a different encryption key, meaning that the key is also the same).

You should use a separate channel for each zigbee2mqtt instance. This will also avoid any interference. (see channel https://koenkk.github.io/zigbee2mqtt/configuration/configuration.html). Note that after changing this you have to re-pair your devices.

Koenkk avatar Jan 30 '19 17:01 Koenkk

That means they are all on the same channel (I guess you also didn't set a different encryption key, meaning that the key is also the same).

You should use a separate channel for each zigbee2mqtt instance. This will also avoid any interference. (see channel https://koenkk.github.io/zigbee2mqtt/configuration/configuration.html). Note that after changing this you have to re-pair your devices.

Ouch!! I wasn´t aware of this, I'll update and change it during this weekend, seems that I'll have a lot of work xD

Will report back once done and tested, thanks!

aimartin avatar Jan 30 '19 21:01 aimartin

No, I don’t request map and I don’t think I have changed any encryption key since I just learn you can do it :)

Alex Martinez

On 30 Jan 2019, at 10:48, Koen Kanters [email protected] wrote:

@aimartin @hanross2323 based on @pkedvessy this issue seems to happen when the network map is requested, do you request this map on a regular base?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

hanross2323 avatar Jan 31 '19 06:01 hanross2323

Ok, I've started changing this, and I've found something weird:

if I put channel in a different channel (like 10), the USB device led goes to red and zigbee2mqtt doesn't start, but if I setup it to 11, it works fine. I've flashed the usb with the latest HEX (20190109).

I've also changed the network_key, will that be enough?

Regards

aimartin avatar Feb 01 '19 17:02 aimartin

Channel could be between 11 and 26.

pkedvessy avatar Feb 01 '19 18:02 pkedvessy

Channel could be between 11 and 26.

LOL, that explains a lot #Facepalm

aimartin avatar Feb 01 '19 18:02 aimartin

It's worth saying that I don't use NodeRed but still experienced the random switch offs.

I have a friend who also has a QBKG03LM which keeps turning off as well. We're going to try upgrading to the latest coordinator to see if that makes a difference (he also doesn't use NodeRed).

jarrah31 avatar Feb 02 '19 20:02 jarrah31

According to the links below [1] [2], only the versions with neutral wire (QBKG11LM / QBKG12LM) can act as Zigbee routers. The QBKG03LM / QBKG04LM are the "no neutral wire" version. Do they really work as routers?

[1] http://en.miui.com/thread-2058422-1-1.html#post_23859766 [2] https://community.aqara.com/forum/faq-1/topic/which-aqara-products-can-act-as-zigbee-repeaters-564

Nephiel avatar Feb 11 '19 14:02 Nephiel

FWIW - I'm not using zigbee2mqtt (although I'm about to make the jump) and my Aqara wall switches randomly turn off too. I'm using the Aqara gateway + Homeassistant + NodeRed and the "no neutral wire" double switch version.

They only seem to randomly switch off when I turn on bulbs all at once (smart bulbs...so the switch is on but the bulbs are set to 0%...if I set all bulbs to 100% at once). It's almost as if they are tripping something in the switch.

If I look in the Aqara app, it actually shows a log item "Double RoOff", which is interesting, as it only logs this when an API call turns them off (pushing the buttons results in a "press " in the logs). However, who knows, maybe if they trip the developers also just log a normal API off event in the logs.

The QBKG03LM / QBKG04LM are the "no neutral wire" version. Do they really work as routers?

No, they wont. Without a neutral they barely have enough power to receive, they definitely won't have enough power to drive zigbee mesh logic and repeat other signals.

timdonovanuk avatar Feb 22 '19 10:02 timdonovanuk

@timdonovanuk that make this issue even more interesting, do you have any none Xiaomi devices in this zigbee network? (e.g. tradfri)

Koenkk avatar Feb 22 '19 10:02 Koenkk

@Koenkk Indeed!

I have a Tradfri hub and the bulbs I'm testing with the Aqara switch are Tradfri bulbs, but because I'm not using zigbee2mqtt yet, I guess the tradfri and aqara devices won't be meshed as one zigbee network.

timdonovanuk avatar Feb 22 '19 11:02 timdonovanuk

@timdonovanuk do you also have tradfri bulbs connected to the aqara hub? (that's possible since a few weeks).

Koenkk avatar Feb 22 '19 11:02 Koenkk