Code Monkey home page Code Monkey logo

Comments (2)

digitaldan avatar digitaldan commented on July 17, 2024

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?

from openhab-alexa.

pratapvivek007 avatar pratapvivek007 commented on July 17, 2024

Thanks for replying!
Yes ,I renamed config_sample.js to config.js and pointed to my cloud instance as below.
module.exports = {
userpass: '[email protected]: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,

from openhab-alexa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.