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] not standard TS004F?

See original GitHub issue

Is your feature request related to a problem? Please describe. I got a Moes Smart Button. I can register it with ZHA, but I can create event for press, double press or long press.

I don’t really understant the device reference.
It reports it-self like a TS004F _TZ3000_kjfzuycl. TS004F is the reference, and TZ3000_kjfzuycl a kind of manufacturer ID?

There is already a quirk for TS004F, but it seems to be a 4 gang switch? with different manufacturer?

Is it really the same product, or do I have to try to make a news TS004F quirk?

Describe the solution you’d like A would like to catch event on press, double press and long press, in order to make automations.

Device 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.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": "0x0104",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0004",
        "0x0006",
        "0x1000",
        "0xe001"
      ],
      "out_clusters": [
        "0x0003",
        "0x0004",
        "0x0006",
        "0x0008",
        "0x000a",
        "0x0019",
        "0x1000"
      ]
    }
  },
  "manufacturer": "_TZ3000_kjfzuycl",
  "model": "TS004F",
  "class": "zigpy.device.Device"
}
Diagnostic information
I don't have any diagnostic button.

image

Additional logs

with a 10s long press

_TZ3000_kjfzuycl TS004F Stop event was fired with parameters: {'options_mask': None, 'options_override': None}
17:05:42 - Maintenant
_TZ3000_kjfzuycl TS004F Step event was fired with parameters: {'step_mode': <StepMode.Up: 0>, 'step_size': 85, 'transition_time': 10, 'options_mask': None, 'options_override': None}
17:05:41 - Maintenant

with a single press

_TZ3000_kjfzuycl TS004F Move To Level event was fired with parameters: {'level': 255, 'transition_time': 1, 'options_mask': None, 'options_override': None}
17:06:22 - Il y a 2 minutes

with a double press

_TZ3000_kjfzuycl TS004F 92aa42fe on_of  
éteint
Add any other context or screenshots about the feature request here.
17:06:16 - Il y a 2 minutes

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:125 (61 by maintainers)

github_iconTop GitHub Comments

1reaction
drudgebgcommented, Sep 15, 2022

This work for button pressed alternate mode:

       (ALT_SHORT_PRESS, BUTTON): {
            ENDPOINT_ID: 1,
            CLUSTER_ID: 8,
            PARAMS: {'transition_time': 1, 'options_mask': None, 'options_override': None},
        },
1reaction
vbelloircommented, Aug 30, 2022

No, alternate mode is for single press when lights are on.

When lights are off, it generates an ON command, but when there are already ON, it generate move_to_color_temp, move_to_level or move_to_hue_and_saturation commands.

For the PR, I can try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Device Support Request] TS004F Tuya Smart Knob #1322
The scene mode is sending no standard command for press, double and long press and i have testing and and getting it working...
Read more >
[ST Edge] Zigbee Driver for MOES 4-Button Scene Switch ...
[Device Support Request] Tuya TS0001 relay · Set device in pairing/discovery mode. · From the SmartThings App, run the scan feature ( “+”...
Read more >
[RELEASE] Tuya Scene Switch TS004F driver
Note: due to non-standard Tuya implementation of the dimming functinality that is incompatible with HE, only the 'Scene Control' mode is ...
Read more >
Tuya ZigBee "Smart Knob" - Home Assistant Community
I recently brought the above device (This one specifically Tuya ZigBee ... knobs: [Device Support Request] Clarify Tuya smart knob (TS004F) ...
Read more >
Support new devices - Zigbee2MQTT
Before starting, first check if your device is not already supported in the Zigbee2MQTT dev branch! This can be done by searching on...
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