zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Tuya TS004F (_TZ3000_xabckq1v) is always disappearing from network

Open ikarisan opened this issue 2 years ago • 5 comments

What happened?

Hi!

One of my Tuya TS004F (4x buttons) device is always disappearing from network every few days.

Than I have to rejoin the switch the network and everything works fine, again. No need to rename or reconfigure the device. I think this has only happened since I started using a "SONOFF Zigbee 3.0 USB Dongle Plus" as a coordinator.

What did you expect to happen?

No disconnection

How to reproduce it (minimal and precise)

Join the TS004F to your network and wait a few days.

Zigbee2MQTT version

1.33.2-dev

Adapter firmware version

20230507

Adapter

SONOFF Zigbee 3.0 USB Dongle Plus

Debug log

No response

ikarisan avatar Nov 14 '23 17:11 ikarisan

Something similar happens with my Sonoff SNZB-04 window sensor. It works nice for a few days and then suddenly it is shown as "offline since x days". Then I have to allow joining of new devices and reset the sensor.

ikarisan avatar Nov 15 '23 17:11 ikarisan

Very strange:

The payload.action of the TS004F should be one of 1_single, 1_double, 2_single, 2_double... But zigbee2mqtt sends:

Button1 single click: "on" Button1 double click: --- Button2 single click: "undefined" followed by "brightness_step_up" Button2 double click: "undefined" followed by "undefined" Button3 single click: "off" Button3 double click: --- Button4 single click: brightness_step_up Button4 double click: ---

This is the debug output for "button1 single click":

debug 2023-11-19 14:09:11Received Zigbee message from 'TuYa_Vierfach_Schalter', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
info 2023-11-19 14:09:11MQTT publish: topic 'zigbee2mqtt/TuYa_Vierfach_Schalter', payload '{"action":"on","battery":100,"device":{"applicationVersion":65,"dateCode":"","friendlyName":"TuYa_Vierfach_Schalter","hardwareVersion":1,"ieeeAddr":"0x84fd27fffe8d3e0c","manufacturerID":4098,"manufacturerName":"_TZ3000_xabckq1v","model":"TS004F","networkAddress":30763,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"last_seen":"2023-11-19T14:09:10+01:00","linkquality":3,"operation_mode":"event","voltage":3000}'

ikarisan avatar Nov 19 '23 13:11 ikarisan

After updating to 1.33.2-dev commit: [fd19c86] (https://github.com/Koenkk/zigbee2mqtt/commit/fd19c86) the switch seems to work again.

ikarisan avatar Nov 19 '23 13:11 ikarisan

I rejoiced too soon. After just two hours, the switch no longer works and disappeared from the list of devices. It is no longer in the database.db but still in state.json.

state.json:

"0x84fd27fffe8d3e0c": {
        "battery": 100,
        "voltage": 3000,
        "last_seen": "2023-11-19T14:16:27+01:00",
        "linkquality": 21,
        "operation_mode": "event"
    },

ikarisan avatar Nov 19 '23 15:11 ikarisan

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar May 18 '24 00:05 github-actions[bot]