Python Alexa智能家居技能中不再发现的设备
几个月前,我有一个演示智能家居的技能,在这个技能中,用户可以链接帐户,一些类型的演示设备正在发现和控制它。 当前,当我发现设备时,它会显示“未找到新设备”。它也不会在应用程序中显示演示/虚拟设备。 早些时候它起作用了 对发现接口的响应与前面相同 以下是请求示例:Python Alexa智能家居技能中不再发现的设备,python,amazon-web-services,alexa,alexa-skills-kit,alexa-skill,Python,Amazon Web Services,Alexa,Alexa Skills Kit,Alexa Skill,几个月前,我有一个演示智能家居的技能,在这个技能中,用户可以链接帐户,一些类型的演示设备正在发现和控制它。 当前,当我发现设备时,它会显示“未找到新设备”。它也不会在应用程序中显示演示/虚拟设备。 早些时候它起作用了 对发现接口的响应与前面相同 以下是请求示例: { "directive": { "header": { "namespace": "Alexa.Discovery",
{
"directive": {
"header": {
"namespace": "Alexa.Discovery",
"name": "Discover",
"payloadVersion": "3",
"messageId": "90939566-c7a7-4195-93ad-1a97834a3ab7"
},
"payload": {
"scope": {
"type": "BearerToken",
"token": "Atza|IwEBIAjCr4kpR6T2B1cEdIfvCCxQmwwRBn28bC-pMOT0gmphXVQ1RR7cpuuuyX5Zd3nIKc77VmqeBw1FHP7m2LsOloqErzjHiliicy8pvtlJ1jvUxetVarUj8LvL_e9cT39CTqyERCJLzOKicZsW6z_679I7re1MOIOragx2T6yvrDRUUxo_O3KiflwMVZe87QZqZqURydYIZeCdi1S9SwmqCgPMKBxmsMfRq1vQIFP2RLe63C8VqlkTLvcBsWmVfSNE8SFwDpJuZI3Q2tFy2q2yOgBbLdL1oTd_EK8-mh813fsrzD1GcFixrTKrUgyAZulOmAe7jqB4-4E9eZbqbZ3Iyx1sPX0ltGc1KFjcOs2nZSVnpg"
}
}
}
}
以下是回应:
{
"event": {
"header": {
"namespace": "Alexa.Discovery",
"name": "Discover.Response",
"messageId": "3d09ff51-44a5-4a57-85a2-99de5daec683",
"payloadVersion": "3"
},
"payload": {
"endpoints": [
{
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa",
"version": "3"
},
{
"type": "AlexaInterface",
"interface": "Alexa.PowerController",
"version": "3",
"properties": {
"supported": [
{
"name": "powerState"
}
],
"proactivelyReported": false,
"retrievable": false
}
}
],
"description": "Sample Endpoint Description",
"displayCategories": [
"OTHER"
],
"endpointId": "sample-switch-01",
"friendlyName": "Sample Switch",
"manufacturerName": "Sample Manufacturer"
},
{
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa",
"version": "3"
},
{
"type": "AlexaInterface",
"interface": "Alexa.BrightnessController",
"version": "3",
"properties": {
"supported": [
{
"name": "brightness"
}
],
"proactivelyReported": false,
"retrievable": false
}
}
],
"description": "Sample Endpoint Description",
"displayCategories": [
"OTHER"
],
"endpointId": "sample-brightness-01",
"friendlyName": "Sample Brightness Bulb",
"manufacturerName": "Sample Manufacturer"
},
{
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa",
"version": "3"
},
{
"type": "AlexaInterface",
"interface": "Alexa.ColorTemperatureController",
"version": "3",
"properties": {
"supported": [
{
"name": "SetColorTemperature"
}
],
"proactivelyReported": false,
"retrievable": false
}
}
],
"description": "Sample Endpoint Description",
"displayCategories": [
"OTHER"
],
"endpointId": "sample-dining-room-01",
"friendlyName": "Sample Dining Room",
"manufacturerName": "Sample Manufacturer"
},
{
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa",
"version": "3"
},
{
"type": "AlexaInterface",
"interface": "Alexa.ThermostatController",
"version": "3",
"properties": {
"supported": [
{
"name": "targetSetpoint"
}
],
"proactivelyReported": false,
"retrievable": false
}
}
],
"description": "Sample Endpoint Description",
"displayCategories": [
"OTHER"
],
"endpointId": "sample-heater-01",
"friendlyName": "Sample Heater",
"manufacturerName": "Sample Manufacturer"
},
{
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa",
"version": "3"
},
{
"type": "AlexaInterface",
"interface": "Alexa.Speaker",
"version": "3",
"properties": {
"supported": [
{
"name": "SetVolume"
},
{
"name": "SetMute"
}
],
"proactivelyReported": false,
"retrievable": false
}
}
],
"description": "Sample Endpoint Description",
"displayCategories": [
"OTHER"
],
"endpointId": "sample-speaker-01",
"friendlyName": "Sample Speaker",
"manufacturerName": "Sample Manufacturer"
}
]
}
}
}
请帮助,它是否与不同的用户、数据库等有任何关系
多谢各位