SmartThings Community

[RELEASE] Russound Multi-Zone Controller Integration

smartapp_av
russound
dth_av

(jelsco) #552

I guess i forgot to add whats wrong, The devices never add to ST. The logs above are from right when adding the proxy node to ST, just no devices ever show up.


(Jack) #553

Got it. Two things to check–first thing, the name of the individual zone device handler is wrong if you’re using the most current code from GitHub (it needs to be “MPR6Z Zone” and not “MPR6Z Zone - bass and treble”), so that’s a potential source. Second, I don’t see a “Controller” statement in your json. I don’t know if that would cause the issue, but here’s my json as an example (you can ignore the second controller statement I have, I have two linked controllers):

{
“port”: 8080,
“authCode”: “redacted”,
“mpr6z”: {
“serialPort”: “ttyUSB0”,
“baudRate”: 9600,
“sources”: [
“Airplay 1”,
“Airplay 2”,
“Airplay 3”,
“Source 4”,
“Upstairs Receiver”,
“Mini PC Audio”
],
“controllerConfig”: {
“type”: “discover”,
“controllers”: [
{
“controller”: 1,
“zones”: [
{
“zone”: 1,
“name”: “Master Bedroom”
},
{
“zone”: 2,
“name”: “Office”
},
{
“zone”: 3,
“name”: “Great Room”
},
{
“zone”: 4,
“name”: “Dining Room”
},
{
“zone”: 5,
“name”: “Den”
},
{
“zone”: 6,
“name”: “Master Bath”
}
]
},
{
“controller”: 2,
“zones”: [
{
“zone”: 1,
“name”: “Guest Bedroom”
},
{
“zone”: 2,
“name”: “Third Bedroom”
},
{
“zone”: 3,
“name”: “Gym”
},
{
“zone”: 4,
“name”: “Patio”
},
{
“zone”: 5,
“name”: “Hot Tub”
},
{
“zone”: 6,
“name”: “Unused”
}
]
}
]
}
}
}


(jelsco) #554

I added the controller back in, at some point in this thread removing it resolved a similar issues. Same issue adding controller back in.

Also the newest DH appears to be the ““MPR6Z Zone - bass and treble””

Would you be able to provide me with the version you have?
Scot


(jelsco) #555

Jack,
You got me on the right track. After adding the controller back in i started getting valid logs from ST. Line 145 in the smartapp calls for the “MPR6Z Zone” DH and not the new name “MPR6Z Zone - bass and treble”. Renamed the DH and all of the devices finally showed up.
Thank you!!!


(Jack) #556

That’s exactly what I did–renamed the device handler.


(Todd M) #557

Has anyone modified this code to replace source0(), source1(), source2()… with actual source names like radio, DVD, Cable box…?
It would certainly be easier to use those names in my webcore code.


(Kumar Mudedla) #558

@redloro Thanks for all of this, I am using your smartthings-nodeproxy for my Honeywell with envisalink and that is beautiful. Hope you can help me out on this issue with CAA66 and get me some sleep :slight_smile:

I have been watching and finally bought a CAA66 from eBay (they said its brand new but it doesn’t look like) it is just the amp (no keypads or remote) so not sure if its the amp issue or some thing that I setup, Envisalink working fine. rnet plug says completed discovery but I cant see any devices in the things. I tried many things by reeding through many posts here but no luck.

Running nodeproxy on Windows 10

C:\Users\HOME\smartthings-nodeproxy>node server.js
[2018-11-06T04:43:33.783Z] [stnp] SmartThings Node Proxy listening at http://:::8080
[2018-11-06T04:43:33.790Z] [stnp] Loaded plugin: envisalink
[2018-11-06T04:43:33.836Z] [stnp] Loaded plugin: rnet
[2018-11-06T04:43:33.839Z] [rnet] Detected serial ports: [“COM1”,“COM3”]
[2018-11-06T04:43:33.840Z] [evl3] Connected to Envisalink at 192.168.0.164:4025
[2018-11-06T04:43:33.842Z] [rnet] Connected to RNET: COM3
[2018-11-06T04:43:38.238Z] [evl3] {“type”:“partition”,“partition”:1,“state”:“armedstay”,“alpha”:“ARMED STAY”}
[2018-11-06T04:44:06.159Z] [stnp] ::ffff:192.168.0.106 GET /subscribe/192.168.0.106:39500
[2018-11-06T04:44:16.900Z] [stnp] ::ffff:192.168.0.106 GET /subscribe/192.168.0.106:39500
[2018-11-06T04:44:21.954Z] [stnp] ::ffff:192.168.0.106 GET /plugins/rnet/discover
[2018-11-06T04:44:21.955Z] [rnet] {“type”:“discover”,“zones”:[{“zone”:0,“name”:“Office”},{“zone”:1,“name”:“Bedroom”},{“zone”:2,“name”:“Bath room”},{“zone”:3,“name”:“Patio”},{“zone”:4,“name”:“Garage”},{“zone”:5,“name”:“new”}]}
[2018-11-06T04:44:21.956Z] [rnet] Completed controller discovery

this is what I see from Live logging when I click done on the Russound app in smarthtings

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace Russound RNET event: index:E5, mac:305A3A572147, headers:Tk9USUZZIC9ub3RpZnkgSFRUUC8xLjENCkNPTlRFTlQtVFlQRTogYXBwbGljYXRpb24vanNvbg0KQ09OVEVOVC1MRU5HVEg6IDE5MQ0Kc3RucC1wbHVnaW46IHJuZXQNCkhvc3Q6IDE5Mi4xNjguMC4xMDY6Mzk1MDANCkNvbm5lY3Rpb246IGNsb3Nl, body:eyJ0eXBlIjoiZGlzY292ZXIiLCJ6b25lcyI6W3siem9uZSI6MCwibmFtZSI6Ik9mZmljZSJ9LHsiem9uZSI6MSwibmFtZSI6IkJlZHJvb20ifSx7InpvbmUiOjIsIm5hbWUiOiJCYXRoIHJvb20ifSx7InpvbmUiOjMsIm5hbWUiOiJQYXRpbyJ9LHsiem9uZSI6NCwibmFtZSI6IkdhcmFnZSJ9LHsiem9uZSI6NSwibmFtZSI6Im5ldyJ9XX0=

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace Body: [type:discover, zones:[[name:Office, zone:0], [name:Bedroom, zone:1], [name:Bath room, zone:2], [name:Patio, zone:3], [name:Garage, zone:4], [name:new, zone:5]]]

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace Headers: [NOTIFY /notify HTTP/1.1:, CONTENT-TYPE:application/json, CONTENT-LENGTH:191, stnp-plugin:rnet, Host:192.168.0.106, Connection:close]

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace SmartThings Node Proxy: index:E5, mac:305A3A572147, headers:Tk9USUZZIC9ub3RpZnkgSFRUUC8xLjENCkNPTlRFTlQtVFlQRTogYXBwbGljYXRpb24vanNvbg0KQ09OVEVOVC1MRU5HVEg6IDE5MQ0Kc3RucC1wbHVnaW46IHJuZXQNCkhvc3Q6IDE5Mi4xNjguMC4xMDY6Mzk1MDANCkNvbm5lY3Rpb246IGNsb3Nl, body:eyJ0eXBlIjoiZGlzY292ZXIiLCJ6b25lcyI6W3siem9uZSI6MCwibmFtZSI6Ik9mZmljZSJ9LHsiem9uZSI6MSwibmFtZSI6IkJlZHJvb20ifSx7InpvbmUiOjIsIm5hbWUiOiJCYXRoIHJvb20ifSx7InpvbmUiOjMsIm5hbWUiOiJQYXRpbyJ9LHsiem9uZSI6NCwibmFtZSI6IkdhcmFnZSJ9LHsiem9uZSI6NSwibmFtZSI6Im5ldyJ9XX0=

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace Body: null

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace Headers: [HTTP/1.1 200 OK:, X-Powered-By:Express, Date:Tue, 06 Nov 2018 06, Connection:keep-alive, Content-Length:0]

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:29 AM: trace SmartThings Node Proxy: index:E4, mac:305A3A572147, ip:C0A80064, port:1F90, requestId:418fe01c-1116-4b9a-9cf7-6f2ecaedfaca, headers:SFRUUC8xLjEgMjAwIE9LDQpYLVBvd2VyZWQtQnk6IEV4cHJlc3MNCkRhdGU6IFR1ZSwgMDYgTm92IDIwMTggMDY6MTk6MzEgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogMA==, body:

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:24 AM: trace Body: null

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:24 AM: trace Headers: [HTTP/1.1 200 OK:, X-Powered-By:Express, Date:Tue, 06 Nov 2018 06, Connection:keep-alive, Content-Length:0]

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:24 AM: trace SmartThings Node Proxy: index:E3, mac:305A3A572147, ip:C0A80064, port:1F90, requestId:d420ea00-d1ab-4498-8880-7d4b8de4a5a2, headers:SFRUUC8xLjEgMjAwIE9LDQpYLVBvd2VyZWQtQnk6IEV4cHJlc3MNCkRhdGU6IFR1ZSwgMDYgTm92IDIwMTggMDY6MTk6MjYgR01UDQpDb25uZWN0aW9uOiBrZWVwLWFsaXZlDQpDb250ZW50LUxlbmd0aDogMA==, body:

797a8f53-07b6-4cb2-9752-51ab3ff260d4 12:19:24 AM: debug getChildDevices(true), children=0


#559

Have you added the Smart App and the Device Handler to ST? When you complete the controller discovery, it’s sending the zones back to ST so they should get auto-created. Are you not seeing the RNET: ... devices in your device list?

You should see devices automatically created for these zones:


(Kumar Mudedla) #560

Thanks for the quick reply, yes I did added device handler and smart app and I am configuring the smart app with the IP and auth code but devices are not created


(Kumar Mudedla) #561

@redloro do you think its an issue with the usb to serial cable or the controller itself ? I am using the same cable as you mentioned in the 1st post of this thread


(Ken) #562

You can test the connection by running the commands for the controller. See post #204 in this thread for commands you can try.


(Kumar Mudedla) #563

@redloro @KenJ , my bad I was using very old config sample (I had that with envisalink from last year) now I am able to see the zones in the ST app, and now another issue is the controller (CAA66) is not responding at all to on/off zones or anything. I am ordering new usb to serial to test this out. Please let me know if there is any other way to test this communication to controller without the keypads ( I see the KP6 keypad cost is $150)

Do you think the controller not accepting the Rnet command via serial port ? is there way to reset this ?

thank you for helping on this.


(Peter) #564

I have a russound cam 6.6. When I manually press power on the wall it does not sync correctly with the smarthings app. It still shows off. In the app i have to press twice to turn off. As i said the app does not sync with the wall control. I really enjoy using this. Can someone shed some light on the syncing issues.


#565

If you’re using the same serial cable from post #1 then it should be ok… it’s the same one I have. But it could be the problem. The other thing I have seen cause a problem especially with used units is that the ID on the unit has been changed from the default 0 or 1… I can’t remember. I think there’s a dip switch or something on the Russound to set the device ID. Check yours and make sure it’s set to whatever is the factory default.

Also make sure that when you turn the power ON/OFF from the device handler, you see the commands in the console being sent to the Russound.


#566

Yeah I think there was a problem syncing the updates from keypads with the device handlers… basically it came down to me not having any keypads to test with so the adapter only does what Russound published in their docs… I think you can tap the “Refresh” button in the bottom right and it should update the status in the device handler.


(Peter) #567

Thanks for the update. Pressing the refresh button on the app does update the status. Would it be possible to have the keypads and app synced in the future? What is needed?


(Kumar Mudedla) #568

Yes I am using the same serial as you listed and tried with other too with no luck, it looks like the controller is bad as setup button (on the front panel) does nothing was trying to reset to factory mode so the ID will be 0. Seller from eBay sending me another unit for me to test. Also I ordered a KPL keypad so I will test them out to see where the issue is.

thank you so much for helping on this.


(Kumar Mudedla) #569

just wanted to inform you , received anther CAA66 unit and its working fine. Awesome work and thank you so much for helping on this.


#570

@redloro I have a Russound MCA-C3 and followed your instructional video on how to configure the Raspberry Pi but I keep on receiving this error about my serial port after typing in node server.js in the terminal. Any help would be appreciated. Thanks.

[2018-11-21T00:04:42.412Z] [stnp] SmartThings Node Proxy listening at http://:::8080
internal/modules/cjs/loader.js:582
throw err;
^

Error: Cannot find module ‘serialport’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/Downloads/smartthings-nodeproxy/plugins/ad2usb.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)


(Jason Lindsay) #572

Good evening,

So I am just getting into Smartthings and everything so please be patient and thanks in advance.

Here is my config file.

{
“port”: 8080,
“authCode”: “secret-key”,
“mpr6z”: {
“serialPort”: “COM4”,
“baudRate”: 9600,
“sources”: [
“Sonos”,
“Airplay”,
“Apple TV”,
“Source 4”,
“Source 5”,
“Source 6”
],
“controllerConfig”: {
“type”: “discover”,
“controllers”: [
{
“controller”: 1,
“zones”: [
{
“zone”: 1,
“name”: “Family Room”
},
{
“zone”: 2,
“name”: “Kitchen”
},
{
“zone”: 3,
“name”: “Living Room”
},
{
“zone”: 4,
“name”: “Patio”
},
{
“zone”: 5,
“name”: “Dining Room”
},
{
“zone”: 6,
“name”: “Office”
}
]
}
]
}
},
“notify”: {
“address”: “192.168.1.3”,
“port”: “39500”
}
}

Trying to connect my Monoprice amp and getting this error.

C:\Users\djmal>npm run install:mpr-sg6z

smartthings-nodeproxy@1.0.0 install:mpr-sg6z C:\Users\djmal
npm install && npm install serialport@5.0.0

audited 683 packages in 2.431s
found 0 vulnerabilities

serialport@5.0.0 install C:\Users\djmal\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-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@5.0.0 and node@10.13.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0/serialport-v5.0.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@5.0.0 and node@10.13.0 (node-v64 ABI) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
serialport.cpp
serialport.cpp
serialport_win.cpp
win_delay_load_hook.cc
serialport_win.cpp
win_delay_load_hook.cc
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal error C1083: Cannot o
pen compiler generated file: ‘C:\Users\djmal\node_modules\serialport\build\Release\obj\serialport\win_delay_load_hook.o
bj’: Permission denied [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan_implementation_12_inl.h(340): warning C4996: ‘v8::StringObject::New’: was declared
deprecated (compiling source file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxpr
oj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(5052): note: see declaration of ‘v8::StringObject::New’ (compiling
source file …\src\serialport.cpp)
c:\users\djmal\node_modules\nan\nan_implementation_12_inl.h(340): warning C4996: ‘v8::StringObject::New’: was declared
deprecated (compiling source file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxpr
oj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(5052): note: see declaration of ‘v8::StringObject::New’ (compiling
source file …\src\serialport.cpp)
c:\users\djmal\node_modules\nan\nan.h(1066): warning C4996: ‘v8::Value::ToString’: was declared deprecated (compiling s
ource file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1066): warning C4996: ‘v8::Value::ToString’: was declared deprecated (compiling s
ource file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10040): note: see declaration of ‘v8::Value::ToString’ (compiling
source file …\src\serialport.cpp)
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10040): note: see declaration of ‘v8::Value::ToString’ (compiling
source file …\src\serialport.cpp)
c:\users\djmal\node_modules\nan\nan.h(1080): warning C4996: ‘v8::String::WriteUtf8’: was declared deprecated (compiling
source file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1080): warning C4996: ‘v8::String::WriteUtf8’: was declared deprecated (compiling
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2658): note: see declaration of ‘v8::String::WriteUtf8’ (compiling
source file …\src\serialport.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
source file …\src\serialport.cpp)
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2658): note: see declaration of ‘v8::String::WriteUtf8’ (compiling
source file …\src\serialport.cpp)
c:\users\djmal\node_modules\nan\nan_implementation_12_inl.h(340): warning C4996: ‘v8::StringObject::New’: was declared
deprecated (compiling source file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.v
cxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(5052): note: see declaration of ‘v8::StringObject::New’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal\node_modules\serialport\src\serialport.cpp(41): warning C4996: ‘v8::String::Utf8Value::Utf8Value’: was d
eclared deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1066): warning C4996: ‘v8::Value::ToString’: was declared deprecated (compiling s
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2891): note: see declaration of ‘v8::String::Utf8Value::Utf8Value’
ource file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport.cpp(48): warning C4996: ‘v8::Value::ToObject’: was declared depre
cated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10040): note: see declaration of ‘v8::Value::ToString’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(96): warning C4996: ‘Nan::Callback::Call’: was declared depre
cated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1080): warning C4996: ‘v8::String::WriteUtf8’: was declared deprecated (compiling
source file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(114): warning C4996: ‘v8::Value::ToObject’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2658): note: see declaration of ‘v8::String::WriteUtf8’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(41): warning C4996: ‘v8::String::Utf8Value::Utf8Value’: was d
c:\users\djmal\node_modules\serialport\src\serialport.cpp(152): warning C4996: ‘Nan::Callback::Call’: was declared depr
eclared deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2891): note: see declaration of ‘v8::String::Utf8Value::Utf8Value’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(48): warning C4996: ‘v8::Value::ToObject’: was declared depre
cated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(96): warning C4996: ‘Nan::Callback::Call’: was declared depre
cated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(191): warning C4996: ‘Nan::Callback::Call’: was declared depr
c:\users\djmal\node_modules\serialport\src\serialport.cpp(114): warning C4996: ‘v8::Value::ToObject’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(152): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(191): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(235): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport.cpp(235): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(254): warning C4996: ‘v8::Value::ToObject’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport.cpp(254): warning C4996: ‘v8::Value::ToObject’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(290): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport.cpp(290): warning C4996: ‘Nan::Callback::Call’: was declared depr
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(342): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport.cpp(342): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(384): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport.cpp(384): warning C4996: ‘Nan::Callback::Call’: was declared depr
ecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\nan\nan_implementation_12_inl.h(340): warning C4996: ‘v8::StringObject::New’: was declared
deprecated (compiling source file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.v
cxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(5052): note: see declaration of ‘v8::StringObject::New’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal\node_modules\nan\nan.h(1066): warning C4996: ‘v8::Value::ToString’: was declared deprecated (compiling s
ource file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10040): note: see declaration of ‘v8::Value::ToString’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal\node_modules\nan\nan.h(1080): warning C4996: ‘v8::String::WriteUtf8’: was declared deprecated (compiling
source file …\src\serialport_win.cpp) [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(2658): note: see declaration of ‘v8::String::WriteUtf8’ (compiling
source file …\src\serialport_win.cpp)
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(158): warning C4311: ‘type cast’: pointer truncation from
‘HANDLE’ to ‘int’ [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(158): warning C4302: ‘type cast’: truncation from 'HANDLE
’ to ‘int’ [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(168): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(175): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(185): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(187): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(191): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(193): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(197): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(199): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(204): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(216): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(226): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(259): warning C4996: ‘v8::Value::ToObject’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(297): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(311): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(337): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(354): warning C4996: ‘v8::Value::ToObject’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(415): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(434): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(476): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(492): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(494): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(658): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(672): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(681): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
C:\Users\djmal\node_modules\serialport\src\serialport.cpp : fatal error C1083: Cannot open compiler generated file: ‘C:
\Users\djmal\node_modules\serialport\build\Release\obj\serialport\serialport.obj’: Permission denied [C:\Users\djmal\no
de_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(158): warning C4311: ‘type cast’: pointer truncation from
‘HANDLE’ to ‘int’ [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(158): warning C4302: ‘type cast’: truncation from 'HANDLE
’ to ‘int’ [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(168): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(175): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(185): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(187): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(191): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(193): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(197): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(199): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(204): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(216): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(226): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(259): warning C4996: ‘v8::Value::ToObject’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(297): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(311): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(337): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(354): warning C4996: ‘v8::Value::ToObject’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal.node-gyp\10.13.0\include\node\v8.h(10046): note: see declaration of ‘v8::Value::ToObject’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(415): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(434): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(476): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(492): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(494): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(658): warning C4996: ‘Nan::Callback::Call’: was declared
deprecated [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\nan\nan.h(1655): note: see declaration of ‘Nan::Callback::Call’
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(672): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
c:\users\djmal\node_modules\serialport\src\serialport_win.cpp(681): warning C4312: ‘type cast’: conversion from ‘int’ t
o ‘HANDLE’ of greater size [C:\Users\djmal\node_modules\serialport\build\serialport.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [C:\Users\djmal\node_modules\serialpo
rt\build\serialport.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [C:\Users\djmal\node_modules\serialpo
rt\build\serialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “build” “–fallback-to-build” “–module=C:\Users\djmal\node_modules\serialport\build\Release\serialport.node” “–module_name=serialport” “–module_path=C:\Users\djmal\node_modules\serialport\build\Release”
gyp ERR! cwd C:\Users\djmal\node_modules\serialport
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\djmal\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\djmal\node_modules\serialport\build\Release’ (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\djmal\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\djmal\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd C:\Users\djmal\node_modules\serialport
node-pre-gyp ERR! node -v v10.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\djmal\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\djmal\node_modules\serialport\build\Release’ (1)
npm WARN rollback Rolling back node-pre-gyp@0.6.36 failed (this is probably harmless): EPERM: operation not permitted, lstat ‘C:\Users\djmal\node_modules\serialport\node_modules’
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@5.0.0 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@5.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\djmal\AppData\Roaming\npm-cache_logs\2018-11-23T02_43_39_973Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! smartthings-nodeproxy@1.0.0 install:mpr-sg6z: npm install && npm install serialport@5.0.0
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the smartthings-nodeproxy@1.0.0 install:mpr-sg6z script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\djmal\AppData\Roaming\npm-cache_logs\2018-11-23T02_43_40_070Z-debug.log