12/29/2023 0 Comments Google home light switch![]() Save this file in the arduino library directory on your PC with the name arduino_secrets.h in a separate directory. This file contains the used access codes for the Wi-Fi network (network SSID and password) and the Adafruit IO web page login codes (account name and IOKEY code). This is a text file that you can create with notepad. The sketch also uses an extra file, arduino_secrets.h. Download the board file “Arduino SAMD boards” via the menu tools / board / board manager, after which you can select the MKR1000 board. If you have not previously programmed the MKR1000, you must first make this board accessable in the IDE. ![]() Place the following libraries in the IDE (via: tools / manage libraries): ArduinoJson and WiFi101. Use the standard IDE from the Arduino website. The Adafruit feed is protected for security reasons with an account name and a unique Adafruit IOKEY only known to the account owner. The Arduino MKR1000 is programmed to check this website reguarly, reading out the data in the feed and then it switches the relevant switching relay on or off. IFTTT sends the code associated with the command (in our case “one_on”) to this feed. Adafruit is an electronics supplier maintaining a website to store smart switching data. A well-understood command will be forwarded by IFTTT to the Adafruit website. If the command is not understood, the Google Assistant will return another answer to make it clear that no switching action will follow. If the command is fully understood the answer from IFTTT will be returned digitally to the Google Nest Mini and there it will be converted into an audio signal. IFTTT (If This Than That or “if you do one thing the other thing happens”) is a kind of intermediate station that analyzes the command, gives the answer and forwards the actions to the next cloud, the Adafruit IO. It is then forwarded to the IFTTT cloud where the answer is made. This analog audio signal is digitized and is sent to the Google Assistant cloud. The Google Nest Mini hears the voice command, for example “Hey Google, switch light number one on”. So set the language to English via settings / more settings / assistant / languages and then choose English (United States). ![]() Understanding your own voice commands with Google Home only works with the English language. Download it from the Playstore on your Android phone and install the app. You have to create an account for every cloud service… It is a bit cumbersome but it works!įirst you will need the Google Home app. Three (!) cloud services are required to do this. Switching on and off via the voice commands runs completely via the internet. In this image you can see step by step how the whole process works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |