Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment: Turned off the coordinator for several days. Xiaomi devices no longer communicate #1684

Closed
directman66 opened this issue Jul 3, 2019 · 9 comments
Labels
stale Stale issues

Comments

@directman66
Copy link

Experiment: Turned off the coordinator for several days.
When turned on, some xiaomi devices fell asleep and on waking up refused to connect to the coordinator cc2561. (wall switches without zero (QBKG04LM and QBKG03LM), motion sensors (both versions RTCGQ01LM and RTCGQ11LM), leakage sensor SJCGQ11LM, wall-mounted remote control WXKG02LM.

When trying to control the switches, we get the error:
error: Failed to ping 0x00158d00029b4352
2019-7-2 17:52:42 - info: zigbee publish to device '0x00158d00022bc3ab', genOnOff - on - {} - {"manufSpec": 0, "disDefaultRsp": 0} - 3
2019-7-2 17:52:42 - info: MQTT publish: topic 'zigbee2mqtt / bridge / log', payload '{"type": "zigbee_publish_error", "message": "Error: AF data request fails, status code : 205. No network route. Please confirm the network. "," Meta ": {" entity ": {" ID ":" 0x00158d00022bc3ab "," type ":" device "," friendlyName ":" 0x00158d00022bc3ab "}," message ":" {\ "state \ 😕" OFF \ "}"}} '
2019-7-2 17:52:42 - Zigbee publish to device '0x00158d00022bc3ab', genOnOff - off - {} -

Re-activation, awakening, etc. does not work. It helped only to exclude the device from the zigbee network and re-enable it.

Other devices Ikea, Gledopto, Nue, Philips, Ksentry Electronics, Livolo network is not lost.

@clockbrain
Copy link
Contributor

Known issue with Xiaomi end devices. See e.g. https://www.reddit.com/r/SmartThings/comments/b9qyg7/anyone_using_xiaomi_aqara_sensors_successfully/ which relates to SmartThings but the issue is the same for Zigbee2mqtt.

In short they are non-standard and if they miss checking in to the network they leave and don't come back.

@Koenkk
Copy link
Owner

Koenkk commented Jul 6, 2019

Can you try the following firmware? https://github.com/Koenkk/Z-Stack-firmware/blob/dev/coordinator/Z-Stack_Home_1.2/bin/source_routing/CC2531_SOURCE_ROUTING_20190706.zip

I've increased the end device timeout to the max value (11 days).

@odx
Copy link

odx commented Jul 6, 2019

Just wanted to add my experiences:
I have installed about 30 Aqara contact sensors and four motion sensors. My Zigbee network was down for about one week and I had no issues with devices dropping out of the network.

@directman66
Copy link
Author

directman66 commented Jul 8, 2019

Can you try the following firmware? https://github.com/Koenkk/Z-Stack-firmware/blob/dev/coordinator/Z-Stack_Home_1.2/bin/source_routing/CC2531_SOURCE_ROUTING_20190706.zip

I've increased the end device timeout to the max value (11 days).

Updated firmware cc2531. I continue to observe.

@patrul
Copy link

patrul commented Aug 29, 2019

Can you try the following firmware? https://github.com/Koenkk/Z-Stack-firmware/blob/dev/coordinator/Z-Stack_Home_1.2/bin/source_routing/CC2531_SOURCE_ROUTING_20190706.zip

I've increased the end device timeout to the max value (11 days).

@Koenkk I have just installed this firmware. I will let you know how everything is going.

I have many Aqara devices but the ones giving me more problems are the wall switches (QBKG03LM). Sometimes the smart socket (QBCZ11LM), but allways are wired devices, I do not know if this makes sense.

Type of errors:

genTime - readRsp - 1 failed with error Error: AF data request fails, status code: 233. MAC no ack.
genTime - readRsp - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.

UPDATE (+12H): it continues showing 205 and 233 errors with QBKG03LM devices and failed to PING to JTQJ-BF-01LM/BW and QBCZ11LM, but most of them still work properly (one is not responding, just now investigation why).

One additional question, does the new timeout (11 days) apply to a) coordinator (CC2531) and router (CC2530), b) only coordinator or c) the whole network including other routers? I guess c) is not an option acording to #1684 (comment)

@patrul
Copy link

patrul commented Aug 30, 2019

UPDATE (+24H): it continues showing errors. All but one work.

  zigbee2mqtt:error 8/30/2019, 7:01:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:01:37 PM Failed to ping 'Detector_gas'
  zigbee2mqtt:error 8/30/2019, 7:03:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:04:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:05:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:05:27 PM Zigbee publish to device 'Pulsador_salon_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620503522,"dataType":226}] - {"direction":1,"seqNum":240,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:06:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:07:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:08:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:09:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:09:37 PM Failed to ping 'Detector_gas'
  zigbee2mqtt:error 8/30/2019, 7:10:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:11:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:12:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:13:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:13:28 PM Zigbee publish to device 'Pulsador_dormitorio_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504008,"dataType":226}] - {"direction":1,"seqNum":174,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 233. MAC no ack.
  zigbee2mqtt:error 8/30/2019, 7:14:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:15:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:16:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:17:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:18:13 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:19:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:19:09 PM Zigbee publish to device 'Pulsador_salon_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504343,"dataType":226}] - {"direction":1,"seqNum":255,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:20:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:21:13 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504468,"dataType":226}] - {"direction":1,"seqNum":207,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:22:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:23:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:24:14 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504654,"dataType":226}] - {"direction":1,"seqNum":210,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 233. MAC no ack.
  zigbee2mqtt:error 8/30/2019, 7:25:22 PM Zigbee publish to device 'Pulsador_salon_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504722,"dataType":226}] - {"direction":1,"seqNum":6,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 233. MAC no ack.
  zigbee2mqtt:error 8/30/2019, 7:26:25 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504779,"dataType":226}] - {"direction":1,"seqNum":213,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:26:31 PM Zigbee publish to device 'Pulsador_salon_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504785,"dataType":226}] - {"direction":1,"seqNum":7,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:29:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:29:31 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620504966,"dataType":226}] - {"direction":1,"seqNum":216,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:30:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:32:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:33:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:34:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:35:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:36:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:36:47 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620505402,"dataType":226}] - {"direction":1,"seqNum":225,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:37:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:38:01 PM Zigbee publish to device 'Pulsador_salon_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620505482,"dataType":226}] - {"direction":1,"seqNum":20,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 233. MAC no ack.
  zigbee2mqtt:error 8/30/2019, 7:38:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:38:52 PM Zigbee publish to device 'Pulsador_terraza_pared', genTime - readRsp - [{"attrId":0,"status":0,"attrData":620505526,"dataType":226}] - {"direction":1,"seqNum":227,"disDefaultRsp":1} - 1 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.
  zigbee2mqtt:error 8/30/2019, 7:39:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:40:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:42:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:43:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:44:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:45:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:46:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:47:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:50:07 PM Failed to ping 'Enchufe_multimedia'
  zigbee2mqtt:error 8/30/2019, 7:50:21 PM Zigbee publish to device 'Pulsador_despacho_pared', genOnOff - on - {} - {"manufSpec":0,"disDefaultRsp":0} - 2 failed with error Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.

@Koenkk
Copy link
Owner

Koenkk commented Aug 31, 2019

@patrul #943 is also interesting for you I guess, QBKG03LM is known to be a fishy device.

@patrul
Copy link

patrul commented Aug 31, 2019

Thanks @Koenkk for that. I do not think we can do so much to continue using these devices, wait 5 seconds to respond it is not practical. Personally, I will search for existing switch alternatives.

@stale
Copy link

stale bot commented Oct 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issues label Oct 31, 2019
@stale stale bot closed this as completed Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issues
Projects
None yet
Development

No branches or pull requests

5 participants