[External Converter]: TS0601 from _TZE284_bjoccxbi
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.7k
- Forks
- 2k
- Avg merge
- 18h 55m
- Merged PRs (30d)
- 35
Description
Link
https://www.alibaba.com/product-detail/RGB-Switch-Controller-Tuya-Smart-Zigbee_1601160900244.html
Database entry
{"id":2,"type":"Router","ieeeAddr":"0x180df9fffe536714","nwkAddr":36816,"manufId":4098,"manufName":"_TZE284_bjoccxbi","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184,0,60672],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"���1f���1\u0012���1\u0012","65506":31,"65508":0,"modelId":"TS0601","manufacturerName":"_TZE284_bjoccxbi","stackVersion":0,"dateCode":"","appVersion":69}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":69,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{},"lastSeen":1784358488831}
Zigbee2MQTT version
2.12.1 (unknown)
External converter
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const definition = {
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE284_bjoccxbi'}],
model: 'TS0601_RGB_Controller',
vendor: 'Tuya',
description: 'RGB+CCT Controller',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
exposes: [
e.light_brightness_colorxy_colortemp().withColorTempRange([153, 500]),
],
meta: {
tuyaDatapoints: [
[1, 'state', tuya.valueConverter.onOff],
[2, 'brightness', tuya.valueConverter.scale0_255to0_1000],
[3, 'color_temp', tuya.valueConverter.scale0_255to153_500],
[5, 'color_xy', tuya.valueConverter.dataPoints115],
],
},
};
module.exports = definition;
What does/doesn't work with the external definition?
What works:
The device is correctly identified by Zigbee2MQTT and appears in the network map.
What doesn't work:
Color and brightness control do not work.
I get a "No converter available" error for 'lightingColorCtrl' and 'commandMoveToHueAndSaturation' in the logs.
The device does not respond to standard commands because it requires specific Tuya Datapoints, which are currently not mapped correctly in the external converter.
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genBasic","genGroups","genScenes","manuSpecificTuya","genBasic","60672"],"output":["genOta","genTime"]}}}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the external converter's tuya.fz.datapoints and tuya.tz.datapoints entry points, then compare the device's reported datapoints with the lighting control errors. Trace how the mappings for brightness, color temperature, and color are handled. Done means those controls work for this TS0601 fingerprint without the reported converter errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100