Can anybody help me, I’m trying to find node_modules/zigbee-herdsman-converters/devices.js .
I’m using HA in a VM in Proxmox on a NUC
System Health
version: core-2021.3.3
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
virtualenv: false
python_version: 3.8.7
os_name: Linux
os_version: 5.4.99
arch: x86_64
timezone: Europe
node_modules is next to the configuration.yaml of Zigbee2MQTT, but you are using the add-on-version, so I don’t know how it maps a host’s directory to the /app directory of the Z2M container.
The directory looks like it’s containing the configuration for Zigbee2MQTT. The node_modules directory is not strictly a “configuration item”, so it’s in the add-on container and not in the configuration directory.
I don’t think that overlaying the devices.js is not easily possible with the add-on.
Stay out of /var/lib, this is not the correct place! You need to overlay the container’s directory /app/data/node_modules by a local directory and this requires you to run some preconditions, as described here.
As I said, I don’t think that you can come anywhere close to this when using Zigbee2MQTT add-on.
Using external_converters option you will have more flexibility to add support but also allow you to maintain a DIY device support. Follow the documentation to get started.
If you are searching to edit specific files, please find the Line reference in the example converter where to make your changes:
You can define external converters to e.g. add support for a DiY device. The extension can be a file with .js extension in the data directory or a NPM package. Ensure that default export from your external converter exports an array or device object (refer to devices.js of zigbee-herdsman-converters). Some examples can be found here. For this example put the files in the data folder and add the following to configuration.yaml :