Four button Zigbee device DHT

Hy everyone!

I just received a new device: a 4 Gang Scenario Switch ( Basically, it’s a Tuya Zigbee device with four buttons that works separetely, each one supporting three values: single click, double click and press.

SmartThings hub recognized it as a thing, and the Zigbee Button DHT “sees” the four buttons correctly, but it don’t work. Is there a way to integrate it? Below are the infos exhibited on the device page.

Thanks in advance for any help or suggestion!

Thing Device Switch Lonsonho

  • Name: Thing

  • Label: Switch Lonsonho

  • Type: ZigBee Button

  • Version: Published

  • Zigbee Id: BC33ACFFFE28BA75

  • Device Network Id: 2FAF

  • Status: ONLINE

  • Hub: Hub SmartThings

  • Last Activity At: 2020-09-23 8:29 PM BRT

  • Date Created: 2020-09-23 6:27 PM BRT

  • Last Updated: 2020-09-23 8:46 PM BRT

  • Route: [This Device (2FAF) ↔ Hub SmartThings

  • Metrics: * Last Hop LQI: 255
    * Last Hop RSSI: -23
    * Received Messages From Device: 181
    * Received Messages From Device (Duplicates): 0
    * Messages Transmitted to Device: 153
    * Messages Transmitted to Device (Failures): 10
    * Updated Time: 2020-09-23 8:26 PM BRT

  • Data: * application: 42
    * endpointId: 01
    * manufacturer: _TZ3000_vp6clf9d
    * model: TS0044
    * zigbeeNodeType: SLEEPY_END_DEVICE

  • Raw Description: 01 0104 0000 01 04 0000 000A 0001 0006 01 0019

  • Firmware: Check Now

  • Current States * [supportedButtonValues]:

                                  [ "pushed", "held" ]
  • button: pushed

  • numberOfButtons: 4

  • battery:

  • button: pushed

  • numberOfButtons: 4

  • healthStatus:

  • DeviceWatch-Enroll:

  • checkInterval: 60 s

  • DeviceWatch-DeviceStatus:

  • Preferences (edit): Name Type Value
    holdTime number 2

  • Execution Location: Local

  • Events: List Events

  • In Use By

I would start with the default zigbee multibutton DTH and modify it as needed.


Thanks prjct92eh2, I’ll try this way. I’m just a noobie without coding skills, but I’m persistent! :yum:

If you haven’t already looked through this thread, it might be worthwhile if you’re going to be digging in to custom code. It’s pretty buggy right now.

Thanks a lot, Steven! Any help is very welcome, once I imagine that I’ll spend some nights without sleep in order to make this device work! I think that firstly I must found a way to make the device work, but in the sequence the adaptation to the new standarts will be necessary. :upside_down_face:

Hy guys! The EcoSmart 4-button Remote DHT partially works with the device, once just the “pushed” value is recognized through this DHT, and the buttons 2,3 and 4 don’t answer to the commands assigned, but if I don’t assign a command to it they reproduce the command assigned to button 1.

I downloaded its code from SmartThings GitHub, and now I just need to find a way to activate the values “double” and “held”, and perhaps use some tweak to reduce the delay beetwen the command given by the button and the action desired, but it is secondary. The main objective now is to make all the buttons responsive and make they accept the other values.

Some tip to help a noobie without coding skills?

Hi. I was looking for this DTH and found the information on a youtube video:

SMARTTHINGS - Instalando e Configurando o Interruptor sem fio Zigbee 4 botões

Here is the link to the Device handler. It works very well for the 3 states for the four buttons.

Device Handler Zemismart 4 button


Hi Emilio!

Thanks a lot, it is working flawlessly!


1 Like

Some input on this, that you might find helpful:

First feedback: The device handler link above (=“Zemismart 4 button”) works perfectly with the Tuya Sceneswitch 4-button device. It detects the 4 buttons individually.

The more advanced functionality (double-press or hold) is however not supported by the dev. handler. But this is only a little drawback, as the 4 buttons basically work.

Now some tips/tricks:

If you need to trigger a routine in Alexa follow this procedure:
a) Create a virtual switch in SmartThings (use the web interface and not the app) and use the device handler “Alexa Simulated Switch” (code is easily found on github).
b) Alexa will discover/“see” the virtual switch instantly and you can now base a routine on that switch going on/open (or off/closed). (In this way you build a “bridge” between SmartThings and Alexa that otherwise is not there.)
c) In SmartThings you assign this virtual switch to one of the 4 buttons, so this virtual switch changes from “closed” to “open” when the relevant button is pressed.
d) In SmartThings you also create an automation that resets the virtual switch with a delay of 10 secs. Then the virtual switch will always be ready for another press on the button.

Repeat steps a) through d) for all 4 buttons, so you have 4 virtual switches each corresponding to a separate button. Voila!