Hi, I’ve been trying to add an unsupported device, but Im struggling to make it work.
The extension file has been loaded successfully and I see the Expose elements in Z2M dashboard under the Exposes tab.
I added just 2 elements - child_lock and local_temperature for simplicity and testing. I took the exposes and meta from an almost exact same product (just 230V instead of battery powered) and confirmed both DPs from logs.
But I can’t seem to get the reading of local temperature and whenever I try to lock/unlock the thermostat I get the error of
z2m: No converter available for ‘child_lock’ on ‘E25-1’: (“LOCK”)
So far my external_extension file looks like this:
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_cg8hdnjv',
},
],
model: 'E25-BATW',
vendor: 'ENGO',
description: 'ENGO E25-BATW battery-powered thermostat',
extend: [
tuya.modernExtend.tuyaBase({
dp: true,
}),
],
exposes: [
// Here you should put all functionality that your device exposes
e
.climate()
.withLocalTemperature(ea.STATE),
e.child_lock(),
],
meta: {
// All datapoints go in here
tuyaDatapoints: [
[16, "current_heating_setpoint", tuya.valueConverter.divideBy10],
[24, "local_temperature", tuya.valueConverter.divideBy10],
[40, "child_lock", tuya.valueConverter.lockUnlock],
],
},
extend: [
// A preferred new way of extending functionality.
],
};
module.exports = definition;
any ideas how to troubleshoot it?
