Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to discover devices through the alexa App #84

Closed
pratapvivek007 opened this issue Aug 28, 2018 · 2 comments
Closed

unable to discover devices through the alexa App #84

pratapvivek007 opened this issue Aug 28, 2018 · 2 comments

Comments

@pratapvivek007
Copy link

Dear team,
Greetings!
Since I am configuring this Alexa skill with my own Google cloud instance which I have created with below link.
https://github.com/openhab/openhab-cloud/tree/master
I have done the testing using google assistance with my google openhab cloud server ,
but when I am configuring with alexa , facing below issue.
1-for Oauth2 configuration, when i using "login with Amazon" .But after successful account linking , when I am hitting "discover device" it saying as "discover device failed".
Looking out for help.

Thanks in Advance!

@digitaldan
Copy link
Collaborator

Is your config.json filled out correctly with the hostname of your cloud instance ? see https://github.com/openhab/openhab-alexa/blob/master/config_sample.js ? When running the skill, what does the cloud watch logs say when you discover devices?

@pratapvivek007
Copy link
Author

Thanks for replying!
Yes ,I renamed config_sample.js to config.js and pointed to my cloud instance as below.
module.exports = {
userpass: 'admin@gmail.com:Welcome@123',
host: 'www.smarthive.fueblabs.com',
port: 443,
path: '/rest/items/',

When I am doing the test of Lambda function as "discover device" with web portal of amazon , I am getting below cloud watch logs.But when I am testing with Alexa App , after account linking , no device are discover and even there is no logs generating.
cloud watch logs when testing with Amazon web portal.
START RequestId: 3e77828e-ab6b-11e8-af84-1f3188c21d5c Version: $LATEST
2018-08-29T09:09:33.684Z 3e77828e-ab6b-11e8-af84-1f3188c21d5c Input:
{
"header": {
"payloadVersion": "2",
"namespace": "Alexa.ConnectedHome.Discovery",
"name": "DiscoverAppliancesRequest",
"messageId": "F8752B11-69BB-4246-B923-3BFB27C06C7D"
},
"payload": {
"accessToken": "1"
}
}

2018-08-29T09:09:36.644Z 3e77828e-ab6b-11e8-af84-1f3188c21d5c discoverDevices getSuccess: [
{
"link": "https://www.smarthive.fueblabs.com/rest/items/livingRoom_123_Dimmer_LD",
"state": "NULL",
"type": "Dimmer",
"name": "livingRoom_123_Dimmer_LD",
"label": "LD",
"category": "string",
"tags": [
"Lighting"
],
"groupNames": [
"String",
"GoodMorning"
]
}
,
{
"members": [],
"link": "https://www.smarthive.fueblabs.com/rest/items/GoodNoon",
"state": "NULL",
"type": "Group",
"name": "GoodNoon",
"label": "GoodNoon",
"category": "Group",
"tags": [],
"groupNames": []
}
,
{
"members": [],
"link": "https://www.smarthive.fueblabs.com/rest/items/Favourites",
"state": "NULL",
"type": "Group",
"name": "Favourites",
"label": "Favourites",
"category": "Group",
"tags": [],
"groupNames": []
}
,
{
"link": "https://www.smarthive.fueblabs.com/rest/items/kitchen_1234_Color_KC",
"state": "NULL",
"type": "Color",
"name": "kitchen_1234_Color_KC",
"label": "KC",
"category": "string",
"tags": [
"Lighting"
],
"groupNames": [
"String"
]
}
,
{
"members": [],
"link": "https://www.smarthive.fueblabs.com/rest/items/Party",
"state": "NULL",
"type": "Group",
"name": "Party",
"label": "Party",
"category": "Group",
"tags": [],
"groupNames": []
}
,
{
"link": "https://www.smarthive.fueblabs.com/rest/items/bedRoom_12_Switch_BL",
"state": "NULL",
"type": "Switch",
"name": "bedRoom_12_Switch_BL",
"label": "BL",
"category": "string",
"tags": [
"Lighting"
],
"groupNames": [
"String",
"GoodMorning"
]
}
,
{
"link": "https://www.smarthive.fueblabs.com/rest/items/bedRoom_12_Color_BC",
"state": "NULL",
"type": "Color",
"name": "bedRoom_12_Color_BC",
"label": "BC",
"category": "string",
"tags": [
"Lighting"
],
"groupNames": [
"String"
]
}

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants