ZIgbee 2 button Tuya wireless switch suddenly reporting "action: null" in payload

Hi, I’ve got three of the same switch and after working fine for several months, they’re now no longer triggering the automations associated with them. All three have stopped working at the same time.

The divce lists as a “TS0042”, but seems to take another form compared to most when I google that model number. Mine looks like this:
https://www.aliexpress.com/item/1005005744654691.html?spm=a2g0o.order_list.order_list_main.295.2d8e18025xq2z5

Checking the Zigbee2mqtt logs, the payload they report on a button press is now like this:

Zigbee2MQTT:info 2024-02-05 10:46:12: MQTT publish: topic zigbee2mqtt/0xa4c138266c58bd48’, payload ‘{“action”:null,“last_seen”:“2024-02-05T10:46:12+11:00”,“linkquality”:189}’

Whereas previously under action it would be reporting along the lines of other Tuya zigbee switches I have:

Zigbee2MQTT:info 2024-02-05 10:49:47: MQTT publish: topic ‘zigbee2mqtt/3 button switch tester/action’, payload ‘1_single’

When I very first connected these switches to my zigbee network they were reporting 3 possilbe actions for both buttons, which came through as “1_single”, “1_double”, “1_hold”. But after a week or two the “1_hold” action disappeared. I’m not sure what had happened, but I didn’t really have a need for that function, so I just ignored the problem. Now I have no actions whatsoever and the switches won’t trigger automations.

In addition, I can see that the action is not longer updating in the MQTT integration logbook for the device:
image

Can anyone help?

Maybe your Tuya account expired?

Device is connected directly and locally through Zigbee2MQTT. But in any case, other Tuya devices are working fine. It’s this device only, and all 3 individual devices of the same type reporting the same null action in the payload.

For what it’s worth (perhaps nothing), here’s the difference between working tuy zigbee switch and the not working one. Taken from the Zigbee2mqtt database.

working:

0xa4c1387a2347bed2",“nwkAddr”:59399,“manufId”:4417,“manufName”:“_TZ3000_famkxci2”,“powerSource”:“Battery”,“modelId”:“TS0043”,“epList”:[1,2,3],“endpoints”:{“1”:{“profId”:260,“epId”:1,“devId”:0,“inClusterList”:[6,1,6,0],“outClusterList”:[25,10],“clusters”:{“genBasic”:{“attributes”:{“65503”:“\u001e%>\u0000\u0012”,“65506”:34,“65508”:1,“65534”:0,“modelId”:“TS0043”,“manufacturerName”:“_TZ3000_famkxci2”,“powerSource”:3,“zclVersion”:3,“appVersion”:65,“stackVersion”:0,“hwVersion”:1,“dateCode”:“”}},“genPowerCfg”:{“attributes”:{“batteryPercentageRemaining”:156,“batteryVoltage”:28}}},“binds”:,“configuredReportings”:,“meta”:{}},“2”:{“profId”:260,“epId”:2,“devId”:0,“inClusterList”:[1,6,57344],“outClusterList”:,“clusters”:{},“binds”:,“configuredReportings”:,“meta”:{}},“3”:{“profId”:260,“epId”:3,“devId”:0,“inClusterList”:[1,6,57344],“outClusterList”:,“clusters”:{},“binds”:,“configuredReportings”:,“meta”:{}}},“appVersion”:65,“stackVersion”:0,“hwVersion”:1,“dateCode”:“”,“zclVersion”:3,“interviewCompleted”:true,meta":{“configured”:-708457359},“lastSeen”:1707090695797}

not working:

{“id”:52,“type”:“EndDevice”,“ieeeAddr”:“0xa4c138266c58bd48”,“nwkAddr”:1058,“manufId”:4417,“manufName”:“_TZ3000_kt7obmnn”,“powerSource”:“Battery”,“modelId”:“TS0042”,“epList”:[1,2,3,4],“endpoints”:{“1”:{“profId”:260,“epId”:1,“devId”:0,“inClusterList”:[1,6,57344,0],“outClusterList”:[25,10],“clusters”:{“genBasic”:{“attributes”:{“65534”:0,“stackVersion”:0,“dateCode”:“”,“manufacturerName”:“_TZ3000_kt7obmnn”,“zclVersion”:3,“appVersion”:67,“modelId”:“TS0042”,“powerSource”:3}}},“binds”:,“configuredReportings”:,“meta”:{}},“2”:{“profId”:260,“epId”:2,“devId”:0,“inClusterList”:[6,1,6],“outClusterList”:,“clusters”:{},“binds”:,“configuredReportings”:,“meta”:{}},“3”:{“profId”:260,“epId”:3,“devId”:0,“inClusterList”:[6,1,6],“outClusterList”:,“clusters”:{},“binds”:,“configuredReportings”:,“meta”:{}},“4”:{“profId”:260,“epId”:4,“devId”:0,“inClusterList”:[6,1,6],“outClusterList”:,“clusters”:{},“binds”:,“configuredReportings”:,“meta”:{}}},“appVersion”:67,“stackVersion”:0,“hwVersion”:1,“dateCode”:“”,“zclVersion”:3,“interviewCompleted”:true,“meta”:{“configured”:-708457359},“lastSeen”:1707092207632}

Solved. For anyone having this issue looking for further info on what happened see this issue on Zigbee2MQTT github:

Looks like something happened during a recent update, which has been fixed. If you can’t wait for the stable release update, then using the dev branch of Zigbee2MQTT (Edge version in HASS ad-on) will fix the issues with null actions for this device.