简体   繁体   中英

Is possible to programmaticaly request smart devices connected to google home account?

I'm trying to develop an Android app that can request the smart devices connected to a google home account, check the state of those devices and change some of them, like turn on or off, is this possible programmatically?

i was trying to build some custom Actions with Google Actions SDK, the problem is that Actions SDK only works with Google Assistant commands, so either Actions o Dialogflow are not options

Basically what i need is to "control" or send commands programmatically to query devices states and be able to change those states(i just need to turn on or off)

没有第三方开发人员没有API可以从其他提供商访问用户的设备。

You can use Dialogflow for this! If you create intents, you find at the bottom of the page an option " Fulfillment Enable webook call for this intent ". I routed the intents to a PHP script on my web space. The server must be a server in the Internet (not the local net of your Google-Home) and must be accessible via HTTPS. Basically you get the parameter as JSON and you have to answer with JSON structured data.

Update: I uploaded my code https://github.com/Limag/aiplayer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM