zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Cant pair my TuYa TS0044 switch

Open mouledla opened this issue 3 years ago • 15 comments

What happened?

According to https://www.zigbee2mqtt.io/devices/TS0044.html the tuya 4gang switch based on zigbee should work with zigbee2mqtt. Unfortunately i cannot pair this device. Other zigbee products pair instantly with my zigbee2mqtt setup. I tried several things to solve this issue, like new battery, restarting zigbee2mqtt etc.

To enter pairing mode I hold the bottom left button for 10 seconds until all 4 LEDs start flashing. Nothing happens. It keeps on flashing until it just stops flashing. Unfortunately, no debug logs or anything helpful in zigbee2mqtt logs.

Anyone else has this problem?

What did you expect to happen?

I expected successfull pairing of the device according to https://www.zigbee2mqtt.io/devices/TS0044.html

How to reproduce it (minimal and precise)

Hold bottom left button for 10 seconds until all 4 LEDs start flashing.

Zigbee2MQTT version

1.28.4

Adapter firmware version

20211217

Adapter

Sonoff Zigbee 3.0 USB Dongle

Debug log

No response

mouledla avatar Dec 25 '22 18:12 mouledla

FWIW, I have several of these - most of the units went smoothly, some took several tries (like a frustrating number of tries, not sure if I was just messing up the pair code).

Now I might be completely miss-remembering, but I was under the impression TuYa devices are wonky (they aren't standard Zigbee, so zigbee2mqtt and other open source coordinators) need a magic packet to be sent during interviewing (which, after re-reading your post, doesn't seem to be happening in your issue, since no logs). Race conditions are likely since timing is important. So there was a report that interviewing through a router was error prone, meshing directly with the coordinator was better due to possible retries over the network.

Silvenga avatar Dec 26 '22 04:12 Silvenga

Hmm i actually have no idea about tuya devices being wonky, I simply just go zigbee2mqtt.io website and check if the vendor and specific device is pairable under devices. I also have other Tuya zigbee devices working seamlessly like socket switches and curtains.

mouledla avatar Dec 26 '22 11:12 mouledla

I just received a couple of these and can't pair either, updated to latest firmware on coordinator and z2m code via docker, and still can't pair these :(

marc-gist avatar Jan 06 '23 22:01 marc-gist

I was finally able to pair these @mouledla

  1. Ensure you have a good battery. The ones I first used, couldn't handle the power draw, and voltage would drop and device would restart (used a voltage meter to see this). So if when in pairing, you don't see all 4 leds flash for a minute at least, find a new battery.
  2. Put the device right beside the coordinator, and select enable pairing for coordinator only.
  3. If your coordinator is not on a USB ext cord and plugged directly in, remove it and put on an extension cord away from the computer you use.

Let us know if you get them working.

marc-gist avatar Jan 07 '23 17:01 marc-gist

@marc-gist I have a strong suspicion it is indeed the battery. Will try a new battery tomorrow and let you know.

mouledla avatar Jan 07 '23 17:01 mouledla

@marc-gist I tried a couple of new batteries... like 3 of them (CR2430). Somehow, when using 2 of the 3 batteries, pairing did not worked. For some unknown reason the last battery I tried, pairing went successfull. Case closed I guess.

mouledla avatar Jan 07 '23 23:01 mouledla

Cheap batteries do not have the Amperage draw (so measure 3.2v "full", but as soon as you put a load on them, they drop under 2.8v, which causes the device to "brown out").

marc-gist avatar Jan 08 '23 00:01 marc-gist

Battery was the problem. Just inserted new battery and it was immediately detected by the coordinator.

alexbenfica avatar Jan 10 '23 17:01 alexbenfica

Can confirm, had cheap batteries and the device LEDs would work and indicate pairing start, but it would not pair. Checking with voltmeter showed dropping from 3.2V to 2.5V while pairing. Paired using external power supply @3.1V was without issues. Now ordering Varta batteries.

Until then I use a CR2032 (smaller diameter) as a workaround. Works fine, but I wouldnt shake it :)

realalexandergeorgiev avatar Dec 18 '23 13:12 realalexandergeorgiev

I was finally able to pair these @mouledla

  1. Ensure you have a good battery. The ones I first used, couldn't handle the power draw, and voltage would drop and device would restart (used a voltage meter to see this). So if when in pairing, you don't see all 4 leds flash for a minute at least, find a new battery.
  2. Put the device right beside the coordinator, and select enable pairing for coordinator only.
  3. If your coordinator is not on a USB ext cord and plugged directly in, remove it and put on an extension cord away from the computer you use.

Let us know if you get them working.

My device is a Zemismart ZB-L04C, but it is identified as a TS0044 when paired, here is a picture of it: image

This device has an internal reset button: image

I was facing pairing issues until I placed the device closer to the coordinator and selected to pair only with the coordinator, image

it worked like a charm.

tclemos avatar Dec 30 '23 15:12 tclemos

Screenshot_1 Screenshot_2

Why by default my 4 switch is not working as 4 key switch, can anyone help or describe what I do wrong?

MacArtiom avatar Oct 14 '24 14:10 MacArtiom

Screenshot_1 Screenshot_2

Why by default my 4 switch is not working as 4 key switch, can anyone help or describe what I do wrong?

Edit: I had the same problem but it works fine using the blueprint from here:

https://github.com/lux4rd0/homeassistant/blob/4070c53c0597808250fbe435cedc51a8cec55409/blueprints/zigbee2mqtt_tuya_4_button_scene_switch_ts0044.yaml

quadrupole1988 avatar Oct 28 '24 08:10 quadrupole1988

FYI When it keeps flashing all 4 led means battery's almost empty and needs to be replace

nstefy avatar Jun 22 '25 06:06 nstefy

mine came today and i tried all day, 2mqtt saying its not supported yet, now after 10 hours i tried pairing again and its supported now but i cant see / press anything beside seeing battery life ?

Image

XGCTHX9 avatar Jul 11 '25 20:07 XGCTHX9

Your post is out of scope:

mine came today and i tried all day, 2mqtt saying its not supported yet, now after 10 hours i tried pairing again and its supported now but i cant see / press anything beside seeing battery life ?

try this: Zigbee2MQTT - Tuya 4-button Scene Switch (TS0044)

ghost avatar Jul 14 '25 14:07 ghost