zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Ember] Aqara W100 (lumi.sensor_ht.agl001) stops accepting input after its TC link key request 24 h after join

Open masterchiefofbikeride opened this issue 1 month ago • 12 comments

What happened?

I have 4x Aqara W100 lumi.sensor_ht.agl001, all identical: appVersion 41, stackVersion 27, hwVersion 12, zclVersion 3, dateCode 20260518.

Some of them work normally after pairing and stop accepting input exactly 24 h (sometimes 48 h) after the join, to the second. Button presses only make the display flash, no button actions or PMTSD requests arrive in Z2M anymore. Temperature/humidity reports keep coming. Removing and re-pairing restores the device, again until the next 24 h mark.

At that exact moment the device sends a trust center link key request, and the key exchange never completes. There are two variants:

  • The TC answers (TC_RESPONDED_TO_KEY_REQUEST), but the device never verifies the key, although it always did at join (TC_REQUESTER_VERIFY_KEY_SUCCESS).
  • The TC cannot resolve the requester: 3x TC_REQUESTER_EUI64_UNKNOWN partner=0x0000000000000000.

Example (debug log, 2026-10-21; both devices joined 2026-10-20 08:23:43 / 08:25:39):

[2026-10-21 08:23:41] zh:ember:ezsp: ezspZigbeeKeyEstablishmentHandler: partner=0x54ef44100143ebfc status=TC_RESPONDED_TO_KEY_REQUEST
[2026-10-21 08:25:38] zh:ember:ezsp: ezspZigbeeKeyEstablishmentHandler: partner=0x0000000000000000 status=TC_REQUESTER_EUI64_UNKNOWN
[2026-10-21 08:25:44] zh:ember:ezsp: ezspZigbeeKeyEstablishmentHandler: partner=0x0000000000000000 status=TC_REQUESTER_EUI64_UNKNOWN
[2026-10-21 08:25:50] zh:ember:ezsp: ezspZigbeeKeyEstablishmentHandler: partner=0x0000000000000000 status=TC_REQUESTER_EUI64_UNKNOWN

No VERIFY_KEY_SUCCESS follows, and from then on the device ignores user input. A dead device repeats the request every 24 h, still without a verify.

On a dead device, writes like thermostat_mode: OFF still work and reports keep arriving. So the radio link is fine, but the device no longer sends button events / PMTSD requests.

Two of the four devices never sent such a request and have been working fine ever since (one for 10 days, one for 6 days). So whether a device sends the request looks random, but every time it does, the device ends up unusable.

Ruled out (observed on 8 occasions between 2026-10-18 and 2026-10-25, always exactly at join + 24 h or + 48 h):

  • Not tied to one unit: I swapped two units and re-paired them. Both died at +24 h, including one that had previously survived > 48 h.
  • Not location/route: a working and a dead device used the same parent router.
  • Not configuration: binds, reporting, options are identical for all devices.
  • Not the thermostat mode: it happens with thermostat_mode: ON and with OFF (action mode). In action mode button actions arrived normally until the key request, none after it.
  • Not the external sensor: it happens with internal and with external sensor. I also answered the W100's external sensor requests (manuSpecificLumi 0xfff2) with an external extension. That did not help.
  • Not power: removing the batteries for >= 10 min before re-pairing did not help reliably.

Question: in emberAdapter.ts, initTrustCenter() sets:

this.emberSetEzspPolicy(EzspPolicyId.TC_KEY_REQUEST_POLICY, EzspDecisionId.ALLOW_TC_KEY_REQUESTS_AND_SEND_CURRENT_KEY);

Could this policy, or the way the key is sent to an already joined device, be the cause? EUI64_UNKNOWN suggests the TC sometimes cannot map the requesting node to its IEEE address at all. Is there a way to test a different TC key request policy (or a test build)? I can reproduce this reliably and provide full debug logs since 2026-10-18.

Related: #27262, #32584

What did you expect to happen?

The device's link key request 24 h after join is answered in a way the W100 accepts, so it stays usable. Or a way to configure the TC key request policy for Ember to test this.

How to reproduce it (minimal and precise)

  1. Pair an Aqara W100 (lumi.sensor_ht.agl001) to Z2M with an Ember coordinator (here SLZB-06M, EmberZNet 9.0.1).
  2. Enable debug logging and check that buttons work (actions / PMTSD requests arrive).
  3. Wait exactly 24 h (sometimes 48 h) after the join.
  4. If the device sends a key request (ezspZigbeeKeyEstablishmentHandler ... TC_RESPONDED_TO_KEY_REQUEST or TC_REQUESTER_EUI64_UNKNOWN), button presses no longer arrive in Z2M afterwards. Not every device sends the request, so testing with several devices helps.

Zigbee2MQTT version

2.14.2 (zigbee-herdsman 10.10.0)

Adapter firmware version

EmberZNet 9.0.1 [GA] (EZSP 18)

Adapter

SMLIGHT SLZB-06M

Setup

Home Assistant OS, Zigbee2MQTT add-on, adapter: ember, coordinator connected via network (TCP)

Device database.db entry

No response

Debug log

No response

Notes

No response

masterchiefofbikeride avatar Oct 27 '26 14:10 masterchiefofbikeride

I have the same issue.

I also run HA OS and z2mqtt via an smlight coordinator

MRodneyMcKay avatar Oct 27 '26 18:10 MRodneyMcKay

I'm beginning to think my new device joining woes ( https://github.com/Koenkk/zigbee2mqtt/issues/33560 ) are related to this, having smlight SLZB-06Mg24 / EmberZNet set-up.

After many many hours of fiddling, I ran all my logs through Gemini and it said......

In recent versions of Zigbee2MQTT running the Ember driver stack (EmberZNet 8.0.2 [GA]), there is an active upstream regression affecting Telink-based chipsets (found in modern Tuya devices like the TS0501B inline dimmer and TS0044_2 switches):

  • The Join & Leave Loop: The device pairs, passes interview, and registers an initial network address (0xF4F5 in your screenshot).
  • Missing Trust Center Link Key Handshake: Shortly after the interview (often within 20–30 seconds), the Ember driver fails to complete the Trust Center Link Key exchange required by newer Zigbee 3.0 stack profiles on Telink chips.
  • Spontaneous Leave: Because the controller does not receive the expected key confirmation, it assumes the coordinator rejected its membership, issues a silent device_leave / TC Leave Request, wipes its local network credentials, and drops off the network. Zigbee2MQTT then removes it from the live device list.
  • Older devices that joined under older Z2M / herdsman versions continue to work because their security tokens were grandfathered into the Ember Trust Center cache.

Not 100% sure this is the cause but it's a lead at least.

@MRodneyMcKay - what device and issue are you experiencing? Device dropping off immediately upon join or sometime later?

techie-dreamer avatar Nov 01 '26 14:11 techie-dreamer

Further to my message above - have you tried to repair the Trust Center Link Key (TCLK)?

I've documented my fix (it's taken me all day of fiddling to get to this point!) here: https://github.com/Koenkk/zigbee2mqtt/issues/33560#issuecomment-6561582450

techie-dreamer avatar Nov 01 '26 17:11 techie-dreamer

I have the same issue with the same device (aqara w100's buttons stop working after 24 h).

I have not migrated over to ember, I started with the ember controller

MRodneyMcKay avatar Nov 02 '26 06:11 MRodneyMcKay

Same issue here, 4x W100 on Ember. Adding my observations, including a coordinator firmware update that did not change anything.

Setup

  • Coordinator: Home Assistant Connect ZBT-2, EmberZNet 7.5.1 [GA], updated to 9.1.1 [GA] on 2026-11-06 (ezsp 19, TC_KEY_REQUEST_POLICY set to 81 at startup)
  • Zigbee2MQTT 2.14.3, zigbee-herdsman 11.2.0
  • 4x Aqara W100 (lumi.sensor_ht.agl001), OTA file version 4137, dateCode:
  • Thermostat mode ON
Device IEEE
Office 0x54ef4410015882f9
Master Bedroom 0x54ef4410014a6894
Livingroom 0x54ef4410014a5e71
Bedroom child 0x54ef441001589119

Observations (debug log, EmberZNet 9.1.1)

Same pattern as described: at join + 24 h (to the second) the device sends a TC link key request, the TC responds, no VERIFY_KEY_SUCCESS follows.

Bedroom child

  • Joined 2026-11-07 07:55:34, key verified at join.
  • 2026-11-08 07:55:36 partner=0x54ef441001589119 status=TC_RESPONDED_TO_KEY_REQUEST, no verify.
  • From that moment: no more button events / PMTSD requests. The periodic PMTSD request every 30 min also stopped, and temperature reports dropped from ~5-6/h to ~1/h (step-shaped graph in HA). Writes from Z2M (system_mode, occupied_heating_setpoint) still worked instantly.
  • Re-paired 2026-11-08 09:32:25 (verified), buttons back.
  • 2026-11-09 09:32:27 TC_RESPONDED_TO_KEY_REQUEST, again no verify, but this time the device kept working (PMTSD request 09:34, button press 09:35:07, still working at time of writing).

Master Bedroom

  • Joined 2026-11-06 07:57:01.
  • 2026-11-07 07:57:04 TC_RESPONDED_TO_KEY_REQUEST, 08:00:13 TC_REQUESTER_VERIFY_KEY_TIMEOUT. Device kept working.
  • 2026-11-08 07:57:04 (join + 48 h) request again, no verify, device dead: no PMTSD for 24 h, temperature ~1/h.
  • 2026-11-09 07:57:04 (join + 72 h) request again, no verify. Behaviour changed: periodic PMTSD requests every 30 min resumed, temperature now reported every ~43 s with 0.01 °C changes (temp_report_mode threshold, temp_threshold 0.5 ignored), buttons still dead.

Livingroom

  • Re-paired 2026-11-08 09:40:55 (verified). No key request at join + 24 h, working normally.
  • Earlier (on EmberZNet 7.5.1) it died ~24 h after a re-pair as well; that log period was lost to rotation, so I cannot confirm the key request for that occurrence.

Office

  • Never sent a key request in the ~44 h debug log, working fine the whole time.

Other findings

  • So the result of an unverified key request is not always the same: dead (child day 1, Master Bedroom day 2), unaffected (Master Bedroom day 1, child day 2 so far).
  • Updating the coordinator from 7.5.1 to 9.1.1 changed nothing: every post-join key request remained unverified.
  • A non-W100 router (0x6ce4a4fffeb0bf81) also sends a daily TC_RESPONDED_TO_KEY_REQUEST (~23:12) without verify.
  • About 4.5 min after every re-pair I see TC_REQUESTER_VERIFY_KEY_TIMEOUT partner=0xffffffffffffffff.
  • Ruled out on my side: switching thermostat_mode OFF/ON. All 4 devices were set OFF at 22:30 and ON at 07:44; buttons worked on all of them afterwards and only stopped at the key request ~10 min later.

lupeaalexandru avatar Nov 09 '26 09:11 lupeaalexandru

Thanks, that matches my observations closely (including the VERIFY_KEY_TIMEOUT partner=0xffff... ~4.5 min after every re-pair). Some additional tests from my side (SLZB-06M, EmberZNet 9.0.1, Z2M 2.14.x), which suggest the unverified key request itself is not the root cause:

  1. Key exchange completed successfully, device still died. With a test extension I temporarily changed the Ember policies in a ±5 min window around the 24 h mark (APP_KEY_REQUEST_POLICY -> ALLOW_APP_KEY_REQUESTS, TC_KEY_REQUEST_POLICY -> ALLOW_TC_KEY_REQUEST_AND_GENERATE_NEW_KEY) and put the W100 into the NCP address table (ezspSetAddressTableInfo), so the TC could always resolve the requester. Result on 2026-10-30 for two devices: 06:02:01 TC_RESPONDED_TO_KEY_REQUEST / 06:02:02 TC_REQUESTER_VERIFY_KEY_SUCCESS 06:02:20 TC_RESPONDED_TO_KEY_REQUEST / 06:02:21 TC_REQUESTER_VERIFY_KEY_SUCCESS Both devices nevertheless stopped sending button events / PMTSD right after that, exactly like in the unverified case. Temperature/humidity reports continued. (Side note for anyone trying this: GENERATE_NEW_KEY stores a link key in the NCP key table. After a factory reset the device fails to join with TC_REQUESTER_VERIFY_KEY_FAILURE and loops join/leave until that key table entry is erased.)

  2. A non-W100 device gets the same 24 h request and keeps working. A Bosch BTH-RM (room thermostat II) on the same coordinator sends TC_RESPONDED_TO_KEY_REQUEST exactly 24 h after its join, also without VERIFY_KEY_SUCCESS, and keeps working normally (buttons, setpoint, OTA queries). Same as your non-W100 router.

  3. Re-pairing twice in a row does not help. The 24 h timer simply restarts at the last join (request came exactly 24 h after the second join).

  4. Brand-new unit is affected as well (paired fresh out of the box, died at join + 24 h).

Two of my four W100 never sent the request and have been working for 2+ weeks; one of them had a secured rejoin (lost its parent and rejoined on a button press) about 1.5 h before its first 24 h mark.

So my conclusion so far: the coordinator-side key handling looks normal (other devices tolerate it, and even a fully verified exchange does not save the W100). It looks more like the W100 firmware enters a broken state around its 24 h key refresh, independent of what the TC answers. Possibly something for Aqara rather than for Z2M, unless someone knows what the W100 expects at that point (e.g. something an Aqara hub sends that Z2M does not).

Same issue here, 4x W100 on Ember. Adding my observations, including a coordinator firmware update that did not change anything.

Setup

  • Coordinator: Home Assistant Connect ZBT-2, EmberZNet 7.5.1 [GA], updated to 9.1.1 [GA] on 2026-11-06 (ezsp 19, TC_KEY_REQUEST_POLICY set to 81 at startup)
  • Zigbee2MQTT 2.14.3, zigbee-herdsman 11.2.0
  • 4x Aqara W100 (lumi.sensor_ht.agl001), OTA file version 4137, dateCode:
  • Thermostat mode ON

Device IEEE Office 0x54ef4410015882f9 Master Bedroom 0x54ef4410014a6894 Livingroom 0x54ef4410014a5e71 Bedroom child 0x54ef441001589119 Observations (debug log, EmberZNet 9.1.1)

Same pattern as described: at join + 24 h (to the second) the device sends a TC link key request, the TC responds, no VERIFY_KEY_SUCCESS follows.

Bedroom child

  • Joined 2026-11-07 07:55:34, key verified at join.
  • 2026-11-08 07:55:36 partner=0x54ef441001589119 status=TC_RESPONDED_TO_KEY_REQUEST, no verify.
  • From that moment: no more button events / PMTSD requests. The periodic PMTSD request every 30 min also stopped, and temperature reports dropped from ~5-6/h to ~1/h (step-shaped graph in HA). Writes from Z2M (system_mode, occupied_heating_setpoint) still worked instantly.
  • Re-paired 2026-11-08 09:32:25 (verified), buttons back.
  • 2026-11-09 09:32:27 TC_RESPONDED_TO_KEY_REQUEST, again no verify, but this time the device kept working (PMTSD request 09:34, button press 09:35:07, still working at time of writing).

Master Bedroom

  • Joined 2026-11-06 07:57:01.
  • 2026-11-07 07:57:04 TC_RESPONDED_TO_KEY_REQUEST, 08:00:13 TC_REQUESTER_VERIFY_KEY_TIMEOUT. Device kept working.
  • 2026-11-08 07:57:04 (join + 48 h) request again, no verify, device dead: no PMTSD for 24 h, temperature ~1/h.
  • 2026-11-09 07:57:04 (join + 72 h) request again, no verify. Behaviour changed: periodic PMTSD requests every 30 min resumed, temperature now reported every ~43 s with 0.01 °C changes (temp_report_mode threshold, temp_threshold 0.5 ignored), buttons still dead.

Livingroom

  • Re-paired 2026-11-08 09:40:55 (verified). No key request at join + 24 h, working normally.
  • Earlier (on EmberZNet 7.5.1) it died ~24 h after a re-pair as well; that log period was lost to rotation, so I cannot confirm the key request for that occurrence.

Office

  • Never sent a key request in the ~44 h debug log, working fine the whole time.

Other findings

  • So the result of an unverified key request is not always the same: dead (child day 1, Master Bedroom day 2), unaffected (Master Bedroom day 1, child day 2 so far).
  • Updating the coordinator from 7.5.1 to 9.1.1 changed nothing: every post-join key request remained unverified.
  • A non-W100 router (0x6ce4a4fffeb0bf81) also sends a daily TC_RESPONDED_TO_KEY_REQUEST (~23:12) without verify.
  • About 4.5 min after every re-pair I see TC_REQUESTER_VERIFY_KEY_TIMEOUT partner=0xffffffffffffffff.
  • Ruled out on my side: switching thermostat_mode OFF/ON. All 4 devices were set OFF at 22:30 and ON at 07:44; buttons worked on all of them afterwards and only stopped at the key request ~10 min later.

masterchiefofbikeride avatar Nov 09 '26 09:11 masterchiefofbikeride

I tried with a aquara m2 hub ungortunately the thermostat function disapears. Seems that we might have convinced aqara to create a new firmware to solve the 0.5 increment, maybe they patch with issue as well

https://forum.aqara.com/t/w100-zigbee-firmware-inconsistencies/167176/85

lupeaalexandru avatar Nov 12 '26 18:11 lupeaalexandru

Same 24 h key-request failure on the Aqara P100 (stackVersion 27). Keeping the coordinator's manufacturer code at Lumi (0x115F) outside pairing fixed it on Ember here, and stuck units recovered without a re-pair. Details and the external extension: https://github.com/Koenkk/zigbee2mqtt/issues/31503#issuecomment-6897070665. It would be worth trying on the W100.

pincombe avatar Nov 15 '26 15:11 pincombe

Confirming the workaround from the comment above also works on Aqara W100 (tested so far on Ember 9.1.1, not only 8.0.3).

Setup • Coordinator: Home Assistant Connect ZBT-2, ember driver, EmberZNet 9.1.1 [GA] (EZSP 19) • Zigbee2MQTT 2.14.3, zigbee-herdsman 11.2.0 • 4x Aqara W100 (lumi.sensor_ht.agl001), OTA file version 4137, dateCode: , thermostat mode ON (Office working without issue; Master Bedroom, Child Bedroom and Livingroom with issues) • Extension: the lumi-coordinator-code.js from the comment above, unchanged, loaded on 2026-11-15 20:40. Log shows lumi-code: set 4447 (start) and a SET_MANUFACTURER_CODE frame every 5 min (09:29:27, 09:34:27, 09:39:27), with a response frame from the adapter each time.

Before the extension (same issue as #33517) • Child Bedroom (paired 2026-11-10 09:55:56) and Master Bedroom (paired 2026-11-10 09:56:31) passed the first daily key request on 11.11, then went dead on the second one on 12.11: TC_RESPONDED_TO_KEY_REQUEST, no TC_REQUESTER_VERIFY_KEY_SUCCESS, no more PMTSD requests, display flashing on button press. Both were still dead when I tested on 13.11. • Livingroom (paired 2026-11-10 18:09) behaved the same and was also dead on 13.11. • From 11.11 to 15.11 every daily key request of all three units was unverified (VERIFY_KEY_SUCCESS only appears on the day of pairing).

After the extension, 2026-11-16 • 09:55:55 Child Bedroom TC_RESPONDED_TO_KEY_REQUEST, 09:56:33 Master Bedroom TC_RESPONDED_TO_KEY_REQUEST • 09:56:45 and 09:57:54: PMTSD requests from Child Bedroom and Master Bedroom are back, and the coordinator answers them • 10:07: I pressed the buttons on both: buttons work again on both units • No re-pair and no battery pull on either unit between 13.11 and 16.11 • Office (never sends a key request in my logs) kept working throughout.

Caveats • This is a single day for Child Bedroom and Master Bedroom. Livingroom's request (~18:09) and the 17.11 marks are still pending; I'll update this comment with the results. • I will post later today after I check the status on the Livingroom Thermostat and again after 48h for each thermostat. • I haven't confirmed that the units were unaffected by the key request before 13.11 for any reason other than the extension, so please treat this as one positive data point, not proof. Thanks to the author of the extension for the analysis. Would be great if herdsman could keep the Lumi code after an Aqara join, as suggested.

lupeaalexandru avatar Nov 16 '26 08:11 lupeaalexandru

Confirming the Lumi manufacturer-code extension above also works for Aqara W100 (lumi.sensor_ht.agl001), on EmberZNet 9.1.1.

Setup: HA Connect ZBT-2, ember, EmberZNet 9.1.1 [GA], Z2M 2.14.3, zigbee-herdsman 11.2.0, 4x W100 (OTA 4137, dateCode ), thermostat mode ON. Extension unchanged, running since 2026-11-15 20:40 (SET_MANUFACTURER_CODE every 300 s, no errors).

Before: same pattern as #33517. Units passed the first daily key request after pairing and died on the second (TC_RESPONDED_TO_KEY_REQUEST, no verify, PMTSD requests stop, buttons dead). Three of my four units were dead on 13.11.

After:

  • Two units that were already dead (last paired 10.11) recovered at their next daily key request on 16.11, with no re-pair and no battery pull. They have kept working since (key requests 16, 17 and 18.11, PMTSD heartbeat every 30 min with no gaps).
  • The third unit was rejoined on 16.11 20:46 (5 s button press) with the extension active. It passed both the +24 h and the +48 h key requests and still works.
  • The fourth unit never sends a daily key request and worked throughout.

Everything works thanks to the extension: without it the units died on the second key request, with it they recover and keep working. Interestingly, I still don't see TC_REQUESTER_VERIFY_KEY_SUCCESS after the daily requests, yet the devices keep working. It would be great if herdsman kept the Lumi code after an Aqara join by default (or as an adapter option), so this extension wouldn't be required.

@pincombe thank you very much for sharing your finding and code

lupeaalexandru avatar Nov 19 '26 08:11 lupeaalexandru

This solution works for me too

MRodneyMcKay avatar Nov 23 '26 08:11 MRodneyMcKay

I'm experiencing the same issue, but with a TI-based coordinator (zstack instead of ember). As far as I understand, the manufacturer code workaround is not available for Z-Stack.

In https://github.com/Koenkk/zigbee-herdsman-converters/pull/13876, support has been added for upcoming W100 firmware that replaces the legacy PMTSD protocol.

Since this firmware is being developed in collaboration with Aqara, I was wondering whether the 24-hour issue is also being addressed. Does the new firmware still require the coordinator to advertise the Lumi manufacturer code (0x115F), or will this workaround no longer be necessary?

gertvdijk avatar Dec 02 '26 21:12 gertvdijk