[英]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.