-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Link
Database entry
{"id":21,"type":"EndDevice","ieeeAddr":"0xa4c138bff9c17f9f","nwkAddr":56197,"manufId":4417,"manufName":"_TZE200_suxywabt","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":"\u0000\u0000\u0000\u0000\u0011","65506":55,"65508":1,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE200_suxywabt","powerSource":3,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1767634608079}
Zigbee2MQTT version
2.7.2 (unknown)
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 tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
fingerprint: [
{modelID: 'TS0601', manufacturerName: '_TZE200_suxywabt'},
],
model: 'ME168_1',
vendor: 'AVATTO',
description: 'Thermostatic radiator valve (ME168 Thaleos)',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
exposes: [
e.child_lock(),
e.battery_low(),
e.numeric('error', ea.STATE),
e.climate()
.withSetpoint('current_heating_setpoint', 5, 35, 0.5, ea.STATE_SET)
.withLocalTemperature(ea.STATE)
.withSystemMode(['auto', 'heat', 'off'], ea.STATE_SET)
.withRunningState(['idle', 'heat'], ea.STATE)
.withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET),
e.binary('scale_protection', ea.STATE_SET, 'ON', 'OFF'),
e.binary('frost_protection', ea.STATE_SET, 'ON', 'OFF'),
e.window_detection(),
e.binary('window', ea.STATE, 'OPEN', 'CLOSED'),
],
meta: {
tuyaDatapoints: [
[2, 'system_mode', tuya.valueConverterBasic.lookup({auto: tuya.enum(0), heat: tuya.enum(1), off: tuya.enum(2)})],
[3, 'running_state', tuya.valueConverterBasic.lookup({heat: tuya.enum(0), idle: tuya.enum(1)})],
[4, 'current_heating_setpoint', tuya.valueConverter.divideBy10],
[5, 'local_temperature', tuya.valueConverter.divideBy10],
[7, 'child_lock', tuya.valueConverter.lockUnlock],
[14, 'window_detection', tuya.valueConverter.onOff],
[15, 'window', tuya.valueConverterBasic.lookup({OPEN: 1, CLOSE: 0})],
[35, 'battery_low', tuya.valueConverterBasic.lookup({false: 0, true: 1})], //not sure here
[36, 'frost_protection', tuya.valueConverter.onOff],
[39, 'scale_protection', tuya.valueConverter.onOff],
[47, 'local_temperature_calibration', tuya.valueConverter.localTempCalibration2],
],
},
};
module.exports = definition;What does/doesn't work with the external definition?
Regarding battery state I am not sure, yet as m'y batteries are new ones. Intégration into a Better Thermostate device works. I didn't find anything that doesn't work so far.
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genGroups","genScenes","manuSpecificTuya","genBasic"],"output":["genOta","genTime"]}}}