zigbee2mqtt
zigbee2mqtt copied to clipboard
External Convertor of Water Meter exposes missing after update to1.36-1.1
What happened?
Exposes become empty after upgrade to 1.36-1.1
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_vuwtqx0t'}],
model: 'TS0601',
vendor: 'TuYa',
description: 'Water Meter and Valve',
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
exposes: [
tuya.exposes.switch(), e.temperature(), e.battery().withUnit('V').withValueMin(0.1).withValueMax(3.8),
exposes.text('meter_id', ea.STATE).withDescription('Meter ID (ID of device)'),
exposes.numeric('water_meter', ea.STATE).withUnit('m3').withDescription('Total Water Comsumption'),
exposes.numeric('daily_comsumption', ea.STATE).withUnit('m3').withDescription('Daily Water Comsumption'),
exposes.numeric('monthly_comsumption', ea.STATE).withUnit('m3').withDescription('Monthly Water Comsumption'),
exposes.numeric('instantaneous_flow_rate', ea.STATE).withUnit('m3').withDescription('Instantaneous Flow Rate'),
exposes.binary('clean', ea.STATE_SET, 'ON', 'OFF'),
],
meta: {
tuyaDatapoints: [
[13, 'state', tuya.valueConverter.onOff],
[26, 'battery', tuya.valueConverter.divideBy100],
[16, 'meter_id', tuya.valueConverter.raw],
[22, 'temperature', tuya.valueConverter.divideBy100],
[1, 'water_meter', tuya.valueConverter.divideBy1000],
[3, 'daily_comsumption', tuya.valueConverter.divideBy100],
[2, 'monthly_comsumption', tuya.valueConverter.divideBy100],
[21, 'instantaneous_flow_rate', tuya.valueConverter.divideBy100],
[14, 'clean', tuya.valueConverter.onOff],
],
},
};
module.exports = definition;
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.36.1-1
Adapter firmware version
20220219
Adapter
zStack3x0
Setup
Add on Home Assistant on x86 intel pc
Debug log
No response