Edge driver for Zemismart 6 button remote

Does anyone have an Edge driver that would work with the Zemismart (ZM-RM02) 6 button remote? It is battery operated and uses 3V, CR2032, Lithium Batteries.

image

@zambobmaz, @veonua, @ygerlovin, @lmullineux, @iquix

since you tagged me. No, I haven’t even heard of the name before.

Lua is not that hard to learn )
once you learn it it will take a couple of hours to create a driver

Zemismart is a company that mostly rebrands devices from other manufacturers. Their most popular models are rebranded Tuya Zigbee or WiFi devices.

This specific one is a rebranded Tuya model.

They have two 6 channel Tuya Zigbee remotes, I think it’s this one:

And not this one:

And that first one does have a groovy DTH downloadable from their site:

Zigbee Handler Download

They were fairly popular in the community back in 2018 because they were one of the first Tuya rebrands to offer DTHs for their devices. But I don’t think they’ve kept up with the app changes, and I haven’t heard if they’re intending to provide Edge Drivers or not. It would be worth asking their support since they do advertise some of their devices, including this one, as compatible with SmartThings.

https://www.zemismart.com/pages/contact-us-30

I passed this device to obmaz and he even messed with the drive for him. was recognized but no action worked.

1 Like

I have installed @zambobmaz Edge Driver and as you said it does not work.
Did you send him CLI logs of the joining process to help with debugging? If not I have them and can send them to him.

1 Like

not sent. I need to learn how to use the cli

I will send him my logs

Perfect. Thanks!!

Pairing logs for Zemismart B6 @zambobmaz @niquini

The 1st thing I see is a warning that “Device does not support cluster 0x0001 not adding configured attribute”

2021-12-28T18:56:10.021350747+00:00 TRACE zigbee-tuya-button Setup driver zigbee-tuya-button with lifecycle handlers:
DeviceLifecycleDispatcher: zigbee-tuya-button
default_handlers:
doConfigure:
added:
driverSwitched:
child_dispatchers:

2021-12-28T18:56:10.024710372+00:00 TRACE zigbee-tuya-button Setup driver zigbee-tuya-button with Capability handlers:
CapabilityCommandDispatcher: zigbee-tuya-button
default_handlers:
refresh:
refresh
child_dispatchers:

2021-12-28T18:56:10.029774872+00:00 TRACE zigbee-tuya-button Setup driver zigbee-tuya-button with Zigbee handlers:
ZigbeeMessageDispatcher: zigbee-tuya-button
default_handlers:
attr:
ZclClusterAttributeValueHandler: cluster: PowerConfiguration, attribute: BatteryVoltage
ZclClusterAttributeValueHandler: cluster: PowerConfiguration, attribute: BatteryPercentageRemaining
global:
cluster:
ZclClusterCommandHandler: cluster: OnOff, command: 0xFD
ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
zdo:
child_dispatchers:

2021-12-28T18:56:10.060242997+00:00 WARN zigbee-tuya-button Device does not support cluster 0x0001 not adding configured attribute
2021-12-28T18:56:10.063913830+00:00 WARN zigbee-tuya-button Device does not support cluster 0x0001 not adding monitored attribute
2021-12-28T18:56:10.068738163+00:00 TRACE zigbee-tuya-button Received event with handler _resync
2021-12-28T18:56:10.071741080+00:00 TRACE zigbee-tuya-button Received event with handler environment_info
2021-12-28T18:56:10.081565455+00:00 TRACE zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received unhandled lifecycle event: init
2021-12-28T18:56:10.084792955+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:10.087860163+00:00 TRACE zigbee-tuya-button Received event with handler _resync
2021-12-28T18:56:10.090874955+00:00 TRACE zigbee-tuya-button Received event with handler environment_info
2021-12-28T18:56:10.094479205+00:00 DEBUG zigbee-tuya-button Z-Wave hub node ID environment changed.
2021-12-28T18:56:10.098184205+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:10.101297913+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: added
2021-12-28T18:56:10.106598247+00:00 TRACE zigbee-tuya-button Found DeviceLifecycleDispatcher handler in zigbee-tuya-button
2021-12-28T18:56:10.109464497+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added
2021-12-28T18:56:10.113019122+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button2
2021-12-28T18:56:10.117743830+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button2”}
2021-12-28T18:56:10.129330663+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button2”}
2021-12-28T18:56:10.139771497+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button6
2021-12-28T18:56:10.144481872+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button6”}
2021-12-28T18:56:10.155567747+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button6”}
2021-12-28T18:56:10.167351163+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button5
2021-12-28T18:56:10.172215372+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button5”}
2021-12-28T18:56:10.182975372+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button5”}
2021-12-28T18:56:10.194866830+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button1
2021-12-28T18:56:10.199468372+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button1”}
2021-12-28T18:56:10.211416372+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button1”}
2021-12-28T18:56:10.222775372+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button3
2021-12-28T18:56:10.227392038+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button3”}
2021-12-28T18:56:10.238658122+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button3”}
2021-12-28T18:56:10.250231163+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : button4
2021-12-28T18:56:10.254946163+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“supportedButtonValues”,“state”:{“value”:[“pushed”,“double”,“held”]},“component_id”:“button4”}
2021-12-28T18:56:10.265850872+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> emitting event: {“capability_id”:“button”,“attribute_id”:“button”,“state”:{“value”:“pushed”},“component_id”:“button4”}
2021-12-28T18:56:10.277612872+00:00 INFO zigbee-tuya-button <<---- Moon ---->> device_added - component : main
2021-12-28T18:56:10.281823663+00:00 WARN zigbee-tuya-button Attempted to generate event for c2759aa2-d028-4a62-87f2-30d46f1d2301.main but it does not support capability Button
2021-12-28T18:56:10.285171038+00:00 WARN zigbee-tuya-button Attempted to generate event for c2759aa2-d028-4a62-87f2-30d46f1d2301.main but it does not support capability Button
2021-12-28T18:56:10.288721955+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:10.292126580+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:10.295488997+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: doConfigure
2021-12-28T18:56:10.311425205+00:00 TRACE zigbee-tuya-button Found DeviceLifecycleDispatcher handler in zigbee-tuya-button
2021-12-28T18:56:10.314733122+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))>:
arg1: doConfigure
arg2: table: 0x2374b08
[string “init.lua”]:82: attempt to index a nil value (global ‘clusters’)
2021-12-28T18:56:10.324017705+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:10.516281955+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:10.536400538+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: infoChanged
2021-12-28T18:56:10.548125080+00:00 TRACE zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received unhandled lifecycle event: infoChanged
2021-12-28T18:56:10.552240830+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:17.115006245+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:17.121348328+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: doConfigure
2021-12-28T18:56:17.127722995+00:00 TRACE zigbee-tuya-button Found DeviceLifecycleDispatcher handler in zigbee-tuya-button
2021-12-28T18:56:17.134603495+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x274B] (Zemismart 6 Button (EF00, TS0601))>:
arg1: doConfigure
arg2: table: 0x2342e10
[string “init.lua”]:82: attempt to index a nil value (global ‘clusters’)
2021-12-28T18:56:17.138087245+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:17.157511662+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: infoChanged
2021-12-28T18:56:17.172665662+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:17.180864870+00:00 TRACE zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received unhandled lifecycle event: infoChanged
2021-12-28T18:56:17.184207703+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:17.366407912+00:00 TRACE zigbee-tuya-button Received event with handler device_lifecycle
2021-12-28T18:56:17.377991662+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received lifecycle event: infoChanged
2021-12-28T18:56:17.383662370+00:00 TRACE zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received unhandled lifecycle event: infoChanged
2021-12-28T18:56:17.386601995+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:19.339392203+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:56:19.360200453+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xFF, rssi: -11, body_length: 0x000F, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x00, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0001, DataType: Uint8, ApplicationVersion: 0x44 >, < AttributeRecord || AttributeId: 0xFFE2, DataType: Uint8, Uint8: 0x1F >, < AttributeRecord || AttributeId: 0xFFE4, DataType: Uint8, Uint8: 0x01 > > > >
2021-12-28T18:56:19.371539161+00:00 DEBUG zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) device thread event handled
2021-12-28T18:56:40.051495323+00:00 TRACE zigbee-tuya-button Received event with handler zigbee health poll
2021-12-28T18:57:10.049032647+00:00 TRACE zigbee-tuya-button Received event with handler zigbee health poll
2021-12-28T18:57:27.650997982+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:27.657310637+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -57, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 57 01 04 00 01 00 > >
2021-12-28T18:57:27.669546623+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:27.672904131+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:27.677626917+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -57, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 57 01 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:27.765321527+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:27.771918042+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -55, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 58 0A 02 00 04 00 00 00 51 > >
2021-12-28T18:57:27.793491347+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:27.796563453+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:27.803503933+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -55, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 58 0A 02 00 04 00 00 00 51 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:34.548091951+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:34.557251909+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 59 02 04 00 01 00 > >
2021-12-28T18:57:34.575567868+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:34.578555493+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:34.583768576+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 59 02 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:34.605155326+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:34.610854909+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5A 0A 02 00 04 00 00 00 51 > >
2021-12-28T18:57:34.622857951+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:34.625745909+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:34.630490993+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5A 0A 02 00 04 00 00 00 51 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:38.292280535+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:38.299477160+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5B 03 04 00 01 00 > >
2021-12-28T18:57:38.312169910+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:38.315312035+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:38.320987743+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5B 03 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:38.365125326+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:38.369488701+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5C 0A 02 00 04 00 00 00 48 > >
2021-12-28T18:57:38.381579285+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:38.384808410+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:38.389534618+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5C 0A 02 00 04 00 00 00 48 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:40.079001618+00:00 TRACE zigbee-tuya-button Received event with handler zigbee health poll
2021-12-28T18:57:41.194724035+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:41.199185577+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -54, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5D 04 04 00 01 00 > >
2021-12-28T18:57:41.212072785+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:41.215251327+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:41.219851118+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -54, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5D 04 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:41.284653743+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:41.289315660+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5E 0A 02 00 04 00 00 00 48 > >
2021-12-28T18:57:41.303534702+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:41.306601910+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:41.310524827+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 5E 0A 02 00 04 00 00 00 48 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:44.284878035+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:44.289394369+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5F 05 04 00 01 00 > >
2021-12-28T18:57:44.303623202+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:44.306537785+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:44.310891660+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 5F 05 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:44.345126952+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:44.351764869+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 60 0A 02 00 04 00 00 00 48 > >
2021-12-28T18:57:44.365328077+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:44.368376910+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:44.373322077+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 60 0A 02 00 04 00 00 00 48 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:48.313685369+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:48.319547911+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 61 06 04 00 01 00 > >
2021-12-28T18:57:48.331555703+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:48.335533703+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:48.340432744+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x00, ZCLCommandId: 0x01 >, GenericBody: 00 61 06 04 00 01 00 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)
2021-12-28T18:57:48.374543411+00:00 TRACE zigbee-tuya-button Received event with handler zigbee
2021-12-28T18:57:48.378939203+00:00 INFO zigbee-tuya-button <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 62 0A 02 00 04 00 00 00 48 > >
2021-12-28T18:57:48.391132953+00:00 TRACE zigbee-tuya-button Found ZigbeeMessageDispatcher handler in zigbee-tuya-button
2021-12-28T18:57:48.395239119+00:00 INFO zigbee-tuya-button Executing ZclClusterCommandHandler: cluster: 0xEF00, command: 0x01
2021-12-28T18:57:48.399909244+00:00 ERROR zigbee-tuya-button Zemismart 6 Button (EF00, TS0601) thread encountered error: [string “st.dispatcher”]:229: Error encountered while processing event for <ZigbeeDevice: c2759aa2-d028-4a62-87f2-30d46f1d2301 [0x6538] (Zemismart 6 Button (EF00, TS0601))>:
arg1: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x6538, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xEF00 >, lqi: 0xFF, rssi: -53, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x01, ZCLCommandId: 0x01 >, GenericBody: 00 62 0A 02 00 04 00 00 00 48 > >
[string “init.lua”]:43: attempt to index a nil value (local ‘ev’)

@Paul_Oliver can you tell me where to start the cli? I want to learn and then go to the moon

I got my CLI instructions from this link:

2 Likes

@Paul_Oliver
I have confirmed that I made a mistake in the code and I think it will be able to go forward based on the LOG. I will update the driver with more logs.

3 Likes

If I can do anything to help let me know.

2 Likes

Hi @zambobmaz ,
Could you please share DPIDs mappings for EF00 private cluster of this device?
I don’t have this device to experiment with.

In @Paul_Oliver 's log, I see reports for DPIDs 1-6 with type 04 (enum). I suppose it corresponds to the buttons. However, I’m not sure about enum values, what are the values for push and hold and double click?
I also see reports for DPID == 0x0A with type 2 (int32). Do you know what is its meaning?
What additional info is reported from this device?
Thank you

It is my expectation based on log

inCluster: EF00
ZCLCommand : 0x01 (All buttons are the same)
EndPoint : 0x01 (All buttons are the same)
ZCLBody index 2 (start from 0) : 1~6 is button number 1 ~ 6 / 0A is battery
ZCLBody index 6 (start from 0) : 0 is click / 1 is double / 2 is held

I will update the code soon to github.

@zambobmaz , Thank you very much.
I suppose the battery is reported in % under dpid 0xA? Paul’s log contain value 0x48, which is 72 decimal.
Do you know by a chance whether the device also supports standard clusters, like onoff or power configuration and/or battery voltage?
Thanks

P.S. As a side note, I would consider sending supportedButtonValues only in device init or device configure. It is possible to iterate over all components and send this event only to buttons. Please let me know whether I can be of further assistance.

The ref DTH

Fist of all, It is difficult to know whether the battery value is functioning normally. If DTH works normally, it probably seems to be 0X0A.

Based on FP (01 0104 0051 01 04 0000 0004 0005 EF00 02 0019 000A), there are 4 inClusters

  • inClusters : 0000(Basic) 0004(Groups) 0005(Scenes) EF00(Tuya Custom?)
    The device do not have OnOff cluster (0x0006) and Powerconf(0x0001), so standard cluster will not work.

Could you explain more about " I would consider sending supportedButtonValues only in device init or device configure"? because init and addedseem to have the same life cycle.

@zambobmaz
Tuya devices are not always report all clusters they support. One example is Moes switches that support PowerOn configuration (I believe under 0x8002), but do not report it in FP.

Device added lifecycle callback is called once after/during pairing.
Device init livecycle callback is called when device is initialized and might be called several times for device, for example when you switch drivers (or even update the existing driver). It is a common practice to initialize capabilities in init function
Do configure callback is called before the driver is updated and also on each property change

@ygerlovin
Thanks for the detailed explanation. I have known that all clusters are on FP so far.
I am developing a profile change function, and I need to think about whether to put supportButtonValue in code (init or do_configure) or custom capavility yaml.

@Paul_Oliver
I uploaded the new version. (2021-12-29T11:44:25.982138)
Please test it and share the log.

It would be good if you test it in the order below.
Button1 click → double click → held
Button2 click → double click → held

Button6 click → double click → held

1 Like