ZHA - Tuya 4-button Scene Switch (TS0044)

You set the triggers in your Automation and you give an id for every one.
Then in your actions you have an Option Select with condition: trigger and the id you need to use.
Example:

alias: My Automation
description: 'Select Scenes'
trigger:
  - device_id: <The id from your Switch>
    domain: zha
    platform: device
    type: first_button_short_press
    subtype: first_button_short_press
    id: first_short
  - device_id: <The id from your Switch>
    domain: zha
    platform: device
    type: first_button_long_press
    subtype: first_button_long_press
    id: first_long
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: first_short
        sequence:
          - action: {{<What you need to do if there is a short press on the first button > }}
      - conditions:
           - condition: trigger
            id: first_long
        sequence:
         - action: {{<What you need to do if there is a long press on the first button >}}
    default: []
mode: restart

Hi, I have another variant of this device (TS0044) as tuya scene remote

I’ve imported the blueprint, edited the manufacturer name to get the device detected in automation. But nothing seems to happen with any button press, or detected in zha_event
More or less similar to @ChreeceGR , may I know how you resolved your issue?


Signature:


{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.0: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0006",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0006"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "2": {
      "profile_id": 260,
      "device_type": "0x0006",
      "in_clusters": [
        "0x0001",
        "0x0006"
      ],
      "out_clusters": []
    },
    "3": {
      "profile_id": 260,
      "device_type": "0x0006",
      "in_clusters": [
        "0x0001",
        "0x0006"
      ],
      "out_clusters": []
    },
    "4": {
      "profile_id": 260,
      "device_type": "0x0006",
      "in_clusters": [
        "0x0001",
        "0x0006"
      ],
      "out_clusters": []
    }
  },
  "manufacturer": "_TZ3000_abci1hiu",
  "model": "TS0044",
  "class": "zhaquirks.tuya.ts0044.ZemiSmartRemote0044"
}

I didn’t yet resolve my issue…

I have the same issue here. The device is shown in automations and can select triggers, but nothing happens by pressing the buttons.

Anyone know how to solve this? I’m using the custom quirk posted by HoustonAU

It doesn’t work in zha.

I use it with tasmota (Z2T) on the sonoff bridge and mqtt-trigger.

Thasnks for the blueprint.
I just purchased an Ajax Online Zignito Scene Switch with model number ESW-0ZAA-EU. It works with this blueprint out the box.

Can’t import it anymore? can someone help?

Yes I’m having the same issue. I’m still getting to grips with HA. As I can’t import it like other ones how do I actually use this as a blueprint - how do I move it from this page to add it so I can us it in the UI?

Well I’ve actually worked out how to do this but putting into a .yaml file however when I select the drop down in the UI in the blueprint under the drop down part when it says “Tuya 4-button scene switch” under DEVICE it says “No matching devices found” so I can’t select the switch to use. I guess it’s something to do with the ID and how it’s named. Which is the bit in the yaml code I should chase to the name of my device as I’m getting confused. If anyone could help it would be greatly appreciated.

I needed to add a zigbee power plug as a router before it was able to see it was next to the conbee stick but it needed the power plug
Hold button until it start blinking

I have the 1 gang scene sw “TS0041” trying to edit the yaml but the blue print will not load in homeassistant
Works with input ‘tuya_4button_scene_switch’ what input is correct for the 1 gang model?

blueprint:
  name: ZHA - Tuya 1-Button Scene Switch
  description: Automate your Tuya 1-Button Scene Switch using ZHA events.
  domain: automation
  input:
    tuya_4button_scene_switch:
      name: Tuya 1-Button Scene Switch
      description: Tuya 4-Button Scene Switch to use
      selector:
        device:
          integration: zha
          manufacturer: _TZ3000_vp6clf9d
          model: TS0041
    button_one_short_press:
      name: Single Press
      description: Action to run on button 1 (lower-left) single press
      default: []
      selector:
        action: {}
    button_one_double_press:
      name: Double Press
      description: Action to run on button 1 (lower-left) double press
      default: []
      selector:
        action: {}
    button_one_long_press:
      name: Long Press
      description: Action to run on button 1 (lower-left) long press
      default: []
      selector:
         action: {} 
mode: restart
max_exceeded: silent
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input 'tuya_1button_scene_switch'
action:
- variables:
    command: '{{ trigger.event.data.command }}'   
    endpoint_id: '{{ trigger.event.data.endpoint_id }}'
- choose:
  - conditions: "{{ command == 'remote_button_short_press' }}"
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input 'button_one_short_press'
  - conditions: "{{ command == 'remote_button_double_press' }}"
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input 'button_one_double_press'
  - conditions: "{{ command == 'remote_button_long_press' }}"
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input 'button_one_long_press'

It works great! I changed:

      manufacturer: _TZ3000_b7bxojrg
      model: TS0044

image

Blueprint don’t work for the 1 gang sw fixed it with a event trigger attached images hope it helps



Hi everyone. I have exactly this model but my Zigbee coordinator (conbee II/ZHA) gives a different Tuya model (TS004F) when pairing, so the blueprint with the 12 buttons is not working.

Does anybodoy know why is this happening? The backside of the switch shows the correct Serial-nr for the device TS0044.

Thanks
mvk

Same for me tried this blueprint worked for me

That works indeed but its for a Tuya 4-button switch TS004F with just 6 commands.

According to the model number of the device, I have the switch TS0044 and it should activate up to 12 commands but my coordinator detect my TS0044 as TS004F. I can´t make it work with the TS0044 blueprint.

Someone with same issue? How can I check if my coordinator takes the false device? or if it is detecting the right device and I got fooled on aliexpress?

@Stringer How do you use the blueprint when there’s no device able to be selected after pairing the TS0044 with zha?

am I missing something or there’s just a special way to pair this scene controller?

then you you dont have the same device

Delete the existing device. BEFORE you re-pair it, hold both the upper right and lower right keys at the same time until the lower left key’s light flashes (you may need to hold the keys down for about 15 seconds). THEN pair it. It will still register as a TS004F but this blueprint does indeed work for all 4 buttons, each with 4 functions.

Actually, all it takes is to modify the blueprint to match with the same device.