I tried to follow the "Support new devices" page but looks like im too dumb for this. im stuck.
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 extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: 'tuya',
description: 'Zigbee temperature & humidity sensor',
fromZigbee: [fz.temperature, fz.humidity, fz.battery], // Define how to convert Zigbee data to readable values
toZigbee: [], // Should be empty, unless device can be controlled (e.g. lights, switches).
exposes: [e.battery(), e.temperature(), e.humidity()], // Defines what this device exposes, used for e.g. Home Assistant discovery and in the frontend
};
module.exports = definition;
Link
https://de.aliexpress.com/item/1005005897128411.html?src=google&aff_fcid=9a041c2ae3f34ad88b6d92813b1ad335-1697704284962-09891-UneMJZVf&aff_fsk=UneMJZVf&aff_platform=aaf&sk=UneMJZVf&aff_trace_key=9a041c2ae3f34ad88b6d92813b1ad335-1697704284962-09891-UneMJZVf&terminal_id=e1eea32e1fe645398d47060cc4d4c3ca&afSmartRedirect=y
Database entry
{"id":17,"type":"EndDevice","ieeeAddr":"0xa4c1387ce8252e02","nwkAddr":10923,"manufId":4417,"manufName":"_TZE200_vvmbj46n","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"U��,\u0013]��,e^��,\u0012","65506":56,"65508":0,"appVersion":72,"stackVersion":0,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":72,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1697704194850,"defaultSendRequestWhen":"immediate"}
Comments
I tried to follow the "Support new devices" page but looks like im too dumb for this. im stuck.
External converter
Supported color modes
No response
Color temperature range
No response