简体   繁体   English

如何在 Google 智能家居操作中对发现的设备进行分组?

[英]How can I group device on discovery in Google smart home action?

I have a smart home skill already working fine with google home but when google home discovers devices for first time I want to group appliances into different rooms and relay this info back to google home.我有一个智能家居技能已经可以很好地与谷歌家庭一起工作,但是当谷歌家庭第一次发现设备时,我想将电器分组到不同的房间并将此信息转发回谷歌家庭。 I know user can make rooms and assign appliances to them after sync event but I want to group them at the sync event so users wont need to do that from their end.我知道用户可以在同步事件后创建房间并为他们分配设备,但我想在同步事件中将它们分组,这样用户就不需要从他们那端做这些了。 Is it possible?可能吗?

In your SYNC response you can return the roomHint property for each device which will provide a signal to the Assistant after discovering it.在您的 SYNC 响应中,您可以返回每个设备的roomHint属性,这将在发现它后向智能助理提供信号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Google上执行的操作-智能家居-当智能家居设备离线时,如何使Google Home正确响应? - Actions on Google - smart home - how to make Google Home response properly when smart home device is offline? Google Home/Assistant - 我可以在 Google Assistant Smart Speaker 对话期间和作为其一部分启用与设备的交互吗? - Google Home/Assistant - Can I enable interaction with a device during and as part of a Google Assistant Smart Speaker conversation? 测试 Google 智能家居操作 - Testing the Google Smart Home Action 如何测试我在谷歌家庭设备上的操作 - How to test my action on google home device Google Smart Home API上的Action如何异步工作? - How does Action on Google Smart Home API works Asynchronously? 如何在Google Home上执行开发操作? - How can I run my development action on my Google Home? Google 智能家居操作将设备“[test] ACTION 已链接”添加到立即“出现问题”。 再试一次' - Google Smart Home Actions add device '[test] ACTION is linked' to immediate 'Something went wrong. Try again' 创建自定义 Google 智能家居操作 - Create custom Google Smart Home Action 是否有用于 Google Smart Home Action 的 .NET 客户端库? - Is there a .NET client library for Google Smart Home Action? 如何为Google Home Action开启alpha / beta测试? - How can I turn on alpha/beta testing for a Google Home Action?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM