When I test the lambda function I get this as a result that seems like its working fine....
{
"event": {
"header": {
"messageId": "364b3dde-c85f-4349-9408-19f6f2802e39",
"name": "Discover.Response",
"namespace": "Alexa.Discovery",
"payloadVersion": "3"
},
"payload": {
"endpoints": [
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "group.upstairs",
"displayCategories": [
"OTHER"
],
"endpointId": "group#upstairs",
"friendlyName": "Upstairs",
"manufacturerName": "Home Assistant"
},
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "group.downstairs",
"displayCategories": [
"OTHER"
],
"endpointId": "group#downstairs",
"friendlyName": "Downstairs",
"manufacturerName": "Home Assistant"
},
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "switch.bedroom_lamp_1",
"displayCategories": [
"SWITCH"
],
"endpointId": "switch#bedroom_lamp_1",
"friendlyName": "Bedroom Lamp 1",
"manufacturerName": "Home Assistant"
},
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "switch.bedroom_lamp_2",
"displayCategories": [
"SWITCH"
],
"endpointId": "switch#bedroom_lamp_2",
"friendlyName": "Bedroom Lamp 2",
"manufacturerName": "Home Assistant"
},
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "group.all_switches",
"displayCategories": [
"OTHER"
],
"endpointId": "group#all_switches",
"friendlyName": "all switches",
"manufacturerName": "Home Assistant"
},
{
"additionalApplianceDetails": {},
"capabilities": [
{
"interface": "Alexa.PowerController",
"properties": {
"proactivelyReported": false,
"retrievable": true,
"supported": [
{
"name": "powerState"
}
]
},
"type": "AlexaInterface",
"version": "3"
}
],
"description": "switch.office_lamp_1",
"displayCategories": [
"SWITCH"
],
"endpointId": "switch#office_lamp_1",
"friendlyName": "Office Lamp 1",
"manufacturerName": "Home Assistant"
}
]
}
}
}
I've linked the skill with my account successfully, but I don't seem to see the lambda function getting called when I initiate discovery on my phone.
How do I test this starting with the Alexa skill in the developer web page? I am not sure how to narrow down the problem.