如何在没有 "Let's talk to" 且没有 IFTTT 的情况下使用自定义 Google 助手命令

How to use custom Google Assistant commands without "Let's talk to" and without IFTTT

我知道这是一个广泛的问题,但我花了无数时间寻找正确的解决方案。 Google 提供了至少 15 种不同类型的 Google 助手连接,它们各不相同,我不知道我的项目使用哪一种。该项目非常简单 - 我想从移动设备 Google Assistant.Example 中使用参数(到我的家庭服务器的 webhook)调用动态 url - 我想对我的 Android 移动设备说phone

> Ok, Google set the TV volume to 50

然后助理会打电话给

GET "https://192.168.1.12/tv/volume/50

GET "https://192.168.1.12/?device=tv&action=volume&value=50

其中 'tv'、'volume' 和 '50' 是动态参数(不是静态的)所以我也可以调用

> Ok, Google set the TV channel to 132

我只想要一个 link 或我可以使用的 Google 开发控制台的名称。我不想再浪费几个小时才发现另一个 Google 包不适合我的项目。有没有人做过类似的事情?
PS
我知道我可以用“好吧,Google 让我们谈谈......”来实现类似的东西,但我的情况不是这样。
我也不能使用 IFTTT

Google 助理中没有直接执行此操作的一键式机制。 smart home platform allows you to configure a service that would capture commands such as Channel and Volume and let you handle those commands in the way you want, using a cloud backend and optionally the Local Home SDK.

这可能比您想要的要多一些,您可能需要考虑现有的智能家居平台,这些平台可能会处理一些后端工作,例如 https://homeassistant.io,它确实已经集成了智能助理,不过我不太确定它是否适用于您的用例。

在不了解您的限制的情况下很难回答您的问题。你是开发者吗?您要制作商业应用程序吗?对于非商业用途,您可以使用 Google Assistant Service 创建自定义命令来执行您想要的任何操作(包括调用您的 API)。作为一个好处,您不必在命令前说“嘿Google”。

此外,了解为什么您不能使用 IFTTT 会有所帮助,因为它 似乎 完全符合您的要求。