[External Converter]: TS0001 from _TZ3000_olo5jhjk
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.7k
- Forks
- 2k
- Avg merge
- 18h 55m
- Merged PRs (30d)
- 35
Description
Link
Database entry
{"id":19,"type":"Router","ieeeAddr":"0xa4c138e4b43b859f","nwkAddr":45782,"manufId":4417,"manufName":"_TZ3000_olo5jhjk","powerSource":"Mains (single phase)","modelId":"TS0001","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAA"}},"genBasic":{"attributes":{"65503":"пїЅDпїЅ1\u0012","65506":56,"65508":0,"65534":0,"modelId":"TS0001","manufacturerName":"_TZ3000_olo5jhjk","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acPowerDivisor":2.44,"acPowerMultiplier":1,"acCurrentDivisor":2377,"acCurrentMultiplier":1,"acVoltageDivisor":1,"acVoltageMultiplier":1,"activePower":0,"rmsCurrent":0,"rmsVoltage":228}},"seMetering":{"attributes":{"divisor":244,"multiplier":1,"currentSummDelivered":11}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":0,"tuyaBacklightMode":1}},"manuSpecificTuya3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"switchType":2}}},"binds":[{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x7c31fafffed7e546","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x7c31fafffed7e546","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1291,"minRepIntval":10,"maxRepIntval":65000,"repChange":12.2},{"cluster":2820,"attrId":1288,"minRepIntval":10,"maxRepIntval":65000,"repChange":118.85000000000001},{"cluster":2820,"attrId":1285,"minRepIntval":10,"maxRepIntval":65000,"repChange":5},{"cluster":1794,"attrId":0,"minRepIntval":10,"maxRepIntval":65000,"repChange":24.400000000000002}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1785496733183}
Zigbee2MQTT version
2.12.1 (unknown)
External converter
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
import * as tuya from 'zigbee-herdsman-converters/lib/tuya';
const definition = {
zigbeeModel: ['TS0001'],
model: 'TS0001',
vendor: '_TZ3000_olo5jhjk',
description: '1 gang wall switch module with custom Power Monitoring and Countdown timer',
icon: 'device_icons/TS0001_TZ3000_olo5jhjk.png',
extend: [
tuya.modernExtend.tuyaBase(),
tuya.modernExtend.tuyaOnOff({
switchType: true,
onOffCountdown: true,
indicatorMode: true
}),
// Интегрируем энергомониторинг с кастомными делителями
m.electricityMeter({
current: {divisor: 2377},
voltage: {divisor: 1},
power: {divisor: 2.44},
energy: {divisor: 244},
}),
],
// Настройка интервала опроса датчиков (в секундах) для актуализации данных
measurementPollInterval: 30,
};
export default definition;
What does/doesn't work with the external definition?
Энергомониторинг выдавал не правильные значения, пришлось вводить свои делители.
После изменение параметра indicatorMode необходима перезагрузка устройства по питанию, иначе поведение светодиода не меняется.
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genIdentify","genGroups","genScenes","genOnOff","seMetering","haElectricalMeasurement","57344","manuSpecificTuya3","genBasic"],"output":["genOta","genTime"]}},"242":{"clusters":{"input":[],"output":["greenPower"]}}}
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 by reviewing the supplied external JavaScript definition and the device database entry for TS0001 from _TZ3000_olo5jhjk. Compare the custom electricity-meter divisors, indicator mode, countdown, and polling settings with existing device-converter conventions; done means the device exposes correct measurements and switch behavior without the external definition.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100