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!