Thanks again for continuing to try to help me, @schettj …sincerely appreciated.
I’ve uninstalled the original instance of your webapi smartapp, installed again and got fresh client id and secret and generated a new access token. I selected only one switch device during the authorization. I put the new token and the new app id in your node code. I started the server and asked Alexa to discover devices, and she responds that she can’t find any connected home devices. I added a debug statement to your code so that I could ensure that node is able to talk to my Smartthings smartapp. You’ll see that in the log below:
C:\node\echosmart>node echosmart.js
UPnP discovery started
{“devices”:[{“id”:“24243966-1773-487d-b763-0412ff0fe564”,“name”:“Z-Wave Switch”,“label”:“Bar Light”,“capabilities”:[“switch”,“poll
ing”,“refresh”,“indicator”,“sensor”,“actuator”],“state”:{“time”:“2015-05-25T17:41:18Z”,“switch”:“off”,“indicatorStatus”:""}}]}
lights fetched
M-SEARCH Message received
{ address: ‘192.168.1.103’,
family: ‘IPv4’,
port: 50000,
size: 107 }
M-SEARCH Message received
{ address: ‘192.168.1.103’,
family: ‘IPv4’,
port: 50000,
size: 107 }
M-SEARCH Message received
{ address: ‘192.168.1.103’,
family: ‘IPv4’,
port: 50000,
size: 122 }
M-SEARCH Message received
{ address: ‘192.168.1.103’,
family: ‘IPv4’,
port: 50000,
size: 122 }
/description.xml
/description.xml
/description.xml
/description.xml
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/lights
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/lights
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/lights
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/lights
{“devices”:[{“id”:“24243966-1773-487d-b763-0412ff0fe564”,“name”:“Z-Wave Switch”,“label”:“Bar Light”,“capabilities”:[“switch”,“poll
ing”,“refresh”,“indicator”,“sensor”,“actuator”],“state”:{“time”:“2015-05-25T17:41:32Z”,“switch”:“off”,“indicatorStatus”:""}}]}
{“devices”:[{“id”:“24243966-1773-487d-b763-0412ff0fe564”,“name”:“Z-Wave Switch”,“label”:“Bar Light”,“capabilities”:[“switch”,“poll
ing”,“refresh”,“indicator”,“sensor”,“actuator”],“state”:{“time”:“2015-05-25T17:41:32Z”,“switch”:“off”,“indicatorStatus”:""}}]}
{“devices”:[{“id”:“24243966-1773-487d-b763-0412ff0fe564”,“name”:“Z-Wave Switch”,“label”:“Bar Light”,“capabilities”:[“switch”,“poll
ing”,“refresh”,“indicator”,“sensor”,“actuator”],“state”:{“time”:“2015-05-25T17:41:32Z”,“switch”:“off”,“indicatorStatus”:""}}]}
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2
{“devices”:[{“id”:“24243966-1773-487d-b763-0412ff0fe564”,“name”:“Z-Wave Switch”,“label”:“Bar Light”,“capabilities”:[“switch”,“poll
ing”,“refresh”,“indicator”,“sensor”,“actuator”],“state”:{“time”:“2015-05-25T17:41:33Z”,“switch”:“off”,“indicatorStatus”:""}}]}
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/groups/0
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/groups/0
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/groups/0
/api/gLps2Bkmi504ez7miUw5x0CbxjV1CjLznhtPfjn2/groups/0
From that, it looks like the node server knows about my device(s), but isn’t reporting it to Alexa when she asks about them.
Again, REALLY appreciate your help…
Terry