zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Tuya TS0044_2 Moes 4 button switch - joins, interviews then drops off network 20 seconds later & won't stay connected (Telink Chipset)

Open techie-dreamer opened this issue 1 month ago • 5 comments

What happened?

Tuya TS0044_2 Moes 4 button switch joins and interviews successfully, then leaves network (after 20 seconds) and won't stay joined. Loop repeats.

Seems similar to other devices: https://github.com/Koenkk/zigbee2mqtt/issues/33257 https://github.com/Koenkk/zigbee2mqtt/issues/33417

Logs:

[2026-10-26 10:49:15] info: 	z2m: Zigbee: allowing new devices to join.
[2026-10-26 10:49:15] info: 	zh:ember: [STACK STATUS] Network opened.
[2026-10-26 10:49:15] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254},"status":"ok","transaction":"w0a26-4"}'
[2026-10-26 10:49:34] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:34+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:34] info: 	zh:controller: Interview for '0xa4c138e212a88946' started
[2026-10-26 10:49:34] info: 	z2m: Device 'Switch4B.AlexanderDesk.111' joined
[2026-10-26 10:49:34] info: 	z2m: Starting interview of 'Switch4B.AlexanderDesk.111'
[2026-10-26 10:49:34] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_joined"}'
[2026-10-26 10:49:34] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946","status":"started"},"type":"device_interview"}'
[2026-10-26 10:49:35] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:35+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:35] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_announce"}'
[2026-10-26 10:49:36] info: 	zh:ember:ezsp: Received network/route error ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE for "9253".
[2026-10-26 10:49:36] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:36+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:37] info: 	zh:controller: Succesfully interviewed '0xa4c138e212a88946'
[2026-10-26 10:49:37] info: 	z2m: Successfully interviewed 'Switch4B.AlexanderDesk.111', device has successfully been paired
[2026-10-26 10:49:37] info: 	z2m: Device 'Switch4B.AlexanderDesk.111' is supported, identified as: Tuya Wireless switch with 4 buttons (TS0044_2)
[2026-10-26 10:49:37] info: 	z2m: Configuring 'Switch4B.AlexanderDesk.111'
[2026-10-26 10:49:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Wireless switch with 4 buttons","exposes":[{"access":5,"category":"diagnostic","description":"Remaining battery in %","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":5,"category":"diagnostic","description":"Reported battery voltage in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["1_single","1_double","1_hold","2_single","2_double","2_hold","3_single","3_double","3_hold","4_single","4_double","4_hold"]},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0044_2","options":[{"access":2,"description":"Reply to Tuya-specific time synchronization requests: \"1970\" - Reply with seconds since 1970/01/01 (recommended, should stop the device from asking), \"2000\" - Reply with seconds since 2000/01/01 (use if the weekday is wrong with 1970), \"off\" - Don't reply (use if replying causes too much traffic). Default for this device: \"off\"","label":"Time start","name":"time_start","property":"time_start","type":"enum","values":["1970","2000","off"]}],"source":"native","supports_ota":false,"vendor":"Tuya","version":"0.0.0"},"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946","status":"successful","supported":true},"type":"device_interview"}'
[2026-10-26 10:49:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:37+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:37] info: 	z2m: Successfully configured 'Switch4B.AlexanderDesk.111' (definition v0.0.0)
[2026-10-26 10:49:42] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:42+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:42] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:49:42+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:49:56] warning: 	z2m: Device 'Switch4B.AlexanderDesk.111' left the network
[2026-10-26 10:49:56] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_leave"}'
[2026-10-26 10:49:58] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bulb.Exterior.KitchenTVEnd.94', payload '{"brightness":13,"effect":null,"last_seen":"2026-10-26T10:49:58+00:00","linkquality":88,"power_on_behavior":"previous","state":"OFF"}'
[2026-10-26 10:49:58] info: 	zh:ember:ezsp: Received network/route error ROUTE_ERROR_NON_TREE_LINK_FAILURE for "4650".
[2026-10-26 10:50:00] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:50:00+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:50:00] info: 	zh:controller: Interview for '0xa4c138e212a88946' started
[2026-10-26 10:50:00] info: 	z2m: Device 'Switch4B.AlexanderDesk.111' joined
[2026-10-26 10:50:00] info: 	z2m: Starting interview of 'Switch4B.AlexanderDesk.111'
[2026-10-26 10:50:00] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_joined"}'
[2026-10-26 10:50:00] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946","status":"started"},"type":"device_interview"}'
[2026-10-26 10:50:01] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:50:01+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:50:01] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_announce"}'
[2026-10-26 10:50:02] info: 	zh:controller: Succesfully interviewed '0xa4c138e212a88946'
[2026-10-26 10:50:02] info: 	z2m: Successfully interviewed 'Switch4B.AlexanderDesk.111', device has successfully been paired
[2026-10-26 10:50:02] info: 	z2m: Device 'Switch4B.AlexanderDesk.111' is supported, identified as: Tuya Wireless switch with 4 buttons (TS0044_2)
[2026-10-26 10:50:02] info: 	z2m: Configuring 'Switch4B.AlexanderDesk.111'
[2026-10-26 10:50:02] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Wireless switch with 4 buttons","exposes":[{"access":5,"category":"diagnostic","description":"Remaining battery in %","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":5,"category":"diagnostic","description":"Reported battery voltage in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["1_single","1_double","1_hold","2_single","2_double","2_hold","3_single","3_double","3_hold","4_single","4_double","4_hold"]},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0044_2","options":[{"access":2,"description":"Reply to Tuya-specific time synchronization requests: \"1970\" - Reply with seconds since 1970/01/01 (recommended, should stop the device from asking), \"2000\" - Reply with seconds since 2000/01/01 (use if the weekday is wrong with 1970), \"off\" - Don't reply (use if replying causes too much traffic). Default for this device: \"off\"","label":"Time start","name":"time_start","property":"time_start","type":"enum","values":["1970","2000","off"]}],"source":"native","supports_ota":false,"vendor":"Tuya","version":"0.0.0"},"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946","status":"successful","supported":true},"type":"device_interview"}'
[2026-10-26 10:50:02] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Switch4B.AlexanderDesk.111', payload '{"battery":100,"last_seen":"2026-10-26T10:50:02+00:00","linkquality":255,"voltage":3000}'
[2026-10-26 10:50:02] info: 	z2m: Successfully configured 'Switch4B.AlexanderDesk.111' (definition v0.0.0)
[2026-10-26 10:50:20] warning: 	z2m: Device 'Switch4B.AlexanderDesk.111' left the network
[2026-10-26 10:50:20] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":
```{"friendly_name":"Switch4B.AlexanderDesk.111","ieee_address":"0xa4c138e212a88946"},"type":"device_leave"}'

What did you expect to happen?

  • Permit join button pressed
  • Put device into pairing mode
  • Device joins & interviews
  • Device remains on the network

How to reproduce it (minimal and precise)

  • Permit join button pressed in z2mqtt
  • Put device into pairing mode (press and hold button left button on device)
  • Device joins & interviews - Device then leaves 20 seconds later
  • Cycle repeats if try again

Note:

  • Fresh batteries in device
  • Device close to co-ordinator (less than 20cm)

Zigbee2MQTT version

2.14.2 z2mqtt version / 2.15.0 frontend

Adapter firmware version

Revision: 8.0.2 [GA]

Adapter

smlight SLZB-06Mg24 / EmberZNet

Setup

  • Controller: smlight SLZB-06Mg24 / EmberZNet
  • Zigbee2MQTT version 2.14.2
  • Frontend version 2.15.0
  • zigbee-herdsman-converters version 26.115.1
  • zigbee-herdsman version 10.10.0
  • HA Core 2026.10.4
  • Supervisor 2026.10.3
  • Operating System 18.3
  • Hardware Pi5

Device database.db entry

No response

Debug log

z2mqtt_Logs_FailedJoin.txt

Notes

Same issue occurs with Tuya-ts0501b wired dimmer but the Ikea INSPELNING E22xx joins fine - so it's something device specific.

Note: I have other Tuya-ts0501b wired dimmer & Tuya TS0044_2 Moes 4 button switch on the network already (joined a long time ago), which are operating normally.

Commonality between devices exhibiting this behaviour seems to be Telink chipset

techie-dreamer avatar Oct 26 '26 11:10 techie-dreamer

Doing some more testing, I found a old but unused TS0044 which joined and has stayed connected as expected vs the TS0044_2 which interviews then drops off permantly

It would seem the chipsets are different Image

Supporting the theory the TeLink chips are causing the issue (which I suspect are in numerous devices.

techie-dreamer avatar Oct 26 '26 17:10 techie-dreamer

Thanks for the report. The logs show that the device completes the interview and configuration before leaving the network. However, the attached file contains only info/warning entries, so it does not show the security exchange or detailed adapter events.

Could you please provide:

  1. A complete debug log file, starting from Zigbee2MQTT startup and covering at least two join → configure → leave cycles. Please temporarily enable advanced.log_level: debug and file logging, and keep the zh:ember, zh:ember:ezsp, and zh:controller entries. Please attach the actual log file rather than copying the frontend log.
  2. Coordinator migration history: Was this network migrated from another coordinator, was its IEEE address changed, or was a coordinator backup restored? Did the problem start after an update or migration?
  3. If available, the failing device’s modelID, manufacturerName, and firmware version, or its single database.db entry. If the entry disappears when the device leaves, the debug log is the priority. As an optional comparison, could you also try pairing the same device with “Permit join” restricted to Coordinator, and report whether it stays connected?

Please redact passwords, tokens, and security keys before uploading, while keeping timestamps and device identifiers consistent.

sdbldn avatar Oct 28 '26 08:10 sdbldn

Yep, a coordinator migration can cause this issue. https://www.zigbee2mqtt.io/guide/usage/troubleshooting.html#post-ieee-eui64-migration-troubles

andrei-lazarov avatar Oct 30 '26 00:10 andrei-lazarov

5. Yep, a coordinator migration can cause this issue. https://www.zigbee2mqtt.io/guide/usage/troubleshooting.html#post-ieee-eui64-migration-troubles

I've changed co-ordinator about 9 months ago but think I cloned the IEEE address then & anyway, it's been working fine since then.

Weirdly, when enabling debug logging, the device actually joined the network and has stayed on so far - no idea what was different but pleased with outcome. I still have an issue with TS0501B Tuya Zigbee dimmer doing the same, but won't mix that issue into this thread (will start a new one).

techie-dreamer avatar Oct 31 '26 10:10 techie-dreamer

For completeness, I resolved a post-IEEE migration EUI64 / Trust Center Link Key (TCLK) mismatch using ember-zli

I've documented this at https://github.com/Koenkk/zigbee2mqtt/issues/33560#issuecomment-6561582450

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