[External Converter]: TS0601 from _TZE204_w2vunxzm
Link
https://aliexpress.ru/item/1005007692176378.html
Database entry
{"id":95,"type":"Router","ieeeAddr":"0xa4c1389b1b21f4f9","nwkAddr":53970,"manufId":4417,"manufName":"_TZE204_w2vunxzm","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�\u0003�0i�\u0003�0i�\u0003�0i�\u0003�0i�\u0003�0i�\u0003�0i�\u0003�0i�\u0003�0i","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_w2vunxzm","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genGroups":{"attributes":{"nameSupport":0}},"genScenes":{"attributes":{"count":0}}},"binds":[{"cluster":10,"type":"endpoint","deviceIeeeAddress":"0x00124b00339db3df","endpointID":1}],"configuredReportings":[],"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":332242049},"lastSeen":1768103493474}
Zigbee2MQTT version
2.7.2 (HA Addon)
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 reporting = require('zigbee-herdsman-converters/lib/reporting');
const modernExtend = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE204_w2vunxzm',
},
],
model: 'TS0601_new',
vendor: 'Tuya',
description: 'Tuya pressure sensor',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
configure: tuya.configureMagicPacket,
exposes: [
e.pressure(),
e.temperature(),
e.light(),
],
meta: {
tuyaDatapoints: [
[101, 'pressure', tuya.valueConverter.divideBy10],
[8, 'temperature', tuya.valueConverter.divideBy100],
[102, 'state', tuya.valueConverter.onOff],
],
},
extend: [],
};
module.exports = definition;
What does/doesn't work with the external definition?
I found converter in this page https://talkin.icu/blog/fixing-the-ts0601-pressure-sensor Tested - all work !
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genGroups","genScenes","manuSpecificTuya","genBasic"],"output":["genOta","genTime"]}},"242":{"clusters":{"input":[],"output":["greenPower"]}}}
👋 Hi there! This issue appears to be a duplicate of #26514, #27823, #25906
This issue will be closed. Please follow the existing issue for updates.
e.light(), should this not be e.switch()? (also what does this switch do?)
it should turn on the red ring light (the same one that flashes when pairing), but it doesn't work on my sensor Unfortunately, I don't understand the code well enough to fix it correctly.
Added it!
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 (guide)? Make sure that the file name is _TZE204_w2vunxzm.png
This image is good ?
Yes, if you could submit it with the instructions from https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_5-add-device-picture-to-zigbee2mqtt-io-documentation