-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External converters can not be loaded anymore #26347
Comments
You have a syntax error. If you share your converter, we may see what is wrong with it. |
Hello Chris,
Here is the file with external converters.
Thanks for your help,
Han
…________________________________
From: chris-1243 ***@***.***>
Sent: Friday, February 14, 2025 07:57
To: Koenkk/zigbee2mqtt ***@***.***>
Cc: han-alink ***@***.***>; Author ***@***.***>
Subject: Re: [Koenkk/zigbee2mqtt] External converters can not be loaded anymore (Issue #26347)
You have a syntax error. If you share your converter, we may see what is wrong with it.
—
Reply to this email directly, view it on GitHub<#26347 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD26WXWHMPOK5WPZTN77GSD2PWHVDAVCNFSM6AAAAABXDCB2PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJYGQZDIMRVG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
[chris-1243]chris-1243 left a comment (Koenkk/zigbee2mqtt#26347)<#26347 (comment)>
You have a syntax error. If you share your converter, we may see what is wrong with it.
—
Reply to this email directly, view it on GitHub<#26347 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD26WXWHMPOK5WPZTN77GSD2PWHVDAVCNFSM6AAAAABXDCB2PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJYGQZDIMRVG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Did you take a look? |
It is difficult to help as you did not provide any code unfortunately |
Sorry, Thanks for your help, |
I tried to have a look but it seems your file has a lot of errors. You may try this file corrected. To be honest, it will be too time consuming to understand your converter for me and find the issues. |
I pinned the problem that withheld the zigbee2mqtt from starting (or at least generated an error), to the following device:
// const fourthEndpoint = device.getEndpoint(4); |
extend: [illuminance()], See https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/lib/modernExtend.ts#L652-L690 for more details on current implementation of the modern extend. |
What happened?
Updating from 2.0.0-2 to a newer version creates the following error. I have looked through the release data, but can not find something that has changed to result in the following error:
[2025-02-13 20:58:05] error: z2m: Failed to load external converter 'ha_devices.js'
[2025-02-13 20:58:08] error: z2m: Check the code for syntax error and make sure it is up to date with the current Zigbee2MQTT version.
[2025-02-13 20:58:08] error: z2m: External converters are not meant for long term usage, but for local testing after which a pull request should be created to add out-of-the-box support for the device
[2025-02-13 20:58:14] error: z2m: Failed to call 'ExternalConverters' 'start' (TypeError: Cannot read properties of undefined (reading 'options')
at prepareDefinition (/app/node_modules/.pnpm/[email protected]/node_modules/src/index.ts:367:23)
at addDefinition (/app/node_modules/.pnpm/[email protected]/node_modules/src/index.ts:426:18)
at ExternalConverters.loadJS (/app/lib/extension/externalConverters.ts:49:30)
at ExternalConverters.loadFiles (/app/lib/extension/externalJS.ts:156:24)
at ExternalConverters.start (/app/lib/extension/externalJS.ts:45:20)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Controller.callExtensions (/app/lib/controller.ts:368:17)
at Controller.start (/app/lib/controller.ts:186:9)
at start (/app/index.js:161:5))
What did you expect to happen?
Not this error ....
How to reproduce it (minimal and precise)
Tried updating 2 times. Same result. Back to 2.0.0-2 everything is working again.
Zigbee2MQTT version
2.1.0-1 and/or 2.1.1-1
Adapter firmware version
?
Adapter
Slaesh's
Setup
RPI-4 Add on
Debug log
No response
The text was updated successfully, but these errors were encountered: