好的,首先,这里的主要想法是在到达时自动化一些电灯开关。我住在一个混淆 gps 的树林里,所以我对 tuya 等的到达功能不能像预期的那样可靠地工作。他们有时确实有效,但我需要它是可靠的。
所以计划是安装 google assistant sdk 并让 textinput 工作。下载并安装了所有东西,做了谷歌云平台的事情,一切都很好。我可以在cmd中输入“关闭卧室灯”,然后卧室灯就会关闭。现在,这很好用,不要误会我的意思,我很可能可以调整它来满足我的需要。但这需要启动一个交互式控制台,然后实际输入我想问的短语。
这个问题的解决方案是如果我可以用类似的东西查询文本输入
py -m googlesamples.assistant.grpc.textinput --device-id "insert_device_id" --device-model-id "insert_device_model_id" --textquery "turn off the bedroom light"
然后我就不必启动交互式提示并手动退出它。我希望能够在不与谷歌助手交互的情况下向助手发送文本。
最终目标是使用我的电脑ping我的手机静态IP地址,并通过PC上的谷歌助手打开设备/灯。