Tuya TS0052 (Mini Dimmer Switch) - Keeps Toggling & Disconnecting in Zigbee2MQTT

Hi everyone,

I’m having serious issues with my Tuya TS0052 (Mini Dimmer Switch) in Zigbee2MQTT. The device is located in the same room as my Home Assistant running on Proxmox, so signal strength shouldn’t be a problem.

The issue:

  1. The switch pairs normally with Zigbee2MQTT and initially works fine.

  2. After some time, it starts behaving erratically:

It keeps toggling itself (on → off → on → off) randomly.

Eventually, it drops out of the Zigbee network completely.

  1. When I turn it off via Home Assistant, sometimes it doesn’t go to 0% brightness but instead stays at 1%.

  2. If I turn it off manually via a wall socket, then it fully turns off.

  3. I tried using external device configuration (external_converters), but it didn’t help.

What I tried so far:

Re-pairing the switch multiple times.

Checking the power source to make sure it’s stable.

Writing an external device config to see if that fixes the issue.

Watching Zigbee2MQTT logs—it seems like the switch is constantly sending state updates before disconnecting.

Has anyone faced a similar issue with this device? Any suggestions on how to fix it?

Thanks in advance for any help!

I have the same issue /behaviour with my momentary switch connected to this device. The switch is connected one side to the nul and the other side to the device
connector for switching on/off. If I disconnect this switch it works fine.
I think I need a pulse switch connected to the the device, because I cannot change the settings of this device to using a momentary switch.

Same problem, that’s why I came here by Googling. I solved it by setting the power-on behavior to “previous” in HA and selecting “state” as the switch type. After that, it worked as usual again.