For the purpose of this post, we will be focusing on using Dialogflow to create your own conversation. The conversational platform allows developers to connect with users via the Google Assistant, Amazon Alexa, and other platforms. I hope you have as much fun trying this project as I have had buildig is.Dialogflow provides a new and innovative way for users to interact with mobile apps by integrating voice-based conversational interfaces powered by AI. I currently have 4 units built and will add some more as i require. The hardware is home made.Using ESP8266-12 and ESP8266-01.It is best to use ESP8266-12 #define BLYNK_DEBUGĬhar auth = "xxxxxxxxxxxxxxxxxxxxxxxxxx" ĭigitalWrite(12, LOW) //Turn off relay on GP12 on ESP 8266-12ĭigitalWrite(13, LOW) //Turn off relay on GP13 on ESP 8266-12ĭigitalWrite(2, LOW) //Turn off relay on GP02 on ESP 8266-1ĭigitalWrite(14, LOW) //Turn off relay on GP01 on ESP 8266-12īLYNK_WRITE(V1) // turn light on - ESP 8266-12īlynk.virtualWrite(V4, 255) // turn off led for lightīlynk.virtualWrite(V1, HIGH) //turn on V1 lightĭigitalWrite(12, HIGH) //Turn relay on pin GP12īlynk.virtualWrite(V4, 0) // turn off led for lightīlynk.virtualWrite(V1, LOW) //turn off V1 lightĭigitalWrite(12, LOW) //Turn relay off pin GP12īLYNK_WRITE(V2)// turn tv on - ESP8266-1 GPIO2īlynk.virtualWrite(V5, 255) // turn on led for TVīlynk.virtualWrite(V2, HIGH) //turn on V2 for TVĭigitalWrite(2, HIGH) //Turn relay on pin GPIO2īlynk.virtualWrite(V5, 0) // turn off led for TVīlynk.virtualWrite(V2, LOW) //turn off V2 for TVĭigitalWrite(2, LOW) //Turn relay off pin GPIO2īLYNK_WRITE(V3)// turn kitchen on - ESP8266-12īlynk.virtualWrite(V6, 255) // turn on led for kitchen lightīlynk.virtualWrite(V3, HIGH) //turn on V3 for kitchenĭigitalWrite(13, HIGH) //Turn relay on pin GP13īlynk.virtualWrite(V6, 0) // turn off led for kitche lightīlynk.virtualWrite(V3, LOW) //turn off V3 for kitchenĭigitalWrite(13, LOW) //Turn relay off pin GP13īLYNK_WRITE(V7)// turn conservatory on - ESP8266-12 GPI14īlynk.virtualWrite(V8, 255) // turn on led for conservatoryīlynk.virtualWrite(V7, HIGH) //turn on V7 for conservatory lightĭigitalWrite(14, HIGH) //Turn relay on pin GP014īlynk.virtualWrite(V8, 0) // turn off led for conservatoryīlynk.virtualWrite(V7, LOW) //turn off V7 for conservatory lightĭigitalWrite(14, LOW) //Turn relay off pin GPo14 In my case i have use four virtual buttons to communicate with tasker/Restask. NB:5.should be ( (for real pin) V1 (for virtual pin) Blynk software Ps : if you want to add more security between your phone and the server, check the discussion under this post Your data will be stored in the tasker variable %rtres Step 6: you have to uncheck the custom body Step 4 : it will be “get” instead of “put”, and at If you want to read data, you have to change: You can check if your program work by clicking the play triangle, if it works, click the save icon and enjoy ! custom body : if you want to activated pin :.open tasker, new task, click the “+”, plugin, then “RESTask”.open tasker, new task, click the "+", plugin, then "RESTask" 3. We will fist cover how to write data : 1. Here is a tutorial on how to bind tasker and Blynk, via the restfull api
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |