### Link
https://www.aliexpress.com/item/1005006395402636.html
### Database en…try
{"id":66,"type":"EndDevice","ieeeAddr":"0x0ceff6fffe4bdda2","nwkAddr":39698,"manufId":4098,"manufName":"_TZE200_lvkk0hdg","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�ME-\u0019%NE-\u0019aNE-j�NE-j\u000fPE-j�KE-j�KE-\u0019>LE-i","65506":31,"65508":0,"65534":0,"appVersion":65,"modelId":"TS0601","manufacturerName":"_TZE200_lvkk0hdg","powerSource":3,"zclVersion":3,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":65,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-708457359},"lastSeen":1706198663760,"defaultSendRequestWhen":"immediate"}
### Comments
I have followed all the documentation on how to add a new unsupported device, but I got stuck on the configuration file. Only 3 out of the 7 Tuya Data Points are working (the read-only points), but the other 4 data points for configuration of the device are seen in Tuya IOT, but refused to be configured in Zigbee2MQTT
The attached external definition file is an attempt to setup the device, but that all I got and do not know how to continue.
The working Data Points and also the failing Data Points are all described in the definition file for easy reference.
NOTE: There is also an identical device, but then it's a Wifi based device. In the Smart Life app both devices are fully working (all 7 Data Points), but in HA (either via Zigbee2MQTT or LocalTuya) only 3 out of 7 Data Points can be used.
See for the TLC2206 Wifi device https://www.aliexpress.com/item/1005005758585356.html
Both devices have equal Data Points
`{"1":"Liquid level status","2":"Liquid level depth","7":"Set Max","8":"Set Mini","19":"Installation height","21":"Sensor to full line","22":"Liquid level ratio"}`
### External defintion
```shell
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 tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE200_lvkk0hdg',
},
],
model: 'TS0601_tlc2206zb',
vendor: 'TuYa',
whiteLabel: [
{
vendor: 'EPTTECH',
model: 'TLC2206-ZB',
},
],
description: 'EPTTECH Tank Level Monitor Zigbee',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
exposes: [
e.numeric('liquid_level_percent', ea.STATE)
.withUnit('%')
.withDescription('Liquid level percentage'),
e.numeric('liquid_depth', ea.STATE)
.withUnit('m')
.withDescription('Liquid Depth'),
e.enum('liquid_state', ea.STATE, ['low', 'normal', 'high'])
.withDescription('Liquid State'),
// =============== Found but non functional ===============
/*
e.numeric('max_set', ea.STATE_SET)
.withUnit('%')
.withDescription('Liquid max percentage')
.withValueMin(0)
.withValueMax(100)
.withValueStep(1),
e.numeric('mini_set', ea.STATE_SET)
.withUnit('%')
.withDescription('Liquid minimal percentage')
.withValueMin(0)
.withValueMax(100)
.withValueStep(1),
e.numeric('installation_height', ea.STATE_SET)
.withUnit('mm')
.withDescription('Height from sensor to tank bottom')
.withValueMin(100)
.withValueMax(2500)
.withValueStep(1),
e.numeric('liquid_depth_max', ea.STATE_SET)
.withUnit('mm')
.withDescription('Height from sensor to liquid level')
.withValueMin(100)
.withValueMax(1000)
.withValueStep(1),
*/
],
meta: {
tuyaDatapoints: [
[1, 'liquid_state', tuya.valueConverterBasic.lookup({'low': 1, 'normal': 0, 'high': 2})],
[2, 'liquid_depth', tuya.valueConverter.divideBy100],
[22, 'liquid_level_percent', tuya.valueConverter.raw],
// =============== Found but non functional ===============
/*
[7, 'max_set', tuya.valueConverter.raw],
[8, 'mini_set', tuya.valueConverter.raw],
[19, 'installation_height', tuya.valueConverter.raw],
[21, 'liquid_depth_max', tuya.valueConverter.raw],
*/
],
},
};
module.exports = definition;
```