创建仅供个人使用的操作 [英] Creating Actions for Personal use only

查看:129
本文介绍了创建仅供个人使用的操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的房子安装了1960年以来的家庭自动化系统。我已经能够设置一个界面,该界面使我能够为Node Red,Alexa和现在的Google Assistent等各种技术编写适配器。



鉴于这只会曾经和我的房子一起工作,所以我没有理由公开发布智能家居行动。在Alexa方面,我可以让这些服务无限期地处于开发状态,该状态在过去6个月中一直很好。但是,在Google方面,常见问题解答说( https://developers.google.com/actions/ smarthome / faq ):


问:我需要多长时间进行一次 actions测试



A: gactions测试需要每3天刷新一次。 3天后,测试代理将从移动HomeControl设置中消失。如果遇到这种情况,只需再次运行 gaction test


因此,我想知道他们最好的方法是提供个人Google Actions服务?当然,显而易见的方法是编写脚本并安排gactions调用以保持测试有效,但是我希望有更好的方法来支持此操作! / p>

其他详细信息:我正在使用Amazon的OAuth服务登录。这样,我可以通过Google传递的AccesssToken来验证Amazon ClientID,UserID等,以进行授权。因此,从理论上讲,我可以公开运行此程序,而不会出现任何问题,但我需要弄清楚Google如何对其进行审查以进行测试!在Google Maps汽车驶过时,我不需要一些Google员工来开灯或关灯来确认更改...;)

解决方案

我只会使用脚本定期调用gaction。
发布它会不必要地污染Actions目录。此外,它们还会使您跳入品牌验证的圈子,并为命名条件进行命名时还有其他限制。
如果您确实将其发布,则给他们一个临时帐户以进行验证,并在发布时禁用该帐户。他们可能会在验证期间随机控制灯光,尽管可能长达一周!


My house has an home automation system from the 1960's that I have managed to tap into. I've been able to setup an interface which allows me to write adapters for various technologies such as Node Red, Alexa, and now Google Assistent.

Given that this will only ever work with my house, I see no reason to make public Smart Home Actions. On Alexa's side, I can let these services stay in a Development state indefinitely which has worked great for the last 6 months. On Google's side, however, the FAQ says (https://developers.google.com/actions/smarthome/faq):

Q: How often do I need to run gactions test?

A: gactions test needs be refreshed every 3 days. After 3 days the test agent will disappear from mobile-HomeControl settings. If you run into this, just run gaction test again.

Therefore, I was wondering what they best way is to make a PERSONAL Google Actions service? Of course, the obvious method would be to script and schedule the gactions call to keep testing alive but I would hope there was a better way to support this!

Additional details: I'm using Amazon's OAuth service for sign-in. This way, I can validate the Amazon ClientID, UserID, etc. through the AccesssToken Google passes in for authorization. Therefore, I could theoretically run this publicly without any issues but I would need to figure out how Google could review it for testing purposes! I don't need some Google employee turning on and off my lights while the Google Maps car drive by to verify the change... ;)

解决方案

I would just use a script to call gaction periodically. Publishing it would unnecessarily pollute the Actions directory. Also, they'll make you jump through hoops for "brand verification" and other restrictions they have for naming invocation terms. If you did publish it, you give them a temporary account for verification purposes and disable the account when published. They would be randomly controlling the lights during the verification period though which can be up to a week!

这篇关于创建仅供个人使用的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆