MOES Smart Button

I added a MOES zigbee smart button to my Tuya app and it controls and works fine within Tuya. I reloaded the Tuya integration in HA which now includes the smart button device, however, there are no added entities. How do I control the buttons features in HA?

Diagnostics file info:

{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2022.9.5",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "x86_64",
"timezone": "America/Los_Angeles",
"os_name": "Linux",
"os_version": "5.15.67",
"supervisor": "2022.09.1",
"host_os": "Home Assistant OS 9.0",
"docker_version": "20.10.17",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"blueiris": {
"version": "1.0.13",
"requirements": []
},
"weatheralerts": {
"version": "0.1.5",
"requirements": []
},
"bhyve": {
"version": "3.0.0",
"requirements": []
},
"hacs": {
"version": "1.27.2",
"requirements": [
"aiogithubapi>=22.2.4"
]
},
"dahua": {
"version": "0.5.0",
"requirements": []
}
},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"documentation": "https://www.home-assistant.io/integrations/tuya",
"requirements": [
"tuya-iot-py-sdk==0.6.6"
],
"dependencies": [
"ffmpeg"
],
"codeowners": [
"[@tuya](https://github.com/tuya)",
"[@zlinoliver](https://github.com/zlinoliver)",
"[@frenck](https://github.com/frenck)"
],
"config_flow": true,
"iot_class": "cloud_push",
"dhcp": [
{
"macaddress": "105A17*"
},
{
"macaddress": "10D561*"
},
{
"macaddress": "1869D8*"
},
{
"macaddress": "381F8D*"
},
{
"macaddress": "508A06*"
},
{
"macaddress": "68572D*"
},
{
"macaddress": "708976*"
},
{
"macaddress": "7CF666*"
},
{
"macaddress": "84E342*"
},
{
"macaddress": "D4A651*"
},
{
"macaddress": "D81F12*"
}
],
"loggers": [
"tuya_iot"
],
"is_built_in": true
},
"data": {
"endpoint": "[https://openapi.tuyaus.com](https://openapi.tuyaus.com/)",
"auth_type": 0,
"country_code": "1",
"app_type": "tuyaSmart",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Smart Button",
"model": "ERS-10TZBVB-AA",
"category": "wxkg",
"product_id": "kjfzuycl",
"product_name": "Smart Button",
"online": true,
"sub": true,
"time_zone": "-07:00",
"active_time": "2022-09-20T01:38:13+00:00",
"create_time": "2022-09-20T01:38:13+00:00",
"update_time": "2022-09-20T01:38:13+00:00",
"function": {
"mode": {
"type": "Enum",
"value": {
"range": [
"remote_control",
"wireless_switch"
]
}
},
"scene_preset": {
"type": "String",
"value": {}
}
},
"status_range": {
"switch_mode1": {
"type": "Enum",
"value": {
"range": [
"click",
"double_click",
"press"
]
}
},
"battery_percentage": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"mode": {
"type": "Enum",
"value": {
"range": [
"remote_control",
"wireless_switch"
]
}
},
"scene_preset": {
"type": "String",
"value": {}
}
},
"status": {
"switch_mode1": "double_click",
"battery_percentage": 100,
"mode": "wireless_switch",
"scene_preset": "800003e80384005a03e803e8810003e8006400b403e803e8820001900320010e03e803e883010190000000f000fa00fa"
},
"home_assistant": {
"name": "Smart Button",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": []
}
}
}

It is fine if you don’t have a sensor but you should check automation creation page if you can see device actions such as clicks, releases etc.

Thanks for the reply and idea. When I create a new automation, HA shows the device, but no possible triggers (see screen print). When I attempt to complete the automation I receive a message stating, “Message malformed: Integration ‘’ not found”. The devices shows as “undefined”.

HI! I bought “Smart Button (MOES) IP55 zigBee Tuya (Smart Life) 4B1-03E3-04 (ZN358218_01) - With 3 features” and add in Smart Life app, but I can’t add this Smart Button in HA (Button connected, but in HA - 0 features. Do you fix it? Or maybe somebody help me?
@littlemaui

Any progress on the topic?
Ive just run into the same issue.

I eventually got mine to work. I’m now using a Sonoff zigbee dongle and zigbee2mqtt as a gateway to my zigbee devices. Can’t recall on the specifics.

alias: Moes Button Den Lights
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: 907ca9fd25261fe86ddddf65eacb84df
    type: action
    subtype: single
    discovery_id: 0xe0798dfffedddd35 action_single
    id: single1
condition:
  - condition: trigger
    id: single1
action:
  - choose:
      - conditions:
          - condition: trigger
            id: single1
        sequence:
          - type: toggle
            device_id: 6ba772bf03fdd0bfeddddded646ec0c6
            entity_id: switch.den_light
            domain: switch
mode: single

i have the Moes smart button to work in ZHA.
the button dont have identies as you normaly would see.
the button functions are programmed in the button it self.

  • 1 click is on
  • click once again it will dim x%, click again dimm x% and click agian it dimm x% and then it loops from bright to low light
  • double click is off
  • press long all off
  • press 3 sec tempurature color change.

so to be able to use it in home assistant create 2x automation

  1. create automation on.
alias: Smart-button-on
description: ""
trigger:
  - platform: device
    type: turned_on
    device_id: b7931fc78009184d662c955edb896281
    entity_id: switch.lightbutton_coffee_switch
    domain: switch
condition:
  - condition: device
    type: is_off
    device_id: 2d8d5d758601013f66c4777f00bf22f4
    entity_id: light.tze200_dimmer_coffe_corner_light_2
    domain: light
action:
  - type: turn_on
    device_id: 2d8d5d758601013f66c4777f00bf22f4
    entity_id: light.tze200_dimmer_coffe_corner_light_2
    domain: light
mode: single
  1. create automation off.
alias: smart-button-off
description: ""
trigger:
  - platform: device
    type: turned_off
    device_id: b7931fc78009184d662c955edb896281
    entity_id: switch.lightbutton_coffee_switch
    domain: switch
condition:
  - condition: device
    type: is_on
    device_id: 2d8d5d758601013f66c4777f00bf22f4
    entity_id: light.tze200_dimmer_coffe_corner_light_2
    domain: light
action:
  - type: turn_off
    device_id: 2d8d5d758601013f66c4777f00bf22f4
    entity_id: light.tze200_dimmer_coffe_corner_light_2
    domain: light
mode: single

have fun.

@marcelvanrooden - Ah right so the button is multi-click but all the features are baked into the switch itself. :frowning: do you know of any remote zigbee switches where all the buttons present themselves to HA in a way that they can be totally remapped into automations?

I use an event trigger with zha_event, and this:

unique_id: [yours]
command: move_to_level

for a single press.

But for a long press I use:

unique_id: [yours]
command: stop

I know it’s not all functionality, but at least it’s 2 things.