[Solved] ZWaveJSController Add-on Install files
-
@toggledbits The documentation to install the ZWaveJSController Add-on step 5 says to run the install.sh or install.bat file. I do not see these files in the downloaded archives. Am I overlooking something or doing something wrong?
-
Apologies. That's a build error... this is the first time it's been packaged stand-alone. Please download the release archive again; the package has been updated but keeps the same version number.
-
Apologies. That's a build error... this is the first time it's been packaged stand-alone. Please download the release archive again; the package has been updated but keeps the same version number.
@toggledbits After a fresh download and also since I am using docker, I ran the install.sh from inside the container,(the docs for this Add-on module does not note this) the logs show that it is missing module js-yaml.
[latest-22240]2022-09-05T14:24:58.996Z <GlobalReaction:null> Module GlobalReaction v21333 [latest-22240]2022-09-05T14:24:58.998Z <default:null> Module Engine v22209 [latest-22240]2022-09-05T14:24:58.998Z <default:null> Module httpapi v22141 [latest-22240]2022-09-05T14:24:59.012Z <default:null> Module wsapi v22104 [latest-22240]2022-09-05T14:24:59.015Z <app:NOTICE> Starting Structure... [latest-22240]2022-09-05T14:24:59.020Z <Structure:NOTICE> Structure#1 plugin ID influx disabled; skipping [latest-22240]2022-09-05T14:24:59.023Z <Structure:INFO> Structure#1 loading controller interface hass (HassController) [latest-22240]2022-09-05T14:24:59.071Z <HassController:null> Module HassController v22238 [latest-22240]2022-09-05T14:24:59.162Z <HassController:INFO> HassController#hass device mapping data loaded; checking... [latest-22240]2022-09-05T14:24:59.182Z <Structure:INFO> Structure#1 loading controller interface hubitat (HubitatController) [latest-22240]2022-09-05T14:24:59.191Z <TaskQueue:null> Module TaskQueue 21351 [latest-22240]2022-09-05T14:24:59.191Z <HubitatController:null> Module HubitatController v22140 [latest-22240]2022-09-05T14:24:59.244Z <Structure:INFO> Structure#1 loading controller interface zwavejs (ZWaveJSController) [latest-22240]2022-09-05T14:24:59.257Z <Controller:CRIT> Controller: failed to load zwavejs implementation /var/reactor/ext/ZWaveJSController/ZWaveJSController.js: [Error]Error: Cannot find module 'js-yaml' Require stack: - /var/reactor/ext/ZWaveJSController/ZWaveJSController.js [latest-22240]2022-09-05T14:24:59.258Z <Controller:CRIT> Error: Cannot find module 'js-yaml' Require stack: - /var/reactor/ext/ZWaveJSController/ZWaveJSController.js Error: Cannot find module 'js-yaml' Require stack: - /var/reactor/ext/ZWaveJSController/ZWaveJSController.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/var/reactor/ext/ZWaveJSController/ZWaveJSController.js:529:88) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29) [latest-22240]2022-09-05T14:24:59.259Z <Structure:ERR> Structure#1 controller zwavejs ((undefined)) skipped, implementation could not be loaded. [latest-22240]2022-09-05T14:24:59.259Z <Structure:INFO> Structure#1 loading controller interface groups (DynamicGroupController) [latest-22240]2022-09-05T14:24:59.262Z <DynamicGroupController:null> Module DynamicGroupController v22123 [latest-22240]2022-09-05T14:24:59.266Z <Structure:INFO> Structure#1 loading controller interface weather (OWMWeatherController) [latest-22240]2022-09-05T14:24:59.270Z <OWMWeatherController:null> Module OWMWeatherController v22059 [latest-22240]2022-09-05T14:24:59.272Z <Structure:INFO> Structure#1 loading controller interface reactor_system (SystemController) [latest-22240]2022-09-05T14:24:59.275Z <SystemController:null> Module SystemController v22080 [latest-22240]2022-09-05T14:24:59.278Z <Structure:INFO> Structure#1 loading controller interface mqtt (MQTTController) [latest-22240]2022-09-05T14:24:59.284Z <MQTTController:null> Module MQTTController v22144 [latest-22240]2022-09-05T14:24:59.329Z <MQTTController:INFO> instance topic ident is mqtt [latest-22240]2022-09-05T14:24:59.332Z <Structure:INFO> Structure#1 loading controller interface nut (NUTController) [latest-22240]2022-09-05T14:24:59.334Z <default:null> Module NUTController v22152 [latest-22240]2022-09-05T14:24:59.337Z <Structure:INFO> Starting controller HassController#hass [latest-22240]2022-09-05T14:24:59.337Z <HassController:NOTICE> HassController#hass starting... [latest-22240]2022-09-05T14:24:59.338Z <HassController:NOTICE> HassController#hass connecting to ws://192.168.1.21:8123/api/websocket [latest-22240]2022-09-05T14:24:59.345Z <Structure:INFO> Starting controller HubitatController#hubitat [latest-22240]2022-09-05T14:24:59.370Z <Structure:INFO> Starting controller DynamicGroupController#groups [latest-22240]2022-09-05T14:24:59.374Z <DynamicGroupController:NOTICE> Controller DynamicGroupController#groups is now online. [latest-22240]2022-09-05T14:24:59.374Z <Structure:INFO> Starting controller OWMWeatherController#weather [latest-22240]2022-09-05T14:24:59.402Z <Structure:INFO> Starting controller SystemController#reactor_system [latest-22240]2022-09-05T14:24:59.404Z <SystemController:NOTICE> Controller SystemController#reactor_system is now online. [latest-22240]2022-09-05T14:24:59.429Z <Structure:INFO> Starting controller MQTTController#mqtt [latest-22240]2022-09-05T14:24:59.430Z <MQTTController:NOTICE> Connecting to broker mqtt://192.168.1.21:1883/ [latest-22240]2022-09-05T14:24:59.476Z <Structure:INFO> Starting controller NUTController#nut [latest-22240]2022-09-05T14:24:59.478Z <NUTController:NOTICE> NUTController#nut connecting to NUT server at "192.168.1.20":3493 [latest-22240]2022-09-05T14:24:59.479Z <NUTController:INFO> NUTController#nut started NUT client connection; waiting for ready [latest-22240]2022-09-05T14:24:59.480Z <app:NOTICE> Starting HTTP server and API...``` Synology Docker MSR v latest-22240-3b3254d6
-
Please reread the install instructions. Nothing gets installed or run inside the docker container.
-
Please reread the install instructions. Nothing gets installed or run inside the docker container.
@toggledbits I did install per the instructions. Only after I got the error is when I tried running the install.sh from inside the container as I remembered from installing the MQTT and NUT add-ons had those instructions for docker. Everything was installed in the ext directory on the synology.
-
Make sure your
NODE_PATH
in your container configuration (Environment tab) reads/opt/reactor:/opt/reactor/node_modules
. The update mechanism on Synology may not update this value on an existing container (even if reset). -
That was it. It is working now. My NODE_PATH was /opt/reactor, Changed to/opt/reactor:/opt/reactor/node_modules. When did this change and is there something I should of done differently to have this update?
Thanks -
No, it's a limitation of the Synology container manager, apparently. It doesn't seem to apply updated values from the new image to existing containers. I'll make note of that on the next Reactor build (later today) as well. I've also updated the instructions to just eliminate the install scripts; they don't do anything meaningful (everything ZWaveJSController needs is already in the current Reactor environment).
When Reactor 22248 comes out later today, you will not need to upgrade to it unless you feel a need to get the one major new feature (ability to "wait for completion" when a reaction runs another reaction). If you don't need it, don't bother. But if you do decide to upgrade, you will also need to upgrade your ZWaveJSController to its 22248 build as well.
-
T toggledbits locked this topic on