The truth is that functionality behind the "Ok Google, turn off the lights in 10 minutes" is extraordinary and we are going to teach you to program commands for Google Assistant that will come in handy for your day to day.
Now i would not be not bad that the big G replicated this functionality so that we could have it present from a voice command saying "Ok Google, turn off the fan in 25 minutes", or "Ok Google, turn off Netflix in 1 hour". Go for it.
How to program Google Assistant commands
Although let's have Google Routines for Assistant commands From Google or Google Assistant, there is still a lot of scope for the assistant to perform even much better. It is true that it is very good to turn on the lights in our living room with the light bulb connected through WiFi, but, what if we could say "Ok Google, turn off the lights in 30 minutes", knowing that we are going to sleep, and that neither Will we have time to do the shutdown command?
Well, fable. This is what has got this developer from XDA Developers and that from here we applaud. The only thing that is not an app that we can install so easily. We will need to run a bit of code, but nothing difficult as long as we understand a little English for the manual.
Timer for Google Assistant is an open source tool that allows us to program Google Assistant commands, assist a wide variety of functionalities and use cases to make our home even more "smart".
The project in if you use the IFTTT protocol and a web server to communicate with Google Assistant and your smart device. Once everything is configured, you can send commands such as "Ok Google, turn off the lights after 10 minutes" and it executes an action after that specified time.
That is, it will be in charge of extending a set of instructions so that it is possible to use the said duration with commands like "Ok Google, turn the fan on in 25 minutes", and that is responsible for sending one instantly and the end for when the time is up will send another.
How to configure Timer for Google Assistant
We will not go into much detail, but yes, we are going to give you the links for the two ways to be able to configure Timer for Google Assistant. We hope that at some point this project will be updated and we can give an easier way to configure the project itself.
As we have said, Timer for Google Assistant does not communicate directly with our smart devices, but use IFTTT as the communication medium. When we are requesting Google Assistant to "turn off the device after 5 minutes", it sends a command to IFTTT, and that becomes an HTTP request to your server with the device name and the parameter.
Once that time is up, the server will make a web request to IFTTT, and that it will "tell" Google Assistant to turn off the device. In fact, we need to have an always-on Node.js server that IFTTT can communicate with, although it doesn't need to be on the same local WiFi network.
Timer for Google Assistant - Github
There you have the link to the project and in which with some how many steps to follow with a notepad that by understanding a little English you will be able to have the tool active. As we have said, it is an open source project, so you have access to review the code.
So they can program Google Assistant commands and that has made us very eager so that at some point Google will be able to bring this functionality to the assistant itself, one that already has more than 500 million users around the world.