[OBSOLETE] Russound Multi-Zone Controller Integration

You need to figure out why Live Logging is not showing anything… that’s not right. I’d delete all the SmartApps, Device Types, etc. reboot the Hub (pull the battery and power cord) and start fresh. If nothing shows up in Live Logging then the problem is bigger than this app. Give it a go and let me know when you’ve got Live Logging showing something.

Thanks for the help, that’s the direction I was leaning since this doesn’t make any sense.

Well i am stumped…Thought i had the problem fixed with a windows driver for the serial port. I am still getting the following error

C:\Users\torgrimj\Downloads\smartthings-master\smartthings-master\smartthings-nodeproxy>node server.js
[2016-12-31T19:13:49.966Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2016-12-31T19:13:50.024Z] [rnet] ** NOTICE ** RNET serial port not set in config file!
[2016-12-31T19:13:50.025Z] [stnp] Loaded plugin: rnet
[2016-12-31T19:13:50.026Z] [rnet] Detected serial ports: [“COM4”]
^C
C:\Users\torgrimj\Downloads\smartthings-master\smartthings-master\smartthings-nodeproxy>

This is the top part of my config.json file

"port": 8080,
"authCode": "6274",
"rnet": {
    "serialPort": "COM4",
    "sources": [
        "Internal Tuner",
        "Media Server",
        "Sirius XM",
        "AirPlay",
        "DSM Tuner",
        "Source 6"

Not sure where to go from here…any help would be appreciated…Running on Windows 10 desktop that will be dedicated to this.

Thanks

JT

Can you IM your entire config.json file? It appears that the Node Proxy service is not reading the config as it’s reporting that the serial port is not set in the config file…

Has anyone attempted to use the Russound keypads with the Monoprice amplifier? I’m curious if they would work because the Monoprice firmware supports setting text names for sources and their keypads obviously don’t support displaying that information at all.

If nobody has tried this, I’d be happy to give it a test if anyone has a spare keypad. I’ll cover shipping it both ways and have it back to you in a day or two.

If not, I might pick one up used off of eBay since they seem to go for $60 or so shipped.

Was there any fix here? I’m seeing the same issue.

I have not gotten my to work yet. I tried rebooting hub and have waited many days , but still no change in the behaviour.

I had a similar situation as @ccruzen. After I would click ‘Done’ in my SmartApp, I would only see these lines in my console:

[2017-01-14T19:25:04.500Z] [stnp] ::ffff:192.168.1.20 GET /subscribe/192.168.1.20:39500
[2017-01-14T19:25:09.426Z] [stnp] ::ffff:192.168.1.20 GET /plugins/mpr-sg6z/discover
[2017-01-14T19:25:09.479Z] [mpr6] Completed controller discovery

After uncommenting line 481 in mpr-sg6z.js and uncommenting line 99 in the SmartApp, I now receive the following output:

[2017-01-14T19:28:09.595Z] [stnp] ::ffff:192.168.1.20 GET /subscribe/192.168.1.20:39500
[2017-01-14T19:28:14.380Z] [stnp] ::ffff:192.168.1.20 GET /plugins/mpr-sg6z/discover
[2017-01-14T19:28:14.390Z] [mpr6] {"type":"discover","zones":[{"zone":0,"name":"Baby Room"},{"zone":1,"name":"Basememt"},{"zone":2,"name":"Living Room"},{"zone":3,"name":"Deck"},{"zone":4,"name":"Bedroom"},{"zone":5,"name":"Office"}]}
[2017-01-14T19:28:14.390Z] [mpr6] Completed controller discovery

So, it seems to be listing the zones, which is the first time that’s shown up. I was monitoring this from the Live Logging screen, and here’s the result I get now when I click Done from the Smartapp:

e27ce72f-c4e6-42ba-8d3c-89ad52ebe154  1:28:14 PM: error physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'MPR6Z Zone' in namespace 'tcjennings' not found. @ line 134
e27ce72f-c4e6-42ba-8d3c-89ad52ebe154  1:28:14 PM: trace Monoprice 6Z send command: /plugins/mpr-sg6z/discover
e27ce72f-c4e6-42ba-8d3c-89ad52ebe154  1:28:09 PM: trace Monoprice 6Z send command: /subscribe/192.168.1.20:39500
e27ce72f-c4e6-42ba-8d3c-89ad52ebe154  1:28:09 PM: debug getChildDevices(true), children=0

Not sure what to do from here. Nothing is showing up in my Things tab, even after refreshing by pulling down on that screen.

@cuedup looks like this has to do with the fixes I made a while back to support github integration… can you change line 134 of the SmartApp to read:

addChildDevice("redloro-smartthings", "MPR6Z Zone", deviceId, hostHub.id, ["name": it.name, label: "MPR: "+it.name, completedSetup: true])

Let me know if this fixes it… thanks!

What issue are you having? And are you using the Russound or Monoprice plugin?

@Torgysk are you still having the issue where only zone 1 works? or another issue?

So i did some more testing.

  1. Zone 0 appears to work for all functions
  2. The party Mode - will turn all zones on that are in the “party mode” function, but will not turn them off
  3. Zones 1-5 do not power on/off using the on/off button
  4. If i press the default source button, it will turn that zone on but not off. That is applicable to all zones (even the Master Bedroom Zone 0).
  5. The volume,loudness, bass, treble work as they should
  6. The “all off” button does not work for zones 1-5, but works on zone 0
  7. I can change from source to source and that works fine on all zones
  8. When i press the on/off for zones 1-5 the button changes color and appears on, but nothing happens.

Let me know if you want me to test or try anything to help troubleshoot this.

THanks for your assistance.

JEff

@redloro Thanks so much, I followed the directions you gave to cuedup and changed line 134 of the smartapp. Now the “things” are showing for each zone and I am able to control the power to each zone, however, I’m unable to change the volume or the sources. Are there any other lines that may need changed to allow full control?

FYI, I went back and re-commented all of the log lines from both the device handler and smartapp and now everything is working perfectly. Can’t say how thankful I am for all the help @redloro.

P.S. I wanted to leave my previous reply in case someone else comes along with the same issue.

@redloro I am having an issue where it’s telling me that the MPR6Z serial port isn’t set in the config. I’m running node in Windows, and I’m pretty sure everything is correct. I don’t think it’s reading my config though. Any thoughts on how to troubleshoot this?

[2017-01-16T18:22:42.380Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2017-01-16T18:22:42.458Z] [mpr6] ** NOTICE ** MPR6Z serial port not set in config file!
[2017-01-16T18:22:42.458Z] [stnp] Loaded plugin: mpr-sg6z
[2017-01-16T18:22:42.473Z] [mpr6] Detected serial ports: [“COM3”,“COM1”,“COM2”]

So I figured out that I needed to change “rnet” to mpr6z in the config file, and now I get:

[2017-01-16T18:31:47.362Z] [stnp] SmartThings Node Proxy listening at http://:::8080
C:\Program Files\nodejs\smartthings-nodeproxy\node_modules\serialport\lib\serialport.js:101
throw new TypeError('Invalid “baudRate” must be a number got: ’ + settings.baudRate);
^

TypeError: Invalid “baudRate” must be a number got: undefined
at new SerialPort (C:\Program Files\nodejs\smartthings-nodeproxy\node_modules\serialport\lib\serialport.js:101:11)
at Mpr6z.init (C:\Program Files\nodejs\smartthings-nodeproxy\plugins\mpr-sg6z.js:172:14)
at Object. (C:\Program Files\nodejs\smartthings-nodeproxy\plugins\mpr-sg6z.js:150:7)
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)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

Yeah… if you’re using the Monoprice plugin, you need this in your config.json file:


  "mpr6z": {
    "serialPort": "COM1",
    "baudRate": 9600,
    "sources": [
      "Sonos",
      "Airplay",
      "Apple TV",
      "Source 4",
      "Source 5",
      "Source 6"
    ],
    "controllerConfig": {
      "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"}
      ]
    }
  },

Thanks. I put that in, as well as running it through jsonlint to validate, but I’m still getting:

C:\Program Files\nodejs\smartthings-nodeproxy>server.js
[2017-01-17T01:15:15.791Z] [stnp] SmartThings Node Proxy listening at http://:::8080
C:\Program Files\nodejs\smartthings-nodeproxy\node_modules\serialport\lib\serialport.js:101
throw new TypeError('Invalid “baudRate” must be a number got: ’ + settings.baudRate);
^

TypeError: Invalid “baudRate” must be a number got: undefined
at new SerialPort (C:\Program Files\nodejs\smartthings-nodeproxy\node_modules\serialport\lib\serialport.js:101:11)
at Mpr6z.init (C:\Program Files\nodejs\smartthings-nodeproxy\plugins\mpr-sg6z.js:172:14)
at Object. (C:\Program Files\nodejs\smartthings-nodeproxy\plugins\mpr-sg6z.js:150:7)
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)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

Can you share what you have on line 173 of mpr-sg6z.js and also your complete config.json? Feel free to see send it via PM.

Thanks for that. Capitalizing the R in BaudRate seemed to get me further. Now, it is connecting, but it doesn’t seem to be discovering the zones. I think others up in the thread had the same issue, and I’ve tried uncommenting some of the lines you spoke about earlier, but it hasn’t made a difference yet.

Thanks so much for the help.