-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 not loading with 1.36.1 and Home Assistant 2024.4.0 #22083
Comments
Here is the error in the log: Zigbee2MQTT:error 2024-04-04 14:49:38: Failed to load external converter file 'ZSSQYGLUENGas.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
|
Have added the line error 2024-04-04 15:05:28: Failed to load external converter file 'DINRelay.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
|
I think that the documentation may be incorrect. It appears that the line
should be removed from the external definitions and the line
added in its place. If so the example from the documentation at https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_2-1-extending-the-external-definition is incorrect. |
I don't have any external converters myself but I did note others have had such issues. |
Thanks for the reference - I will try this out. However if this solves the issue the documentation is definitely incorrect. |
Not sure is the same problem but, running latest dev build 1.36.1-dev commit: 3e91349. |
Yeah, it wasn't updated in time. Legacy extend was removed in zhc 19.0 |
I'll investigate that, please create an issue. It might be connected to the recent IKEA refactoring in the dev branch |
Same problem, seems to be caused by upgrading Z2M as I didn't upgrade HA (2024.3.3) |
same problem here. |
Yep, same here since the last two updates (1.36.1-0 and 1.36.1-1) with 2 different external files. Nothing to do with IKEA. Edit: THIS solved the problem, thank you very much @MrEcosse
|
Isn't that what the latest release Notes are about ? https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.36.1 |
I think this has morphed into the necessity to update the documentation which does not match the release notes |
Legend thanks for this was tearing my hair out trying to get an External converter working last night stumbled on this post and this resolved my .js issue! |
Config path with Proxmox Debian LXC: Alpine:
external_converters:
`const {} = require('zigbee-herdsman-converters/lib/modernExtend'); const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const definition = {
}; module.exports = definition;` |
What happened?
None of my external converters to support new devices are working with this combination of Z2M and HA. These were working with the previous versions. Sorry, I don't know whether this happened as a result of the Z2M upgrade or the new April version of HA released today.
What did you expect to happen?
To use the external converters specified in the config file as it did before.
How to reproduce it (minimal and precise)
Add an unsupported device to the network
Create an external converter with correct fingerprint
Add the path to the .js file in the configuration.yaml
Restart HA
Note that the device is listed as unsupported still
Zigbee2MQTT version
1.36.1
Adapter firmware version
20230707
Adapter
zStack3x0
Setup
Add-on in Home Assistant on Intel NUC
Debug log
No response
The text was updated successfully, but these errors were encountered: