[OBSOLETE] Russound Multi-Zone Controller Integration

Looks like you don’t have the serialport package installed. Did you run npm install:rnet?

You can also remove all the stuff from the config.json that you aren’t going to use, like the ad2usb, envisalink, etc

Thank you. I am only trying to install envisalink.

I have modified config.json to only include envisalink config:

{
“port”: 8083,
“authCode”: “secret-key”,

    "envisalink": {
            "address": "192.168.1.46",
            "port": "4025",
            "password": "test",
            "securityCode": "1111",
            "dumpZoneTimer": "0",
            "panelConfig": {
                    "type": "discover",
                    "partitions": [{
                            "partition": 1,
                            "name": "Security Panel"
                    }],
                    "zones": [{
                                    "zone": 1,
                                    "type": "contact",
                                    "name": "Front or Garage Doors"
                            },
                            {
                                    "zone": 2,
                                    "type": "motion",
                                    "name": "Living Room Motion"
                            },
                            {
                                    "zone": 3,
                                    "type": "contact",
                                    "name": "Patio Door"
                            },
                            {
                                    "zone": 4,
                                    "type": "contact",
                                    "name": "Master Bedroom Windows"
                            },
                            {
                                    "zone": 5,
                                    "type": "contact",
                                    "name": "Downstairs Windows"
                            },
                            {
                                    "zone": 6,
                                    "type": "contact",
                                    "name": "Upstairs Windows"
                            }

                    ]
            }
    },

    "notify": {
            "address": "192.168.1.11",
            "port": "39500"
    }

}

However I still get this error:

smartthings-nodeproxy@1.0.0 start /root/smartthings-nodeproxy
node server.js

[2017-08-11T16:47:24.677Z] [stnp] SmartThings Node Proxy listening at http://0.0.0.0:8083
module.js:471
throw err;
^

Error: Cannot find module ‘serialport’
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/root/smartthings-nodeproxy/plugins/ad2usb.js:21:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

npm ERR! Linux 4.2.8
npm ERR! argv “/share/CACHEDEV1_DATA/.qpkg/NodeJS/bin/node” “/opt/NodeJS/bin/npm” “run” “start”
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! smartthings-nodeproxy@1.0.0 start: node server.js
npm ERR! Exit status 1

Are you trying to install the envisalink plugin or the rnet plugin?? Cause this is the Russound thread… :slight_smile:

And delete all the plugins out of the /root/smartthings-nodeproxy/plugins/ folder except the one you want to use. That’ll fix it up for ya.

Thanks. That fixed it. Sorry about posting in wrong thread :slight_smile:

Hi Redloro, after a couple of hours working on this, everything looked to be fine… until the time is ran npm run install:rnet
I got this

serialport@5.0.0 install /home/pi/Downloads/smartthings-nodeproxy/node_modules/serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0/serialport-v5.0.0-node-v48-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@5.0.0 and node@6.11.2 (node-v48 ABI) (falling back to source compile with node-gyp)
make: Entering directory ‘/home/pi/Downloads/smartthings-nodeproxy/node_modules/serialport/build’
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/poller.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory ‘/home/pi/Downloads/smartthings-nodeproxy/node_modules/serialport/build’
smartthings-nodeproxy@1.0.0 /home/pi/Downloads/smartthings-nodeproxy
└─┬ serialport@5.0.0
├── bindings@1.3.0

Hope you can save me.
Thanks

1 Like

Looks like it ended up building the dependencies… I see no other problem? What’s going on?

I get this when trying to run npm

pi@raspberrypi:~/Downloads/smartthings-nodeproxy $ npm run start

smartthings-nodeproxy@1.0.0 start /home/pi/Downloads/smartthings-nodeproxy
node server.js

[2017-08-22T03:19:04.302Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-08-22T03:19:05.109Z] [ad2] AD2USB connect mode set to: serial
[2017-08-22T03:19:05.434Z] [ad2] ** NOTICE ** AD2USB serial port not set in config file!
[2017-08-22T03:19:05.454Z] [stnp] Loaded plugin: ad2usb
module.js:471
throw err;
^

Error: Cannot find module ‘pcap’
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/Downloads/smartthings-nodeproxy/plugins/dash.js:22:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

npm ERR! Linux 4.4.48+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “start”
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! smartthings-nodeproxy@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the smartthings-nodeproxy@1.0.0 start script ‘node server.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the smartthings-nodeproxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs smartthings-nodeproxy
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls smartthings-nodeproxy
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/Downloads/smartthings-nodeproxy/npm-debug.log
pi@raspberrypi:~/Downloads/smartthings-nodeproxy $

Ok, I kept browsing on the comments, and I think I got almost everything to work.

smartthings-nodeproxy@1.0.0 start /home/pi/Downloads/smartthings-nodeproxy
node server.js

[2017-08-22T05:09:13.007Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-08-22T05:09:14.114Z] [stnp] Loaded plugin: rnet
[2017-08-22T05:09:14.288Z] [rnet] RNET connection error: Error: Error: No such file or directory, cannot open /dev/cu.usbserial-A102MMGZ
[2017-08-22T05:09:15.347Z] [rnet] Detected serial ports: [“/dev/ttyAMA0”]
[2017-08-22T05:10:13.744Z] [rnet] RNET connection error: Error: Error: No such file or directory, cannot open /dev/cu.usbserial-A102MMGZ

Hey @el_Argen… looks like you’re making progress. But it also looks like you don’t have your USB cable setup correctly. You can only use a port that is listed in Detected serial ports. Check the cable, drivers, etc and make sure that it is detected by the host machine, shows in the list and then set it in config.json.

[2017-08-22T05:09:14.288Z] [rnet] RNET connection error: Error: Error: No such file or directory, cannot open /dev/cu.usbserial-A102MMGZ
[2017-08-22T05:09:15.347Z] [rnet] Detected serial ports: ["/dev/ttyAMA0"]

Great!

[2017-08-22T23:47:35.733Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-08-22T23:47:36.989Z] [stnp] Loaded plugin: rnet
[2017-08-22T23:47:37.180Z] [rnet] Connected to RNET: /dev/ttyUSB0
[2017-08-22T23:47:38.393Z] [rnet] Detected serial ports: ["/dev/ttyAMA0","/dev/ttyUSB0"]
[2017-08-22T23:48:55.271Z] [stnp] ::ffff:192.168.100.4 GET /subscribe/192.168.100.4:39500
[2017-08-22T23:48:59.263Z] [stnp] ::ffff:192.168.100.4 GET /plugins/rnet/discover
[2017-08-22T23:48:59.469Z] [rnet] {“type”:“discover”,“zones”:[{“zone”:0,“name”:“Family Room”},{“zone”:1,“name”:“Kitchen”},{“zone”:2,“name”:“Living Room”},{“zone”:3,“name”:“Patio”},{“zone”:4,“name”:“Dining Room”},{“zone”:5,“name”:“Office”}]}
[2017-08-22T23:48:59.471Z] [rnet] Completed controller discovery
[2017-08-22T23:50:19.425Z] [stnp] ::ffff:192.168.100.4 GET /subscribe/192.168.100.4:39500

Now how do I make for the zones to appear in smartthings?
Already configured the smart app

And how do I make sure the Russound CAA66 is actually receiving any data?

I just don’t know how to dissect the issue. I installed everything over this time on my mac, and I’m getting these outputs
MacBook-Pro:smartthings-nodeproxy Blas$ npm run start

smartthings-nodeproxy@1.0.0 start /Users/Blas/Downloads/smartthings-nodeproxy
node server.js

[2017-08-23T21:17:28.479Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-08-23T21:17:28.521Z] [stnp] Loaded plugin: rnet
[2017-08-23T21:17:28.525Z] [rnet] Detected serial ports: [“/dev/tty.usbserial-AL03KXME”,“/dev/tty.Bluetooth-Incoming-Port”,“/dev/tty.Charizard-WirelessiAP”]
[2017-08-23T21:17:30.027Z] [rnet] Connected to RNET: /dev/tty.usbserial-AL03KXME
[2017-08-23T21:17:45.730Z] [stnp] ::ffff:192.168.100.4 GET /subscribe/192.168.100.4:39500
[2017-08-23T21:17:50.122Z] [stnp] ::ffff:192.168.100.4 GET /plugins/rnet/discover
[2017-08-23T21:17:50.133Z] [rnet] {“type”:“discover”,“zones”:[{“zone”:0,“name”:“Family Room”},{“zone”:1,“name”:“Kitchen”},{“zone”:2,“name”:“Living Room”},{“zone”:3,“name”:“Patio”},{“zone”:4,“name”:“Dining Room”},{“zone”:5,“name”:“Office”}]}
[2017-08-23T21:17:50.133Z] [rnet] Completed controller discovery

but the zones are still not appearing

Good news - looks like you got STNP running on the RPi and Mac… couple questions:

  1. Did you watch the install video in the first post?
  2. Now that you’ve completed step #1 under Installation in the first post, make sure you follow the rest of the steps… verify that you have both the SmartApp and Device Handler installed.
  3. If you’ve watched the video and done steps 1-6 in the first post, then something is not right and we’ve got to dig a bit further.

As a side note, after you completed the config in the SmartApp with “Discover Zones” enabled, did you refresh your list of Things? The zones will automatically show up once it’s configured right.

Yes, did all that. But I think the problem might be lack of connection with the russound.

:frowning:

Nope… that has nothing to do with it. You could unplug the Russound and still get STNP to work with ST… let’s dig a bit deeper… from the logs:

[2017-08-23T21:17:28.479Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-08-23T21:17:28.521Z] [stnp] Loaded plugin: rnet
[2017-08-23T21:17:28.525Z] [rnet] Detected serial ports: ["/dev/tty.usbserial-AL03KXME","/dev/tty.Bluetooth-Incoming-Port","/dev/tty.Charizard-WirelessiAP"]
[2017-08-23T21:17:30.027Z] [rnet] Connected to RNET: /dev/tty.usbserial-AL03KXME
  • Tells us that everything is setup and “working” with STNP.
[2017-08-23T21:17:45.730Z] [stnp] ::ffff:192.168.100.4 GET /subscribe/192.168.100.4:39500
  • Tells us that STNP received a subscribe command from the ST hub, and that the ST hub is at 192.168.100.4
[2017-08-23T21:17:50.122Z] [stnp] ::ffff:192.168.100.4 GET /plugins/rnet/discover
[2017-08-23T21:17:50.133Z] [rnet] {“type”:“discover”,“zones”:[{“zone”:0,“name”:“Family Room”},{“zone”:1,“name”:“Kitchen”},{“zone”:2,“name”:“Living Room”},{“zone”:3,“name”:“Patio”},{“zone”:4,“name”:“Dining Room”},{“zone”:5,“name”:“Office”}]}
[2017-08-23T21:17:50.133Z] [rnet] Completed controller discovery
  • Tell us that STNP received a discover request for the RNET plugin and the RNET plugin responded with the 6 zones you configured in the config.json.

At this point the SmartApp should have created the 6 zones in ST. But upon further examination we see that the SmartApp is expecting the discover payload to include the controller number… and that’s because it supports multiple controllers… and the controller number is missing from the discover payload… and since this is pulled directly from the config.json I suspect that your config.json is not correct. The rnet section needs to look like this:

  "rnet": {
    "c-series": false,
    "serialPort": "/dev/tty.usbserial-AL03KXME",
    "sources": [
      "Sonos",
      "Airplay",
      "Apple TV",
      "Source 4",
      "Source 5",
      "Source 6"
    ],
    "controllerConfig": {
      "type": "discover",
      "controllers": [{
        "controller": 0,
        "zones": [
          {"zone": 0, "name": "Family Room"},
          {"zone": 1, "name": "Kitchen"},
          {"zone": 2, "name": "Living Room"},
          {"zone": 3, "name": "Patio"},
          {"zone": 4, "name": "Dining Room"},
          {"zone": 5, "name": "Office"}
        ]
      }]
    }
  },

Do this and report back…

  1. Stop STNP
  2. Fix your config.json
  3. Start STNP
  4. Re-run the SmartApp on your phone and save the settings with Discover Zones enabled
  5. Zones should show up!

I take off my hat before you redloro. That made it work. And the Russound is now receiving commands!! :smile:
Just 3 more things I need to do to be all set up.
1: Assign a static IP to the RPi.
2: Find a way to automatically run the server upon restart.
3: is there any way to make a combination of zone/source to trigger that combo without using the ST app (like for using in ActionTiles or any other assigned keypad…)?

Any suggestions?

Thank you very, very much.

Awesome…

  1. You got that one
  2. There are some posts in this thread and also this one: [RELEASE] Honeywell / Ademco Vista 20P Integration
  3. You should check out CoRE or some of the posts in this thread.

@redloro I updated my iPhone last night to iOS 11, when I opened the Application the volume control was different, was that because of iOS or did you change it. BTW, I like the change. Thanks

Ken

1 Like

Oh wow… I hadn’t even noticed that… that change is compliments of the latest SmartThings app. Looks nice!

1 Like