The container runs HB with extra flags: -P /var/lib/homebridge/node_modules --strict-plugin-resolution so the correct path to hap-nodejs is homebridge/node_modules/hap-nodejs
Prepending homebridge/node_modules/ in line 4 of bedAccessory.js allows the plug-in to run.
Plug-in fails to load on docker-homebridge (HB 1.5.0) with
The container runs HB with extra flags:
-P /var/lib/homebridge/node_modules --strict-plugin-resolution
so the correct path to hap-nodejs ishomebridge/node_modules/hap-nodejs
Prepending
homebridge/node_modules/
in line 4 of bedAccessory.js allows the plug-in to run.