diyruz / flower

DIY Zigbee flower sensor
https://modkam.ru/?p=1700
GNU General Public License v3.0
378 stars 80 forks source link

Z2M Converter - failed to start Z2M #57

Closed Stephan-Fis closed 7 months ago

Stephan-Fis commented 8 months ago

Hi there,

I tried to use the z2m-converter inside of homeassistant addon Z2M. I changed the external_converters to this: image

And copied the file with that name next to the configuration.yaml

I then get this error message.

[10:41:07] INFO: Preparing to start...
[10:41:07] INFO: Socat not enabled
[10:41:07] INFO: Starting Zigbee2MQTT...

/app/node_modules/zigbee-herdsman-converters/index.js:52
    assert.ok(Array.isArray(definition.exposes) || typeof definition.exposes === 'function', 'Exposes incorrect');
           ^
AssertionError [ERR_ASSERTION]: Exposes incorrect
    at validateDefinition (/app/node_modules/zigbee-herdsman-converters/index.js:52:12)
    at Object.addDefinition [as addDeviceDefinition] (/app/node_modules/zigbee-herdsman-converters/index.js:73:5)
    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)

Did I copied the file to the wrong location? Is there a newer version available?

Stephan-Fis commented 7 months ago

Converter already integrated in "normal" Z2M-Package