Find devices.js

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
host_os: Home Assistant OS 5.12
update_channel: stable
supervisor_version: supervisor-2021.03.4
docker_version: 19.03.13
disk_total: 58.4 GB
disk_used: 32.6 GB
healthy: true
supported: true
board: ova
supervisor_api: pending
version_api: pending
installed_addons: Samba share (9.3.1), Zigbee2mqtt (1.18.1-1), 

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.

Here is other files , but not devices.js

homeassistant/share/zigbee2mqtt

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.

Presumably you are running zigbee2mqtt in Docker?

On my Debian/Docker install it is here.

/var/lib/docker/overlay2/VERY_LONG_BUNCH_OF_NUM_LETTERS/diff/app/node_modules/zigbee-herdsman-converters/devices.js

Simon

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.

can’t found

Also Home Assistant Add-on: hassio-zigbee2mqtt instructions To support a new custom device not worked.

Home Assistant Add-on: hassio-zigbee2mqtt

To support a new custom device using hassio-zigbee2mqtt add-on in preparation for a Pull Request, please follow these instructions.

Adding Support for New Devices

If you are interested in adding support for new devices to zigbee2mqtt see methods below

Using external_converters

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:

External converters configuration

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 :

external_converters:
  - freepad_ext.js
  - one-more-converter.js

find / -type f -name “devices.js”

Simon

1 Like

Thanks for find command, but couldn’t find “devices.js”Screen Shot 2021-03-11 at 20.31.20

Also looking for node_modules folder for zigbee2mqtt with .js file