[Device Support Request] TS004F Tuya remote in Scene mode
See original GitHub issueIs 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:
- Created 2 years ago
- Comments:15 (9 by maintainers)
Top GitHub Comments
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 !!
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.