Hi all,
I am a relatively new user of OpenHab2, but so far, I’ve set up a network of Xiaomi Aqara wall switches (powered), Xiaomi Aqara door and temperature sensors (battery), and a couple of IKEA Tradri repeaters (powered), and 3A NUE LED Controllers (powered).
All connected to an Ember Zigbee coordinator on a Raspi.
This setup works well without issues.
I recently bought battery-powered Zemismart Tuya wireless switches on Aliexpress [1], and I have paired them successfully with OpenHab [5].
Please note these are Zigbee-only devices, not the Wifi buttons that can be coupled with the smart things app (at least I think they are zigbee only, the spec sheet does not mention wifi [4]).
I can’t get the buttons on update their status in OH2, all I get when pressing the buttons are errors that command 253 on channel <device_id>/<button_id> is unknown [2].
The devices report themselves as _TZ3000_<random characters>, TS0043 (the 3 button version), and the chip has “ZS3L” printed on it.
The two button version reports itself as TS0042, and one button likewise as TS0041.
I would like to add support for these switches, and I can certainly help implement.
As a C/C++ software dev who is unfamiliar with the code base, I would appreciate a little help to get started.
After looking through the code base a bit, I am guessing that all it takes is adding support for that ominous command 253 in a custom discovery/thing rule [3], but I am at a loss how to achieve that.
(On a side note, the devices incorrectly report themselves as MAINS powered. Fixing that is not the top priority, but if it can be done, even better.)
Hope this post contains enough data to get started understanding the problem.
I can certainly supply more details.
Thanks,
Daniel
[2]
2020-11-24 21:38:14.530 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX EZSP: EzspIncomingMessageHandler [networkId=0, type=EMBER_INCOMING_UNICAST, apsFrame=EmberApsFrame [profileId=0104, clusterId=0006, sourceEndpoint=1, destinationEndpoint=1, options=[EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=AC], lastHopLqi=208, lastHopRssi=-48, sender=B883, bindingIndex=255, addressIndex=255, messageContents=01 01 FD 00]
2020-11-24 21:38:14.531 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=B883/1, destinationAddress=0000/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=0, apsSecurity=false, ackRequest=false, apsCounter=AC, rssi=-48, lqi=D0, payload=01 01 FD 00]
2020-11-24 21:38:14.531 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=1, commandId=253]
2020-11-24 21:38:14.531 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - BC33ACFFFEEF6F95: Unknown command 253
2020-11-24 21:38:14.532 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - BC33ACFFFEEF6F95: Added transaction to queue, len=1, transaction=ZigBeeTransaction [ieeeAddress=BC33ACFFFEEF6F95 queueTime=0, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 → B883/1, cluster=0006, TID=01, commandIdentifier=253, statusCode=FAILURE]]
2020-11-24 21:38:14.532 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=1, sleepy=0/3
2020-11-24 21:38:14.533 [DEBUG] [transaction.ZigBeeTransactionManager] - B883/1: Sending ZigBeeTransaction [ieeeAddress=BC33ACFFFEEF6F95 queueTime=1, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 → B883/1, cluster=0006, TID=01, commandIdentifier=253, statusCode=FAILURE]]
2020-11-24 21:38:14.533 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding
2020-11-24 21:38:14.533 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: DefaultResponse [On/Off: 0000/0 → B883/1, cluster=0006, TID=01, commandIdentifier=253, statusCode=FAILURE]
2020-11-24 21:38:14.534 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX ZCL: ZclHeader [frameType=ENTIRE_PROFILE_COMMAND, manufacturerSpecific=false, direction=SERVER_TO_CLIENT, disableDefaultResponse=true, manufacturerCode=0, sequenceNumber=1, commandId=11]
2020-11-24 21:38:14.534 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0000/1, destinationAddress=B883/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=8, apsSecurity=false, ackRequest=true, apsCounter=FB, rssi=–, lqi=–, payload=18 01 0B FD 01]
2020-11-24 21:38:14.534 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Incoming message from node B883 did not translate to command
[4] https://developer.tuya.com/en/docs/iot/device-development/module/zigbee-module/zs3l?id=K97r37j19f496
[5]