question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Device Support Request] TS004F Tuya remote in Scene mode

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently te TS004F (which looks the same as the TS0044) is only supports as a dimmer switch. However, this switch has two modes: Dimmer and Scene.

In Dimmer mode: 1 = on 2 = off 3 = brightness up (step, move and stop values) 4 = brightness down (step, move and stop values)

In Scene mode: Each button has a press, double press and long press value.

Describe the solution you’d like The people at Z2MQTT are already working on it: https://github.com/Koenkk/zigbee2mqtt/discussions/7158 The people at Hubitat already integrated: https://raw.githubusercontent.com/kkossev/Hubitat/main/Drivers/Tuya TS004F/TS004F.groovy

Would be great if ZHA would support it as well.

Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.

{
  "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.NONE: 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": "0x0820",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0004",
        "0x1000"
      ],
      "out_clusters": [
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x000a",
        "0x0019",
        "0x1000"
      ]
    }
  },
  "manufacturer": "_TZ3000_xabckq1v",
  "model": "TS004F",
  "class": "zhaquirks.tuya.ts004f.TuyaSmartRemote004F"
}

Additional context I cannot pair the remote in Scene mode but you can switch modes when pressing the two right buttons on the remote at the same time for a longer period. It will send a zha event called attribute_updated in which it updates the switch_mode attribute. You can do the same action again to revert.

Related topic: https://github.com/zigpy/zha-device-handlers/issues/1322

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MattWestbcommented, Apr 8, 2022

ZHA is sometimes not loading the quirk and (normally then joining) and need one restart for doing it right. I think its one fix on the way for the device automatons for the dimmer switch mode but i have not getting time looking if its released or not.

Glad your device is is working well !!

1reaction
MattWestbcommented, Feb 18, 2022

Its possible getting it working then you have the mode switch attribute implanted in the quirk but the problem is the device is needing little “tuya magic spells” being casted on it then its joining the network if not have connected to one tuya ZBGW and have not getting the battery removed then its loosing the 3 extra endpoints.

I have getting it in “scene mode” but its very tricky and the timing it critical. The problem i cant getting the quirk reading and writing attribute to one device so early. More info https://github.com/zigpy/zha-device-handlers/discussions/1316 As long no core dev or other one with good python knowledge is helping we cant getting it working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RELEASE] Tuya Scene Switch TS004F driver
The recommended way to install the driver is Hubitat Package Manager (HPM). Search for "Tuya Scene Switch TS004F" or by tag "Zigbee".
Read more >
Help adding a variation of Tuya TS0044, TS004F to ZHA
So, I've decided to add this new device to zigpy following the protocol. The problem is that my quirk is recognized but not...
Read more >
[ST Edge] Zigbee Driver for MOES 4-Button Scene Switch ...
MOES Tuya ZigBee Wireless Scene Switch Push Button, Tuya ZigBee Hub Required,Not Work with Alexa, Battery Powered(Not Included), ...
Read more >
MoesHouse ZigBee Smart Knob Review - SmartHomeScene
AliExpress Reviews: MoesHouse ZigBee Smart Knob/Scene Switch ... number: mode: box min: 1 max: 100 remote: name: Tuya - TS004F Rotating Knob ...
Read more >
[Fixed] Tuya / Moes TS004F 21/34 - Domoticz
TS004F - MOES Wireless Scene Switch 21/34 - ESW-0ZBA-EU - 4 ... the Tuya zigbee gateway changes it's mode to a 4 button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found