[External Converter]: TS0601 from _TZE284_6uyu20xu
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.chayo.tech/product/temp-humidity-sensor-tovth/
Database entry
{"id":49,"type":"Router","ieeeAddr":"0x60b763fffe1e5b11","nwkAddr":47812,"manufId":4098,"manufName":"_TZE284_6uyu20xu","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":"\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i\u0000\u0000\u0000\u0000i","65506":31,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE284_6uyu20xu","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1783243468743}
Zigbee2MQTT version
2.12.1 (unknown)
External converter
import * as tuya from 'zigbee-herdsman-converters/lib/tuya';
import exposes from 'zigbee-herdsman-converters/lib/exposes';
const e = exposes.presets;
export default {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE284_6uyu20xu',
},
],
model: 'TOVTH-216ZTTDA',
vendor: 'Tongou',
description: 'Tongou DIN Rail Thermostat & Humidity (2 Channels)',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEvent,
configure: tuya.configureMagicPacket,
exposes: [
e.switch().withEndpoint('l1'),
e.switch().withEndpoint('l2'),
e.temperature(),
e.humidity(),
],
meta: {
multiEndpoint: true,
tuyaDatapoints: [
[1, 'state_l1', tuya.valueConverter.onOff], // Relais S1
[2, 'state_l2', tuya.valueConverter.onOff], // Relais S2
[105, 'temperature', tuya.valueConverter.divideBy10], // Température
[109, 'humidity', {from: (v) => v}], // Humidité
],
},
endpoint: (device) => {
return {l1: 1, l2: 1};
},
};
What does/doesn't work with the external definition?
I created this converter to support the Tongou TOVTH-216ZTTDA module. The reported data includes the status of S1 and S, as well as temperature and humidity. I haven't been able to find the other dpIDs. Thanks.
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genBasic","genGroups","genScenes","manuSpecificTuya","genBasic","60672"],"output":["genOta","genTime"]},"name":"l1"}}
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
Use the supplied external converter as the entry point, reviewing its fingerprint, Tuya datapoint mappings, endpoint mapping, and device interview data. Exercise the Tongou TOVTH-216ZTTDA and compare reported relay, temperature, humidity, and any additional datapoints; done means the supported readings and controls work reliably and any discoverable datapoints are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100