Before connecting to Google Assistant, Wassim first needed a way to control the desk with his Omega. The first step was hacking the standing desk control board so that the Omega, along with a simple transistor circuit, can operate the control board using the GPIOs. Then came a Node.js program running on the Omega that created HTTP endpoints that would initiate a press of each of the buttons.
Now the desk could be controlled with HTTP requests from the local network, but to connect it to Google Assistant, the HTTP endpoints would have to be publicly accessible from the internet. Wassim used ngrok to do just that, creating a public URL to expose the Omega’s standing desk HTTP endpoints to the internet. The final step was using IFTTT to connect Google Assistant to the API exposed on the ngrok URL.Â
Then saying “Hey Google, rise my desk to level 3” would put everything into motion and raise the desk, without even moving a finger!
The post also goes on to explain Google’s recommended way of using the Smart Home API to connect Google Assistant with hardware. Great work Wassim!