zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: Tuya _TZ3000_bvij6kod

Open ericotps opened this issue 1 year ago • 4 comments

Link

https://www.novadigitalsmart.com.br/produtos/interruptor-tomada-inteligente-touch-zigbee-it-zb-02

Database entry

{"id":25,"type":"Router","ieeeAddr":"0xa4c138c55b4feb46","nwkAddr":31535,"manufId":4417,"manufName":"_TZ3000_bvij6kod","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":"\u001bq;0\u0012","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_bvij6kod","zclVersion":3,"appVersion":85,"modelId":"TS0003","powerSource":1}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":2,"tuyaBacklightSwitch":0}},"manuSpecificTuya_3":{"attributes":{"powerOnBehavior":2,"switchType":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x1cc089fffecdfae0","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"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":2}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x1cc089fffecdfae0","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"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":2}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x1cc089fffecdfae0","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":85,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1755915696424}

Zigbee2MQTT version

2.6.0 commit: unknown

Comments

[Device support request] Tuya TS0003 (_TZ3000_bvij6kod) - add backlight control Device information

Model: TS0003

Vendor: Tuya

Zigbee model: TS0003

Manufacturer: _TZ3000_bvij6kod

Description: 3-gang wall switch with LED backlight

Current behavior

Device pairs successfully with Zigbee2MQTT.

Three endpoints (left, center, right) are exposed and work correctly.

However, the backlight LED is not exposed or controllable.

Expected behavior

Add support for controlling the backlight LED (on/off).

This feature exists in Tuya Cloud (switch_backlight), but is not yet supported in Zigbee2MQTT.

What I have tried

Tested with Zigbee2MQTT (latest version as of Aug/2025).

Created custom definition with multiEndpoint and onOff extend → switches work, but no backlight.

Attempted to send tuya_datapoints manually over MQTT:

debug: z2m: Received Zigbee message from 'Interruptor_Madu_parede', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 3 info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Interruptor_Madu_parede', payload '{"linkquality":100,"state_center":"OFF","state_left":"OFF","state_right":"OFF"}'

External definition

import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
    zigbeeModel: ['TS0003'],
    model: 'TS0003',
    vendor: '_TZ3000_bvij6kod',
    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?

The backlight doesn't work, and, if I pair it with Tuya official App, I am able to turn it on and off

ericotps avatar Aug 23 '25 02:08 ericotps

Adding a new log who may can relevant:

{ "id": "ebbf99c1ad7b8d175cogy6", "name": "Interruptor com 1 tomada 2 botões Zigbee", "category": "kg", "product_id": "bvij6kod", "product_name": "Interruptor com 1 tomada 2 botões Zigbee", "online": true, "function": { "switch_1": {"type": "Boolean"}, "switch_2": {"type": "Boolean"}, "switch_3": {"type": "Boolean"}, "countdown_1": {"type": "Integer","value":{"unit":"s","min":0,"max":43200}}, "countdown_2": {"type": "Integer","value":{"unit":"s","min":0,"max":43200}}, "countdown_3": {"type": "Integer","value":{"unit":"s","min":0,"max":43200}}, "switch_backlight": {"type": "Boolean"}, "switch_inching": {"type": "String"}, "relay_status_1": {"type": "Enum","value":{"range":["power_off","power_on","last"]}}, "relay_status_2": {"type": "Enum","value":{"range":["power_off","power_on","last"]}}, "relay_status_3": {"type": "Enum","value":{"range":["power_off","power_on","last"]}} } }

ericotps avatar Aug 23 '25 02:08 ericotps

Hi @ericotps ,

I believe we’re facing the same issue with the same device, even though Zigbee2MQTT identifies a different "Manufacturer".

Here's my related post: https://github.com/Koenkk/zigbee2mqtt/issues/28204

Yesterday I tried several times, but without success.

Sometimes I get an error when requesting the backlight property. Other times, there’s no error, but I also don’t get any response related to the backlight.

eduseiden avatar Aug 26 '25 12:08 eduseiden

The conversor below works pretty well:

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_bvij6kod" }, ], 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;

Someone know how to make it official? :

ericotps avatar Sep 02 '25 20:09 ericotps

Added!

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

Could you also submit a picture for the docs? This can be done by:

  1. Create a fork by clicking here
  2. Go to the public/images/devices directory, Add file -> Upload files
  3. Upload the files and press Commit changes
  4. Press Contribute -> Open pull request -> update title/description -> Create pull request

Make sure that:

  • The filename is NFZB-03 .png
  • The size is 512x512
  • The background is transparent (use e.g. Adobe remove background)

Koenkk avatar Sep 03 '25 18:09 Koenkk