Add backlight control support for Tuya TS0003 switch (_TZ3000_fawk5xjv) from Nova Digital
Link
https://www.novadigitalsmart.com.br/produtos/interruptor-tecla-fisica-4x2-fzb-1-2-3---w-b
Database entry
{"id":31,"type":"Router","ieeeAddr":"0xa4c138395a510bfb","nwkAddr":50631,"manufId":4417,"manufName":"_TZ3000_fawk5xjv","powerSource":"Mains (single phase)","modelId":"TS0003","epList":[1,2,3,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAAAgAABAAA"}},"genBasic":{"attributes":{"65503":":�'0\u0012","65506":56,"65508":0,"65534":0,"modelId":"TS0003","manufacturerName":"_TZ3000_fawk5xjv","powerSource":1,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":2,"moesStartUpOnOff":0,"tuyaBacklightSwitch":1}},"manuSpecificTuya_3":{"attributes":{"powerOnBehavior":0,"switchType":0}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya_3":{"attributes":{"powerOnBehavior":0}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya_3":{"attributes":{"powerOnBehavior":0}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":-1949324601},"lastSeen":1754605686554
Zigbee2MQTT version
2.6.0
Comments
Hi all,
I'm using a Zigbee switch from Nova Digital, model TS0003, with the following fingerprint: tuya.fingerprint('TS0003', ['_TZ3000_fawk5xjv']).
The device is recognized in Zigbee2MQTT and exposes the 3 physical buttons correctly (I can control them via MQTT). However, the backlight (LED indicator) control is not exposed. I'd like to be able to turn the backlight on/off or adjust its mode, as it's a feature available in similar Tuya devices.
Device details:
Brand: Nova Digital Model: TS0003 (3-gang switch) Fingerprint: _TZ3000_fawk5xjv Other info: It's a physical 3-button Zigbee switch, likely a generic Tuya-based device. Additional information: In the original Tuya app (e.g., Smart Life or Tuya Smart), the backlight is controllable via Data Points (DPs). Here's an example of the relevant DPs from the device:
{ "code": "relay_status", "custom_name": "", "dp_id": 14, "time": 1754604847862, "type": "enum", "value": "off" }, { "code": "light_mode", "custom_name": "", "dp_id": 15, "time": 1754605058946, "type": "enum", "value": "pos" }, { "code": "switch_backlight", "custom_name": "", "dp_id": 16, "name": "Luz de fundo", "time": 1754605085076, "type": "bool", "value": true }
Specifically, DP 16 ("switch_backlight") is a boolean that controls the backlight (true/false for on/off). DP 15 ("light_mode") might also be related to LED modes.
Thanks in advance !
External definition
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['TS0003'],
model: 'TS0003',
vendor: '_TZ3000_fawk5xjv',
description: 'Automatically generated definition',
extend: [m.deviceEndpoints({"endpoints":{"1":1,"2":2,"3":3}}), m.onOff({"powerOnBehavior":false,"endpointNames":["1","2","3"]})],
meta: {"multiEndpoint":true},
};
What does/doesn't work with the external definition?
Endpoints 1, 2 and 3 work perfectly. The problem is the lack of backlight control.
I have the exact same problem with a different device, related at: https://github.com/Koenkk/zigbee2mqtt/issues/28366
Here's a working converter for this device:
const tuya = require("zigbee-herdsman-converters/lib/tuya");
const m = require("zigbee-herdsman-converters/lib/modernExtend");
const definition = {
fingerprint: [
{ modelID: "TS0003", manufacturerName: "_TZ3000_fawk5xjv" }, // I've got a couple of these and some of them reported under a different manufacturerName.
{ modelID: "TS0003", manufacturerName: "_TZ3000_ok0ggpk7" },
],
model: "NFZB-03",
vendor: "NovaDigital",
description: "3 gang switch with power-on behavior and indicator mode",
extend: [
tuya.modernExtend.tuyaMagicPacket(),
m.deviceEndpoints({ endpoints: { l1: 1, l2: 2, l3: 3 } }),
tuya.modernExtend.tuyaOnOff({
endpoints: ["l1", "l2", "l3"],
powerOutageMemory: true,
switchType: true,
indicatorMode: true,
backlightModeOffOn: true,
inchingSwitch: true,
}),
],
meta: { multiEndpoint: true },
};
module.exports = definition;
I did here: https://github.com/Koenkk/zigbee-herdsman-converters/pull/9861
Neat! Thanks for letting me know @bernardesarthur
Just checked on the latest-dev tag and it works great 🥳
Neat! Thanks for letting me know @bernardesarthur
Just checked on the latest-dev tag and it works great 🥳
The same here !
Thanks @bernardesarthur - and closing the issue.