[英]Google Home doesn't send UDP broadcast to my smart home device
我正在尝试开发一种适用于本地实现的智能家居操作,但我的设备没有收到 UDP 广播请求。 我家中有一台连接到我的帐户的 Google Home 设备。
我已经做了接下来的步骤:
echo -n "test data" | nc -u -b 255.255.255.255 8888
echo -n "test data" | nc -u -b 255.255.255.255 8888
我的笔记本电脑的数据包被我的 DIY 智能家居设备接收,但我没有看到来自谷歌家庭助理设备的任何数据包(它与我的笔记本电脑在同一个网络中)。 谷歌助手似乎根本不发送 UDP 广播。 我为此操作添加了我的同步响应示例和设备扫描配置的屏幕截图。 如何让我的设备接收 UDP 广播? 告诉我我是否理解当地的履行错误。
下面的同步响应示例
{
"payload": {
"agentUserId": "fas87df6a8s7d6f",
"devices": [
{
"otherDeviceIds": [
{
"agentId": "fasf87da",
"deviceId": "sdfta87sd6f"
}
],
"deviceInfo": {
"model": "LIGHT",
"manufacturer": "87sd6f87asd",
"swVersion": "1.0",
"hwVersion": "LIGHT"
},
"customData": {},
"id": "light-1234112",
"attributes": {},
"type": "action.devices.types.LIGHT",
"name": {
"defaultNames": [
"light"
],
"nicknames": [
"light"
],
"name": "7f6as87fa8"
},
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.Brightness"
],
"willReportState": false
}
]
},
"requestId": "7298347129347192374"
}
正如您在评论中提到的,您没有创建本地履行应用程序,这是为您现有的任何智能家居操作开发和测试本地履行所必需的。 您可以在https://developers.google.com/assistant/smarthome/develop/local?hl=en找到有关此的更多信息此外,请确保在启用测试套件后正确添加了设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.