wzwenzhi / Wenzhi-ZigBee2mqtt

How to add wenzhi ZigBee sensor to ZigBee2mqtt
13 stars 5 forks source link

Zigbee2MQTT external converter errors #2

Open walshtj opened 1 year ago

walshtj commented 1 year ago

When I addwenzhi_tuya_M100-230908.js as an external converter and restart Z2M I get the following error in the logs.

Zigbee2MQTT:info 2023-10-12 12:39:53: Stopped zigbee-herdsman Zigbee2MQTT:info 2023-10-12 12:39:53: Stopped Zigbee2MQTT Using '/app/data' as data directory /app/data/extension/externally-loaded.js:32 e.enum('presence_state', ea.STATE, ['none', 'presence']).withDescription('presence_state'), ^ TypeError: e.enum is not a function at /app/data/extension/externally-loaded.js:32:19 at Script.runInContext (node:vm:141:12) at Script.runInNewContext (node:vm:146:17) at Object.runInNewContext (node:vm:300:38) at loadModuleFromText (/app/lib/util/utils.ts:150:8) at loadModuleFromFile (/app/lib/util/utils.ts:157:12) at Object.getExternalConvertersDefinitions (/app/lib/util/utils.ts:167:25) at getExternalConvertersDefinitions.next () at new ExternalConverters (/app/lib/extension/externalConverters.ts:12:20) at new Controller (/app/lib/controller.ts:84:58)

I have to manually remove the entry in the configuration.yaml