Hello, with the same problem I try to install the converter. At Z2M restart I have this error:
Zigbee2MQTT
[19:11:13] INFO: Preparing to start...
[19:11:14] INFO: Socat not enabled
[19:11:17] INFO: Starting Zigbee2MQTT...
/app/node_modules/zigbee-herdsman-converters/index.js:172
if (converter.options) {
^
TypeError: Cannot read properties of undefined (reading 'options')
at Object.addDefinition [as addDeviceDefinition] (/app/node_modules/zigbee-herdsman-converters/index.js:172:23)
at new ExternalConverters (/app/lib/extension/externalConverters.ts:15:17)
at new Controller (/app/lib/controller.ts:84:58)
at start (/app/index.js:106:18)
And Z2M doesnāt start anymore.
Because the UI is no more available I cannot remove the aqara-t1.js from external converters and It seems not configured in config files.
So iām totally stuck.
The converter I get is the one listed above:
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 ota = require("zigbee-herdsman-converters/lib/ota");
const extend = require("zigbee-herdsman-converters/lib/extend");
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ["lumi.switch.n0agl1"],
model: "SSM-U01",
vendor: "Xiaomi",
description: "Aqara single switch module T1 (with neutral)",
fromZigbee: [fz.on_off, fz.xiaomi_power, fz.aqara_opple],
toZigbee: [
tz.on_off,
tz.xiaomi_power,
tz.xiaomi_switch_type,
tz.xiaomi_switch_power_outage_memory,
tz.xiaomi_led_disabled_night,
fz.metering,
fz.electrical_measurement,
],
exposes: [
e.switch(),
e.power().withAccess(ea.STATE_GET),
e.energy(),
e.temperature().withAccess(ea.STATE),
e.voltage().withAccess(ea.STATE),
e.power_outage_memory(),
e.led_disabled_night(),
e.switch_type(),
],
configure: async (device, coordinatorEndpoint, logger) => {
await device
.getEndpoint(1)
.write(
"aqaraOpple",
{ mode: 1 },
{ manufacturerCode: 0x115f, disableResponse: true }
);
},
ota: ota.zigbeeOTA,
};
module.exports = definition;
Can you please post the right converter ?