Це відео не доступне.
Перепрошуємо.
IOT | DIY Home Automation with Alexa | Tutorial # 2
Вставка
- Опубліковано 15 сер 2024
- In this tutorial you will learn, how to wire up an ESP8266 board to the computer.
We will flash ESP8266 board with a custom firmware using Arduion IDE.
We will be able to controlle the ESP through Alexa using voice commands.
Download Arduino IDE:
www.arduino.cc...
ESP8266 libraries URL:
arduino.esp8266...
IOT Source Code on GitHub
github.com/nas...
Parts:
1). ESP8266 ESP-01 goo.gl/e6t59R
2). FT232RL FTDI USB to TTL Serial Adapter goo.gl/vzpFtS
3). Mini USB cable goo.gl/S9pJhD
It's about time I find a video that is detailed and it worked the first time doing this......YAY I am happy
How do you add more pins now?
Sir: Your video is complete and detailed. Your voice is clear and easy to understand. The images are clear and your presentation is well planned. In short, your video is professionally done. I watched a video by a well known "Lady", who will remain nameless, and the firmware configuration looked so complicated and confusing that I decided not to buy a ESP8266. Then, I watched your video, and now I see that the only changes I need to make to the code will be to enter the router's SSID and password, and then give the device a name. What a difference a good video makes! Now I can buy the ESP8266 with the confidence that I'll be able to use it. Thank you for this excellent video.
itisonlyadream I appreciate your feedback and good luck with your project.
These tutorials are superior to most out there. You have good explanation of the parts and what they do most importantly, You shoe exactly how to wire it, why to wire it, and how to flash and program. Please do not stop making these tutorials!!
+Larry Adams thank you for your valuable feedback. I appreciate your comments greatly since they motivate me to keep making more tutorials.
Just discovered your channel. Great work your doing. I have become disabled recently and have tons of extra time, your videos have inspired me to keep my mind active building along with you. Many thanks for the inspiration and the clear and detailed instructions and production quality of your videos
Tom Scott I am glad you are enjoying these projects.Your valuable feedback is very import to improve this channel. Good luck with your projects and I hope you will share your progress with us. Thank you
I am fairly new to hobby electronics and I quickly grew tired of the standard "beginner's tutorials". But I ran across one of your videos and you've stunned me with your clear and precise instructions on each tut you've done! Seriously spectacular work on these. I'm so excited to get moving on several projects that you have explained so far. Thank you!
P.S. The FT232RL FTDI USB to TTL Serial Adapter that you link to in this video has been discontinued. I searched Amazon and found a few for about 5 times the price, but the comments were warning of "fake" FTDI chips. Is there another Serial Adapter that you could link to that wouldn't have the fake chips?
www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=FT232RL+3.3V+5.5V+FTDI+USB+To+Serial
Great job!!! I did get it to work but when i tell Alexa to turn on or off it says it's not responding etc, but it still turn light on and off. Echo dot 3rd gen.
Very good presentation. Good camera work, clear audio and at a slow understandable pace. Great work indeed !!
Thank you for your feedback.
@@netmedias7657 Hi just one quick question. Is there a way where in i can ask Alexa to report back the state of a switch?
@@nearmitech I demonstrate this in this video.
@@netmedias7657 Sorry what I meant was is there any way I could ask Alexa is (say) bedroom light on (when I am sitting in another room) and Alexa would report back the state of the switch eg. Bedroom light is off or on as the case may be. I didnt see that in this video.
Thanks once again.
Great job with the real time tutorial, I will be using these videos to teach my children as it will give them plenty of time to follow along. Thank you and well done
You've done a very nice job with these tutorials- Thanks!
Good morning, great video, I would like to know if it is possible to add another ESP-826681, and if you could tell me how, thank you.
Just flash the same sketch to multiple ESP's just make sure change the device name in sketch and they are unique. Good luck.
Hi Nasser, this is great! Thank you for this series of videos, very instructive and detailed.
HI THANKS or your project, its works prefect, my question is how can i add more relay in one board thanks
the only thing to add to "itisonlyadream" and "AltaPowerDog" comment is the code works flawless.. Thank you. Well done
wr Coyle Thank you for your feedback.
I was able to use this on my Sonoff devices. Thanks for sharing this info.
Very good video series and thanks to you, easily understood...I hope to control most of my home with these types of devices as I am disabled and getting worse by the day. It would make things so much easier :) TY
wizz thank you for your valuable feedback. Good luck with your projects.
dude, this is awesome. thanks for the videos! keep them coming.
Everything works like a charm.
Well done video.
ALBERTO MENENDEZ Thank you for your valuable feedback.
Wonderful ! 👏👏 I'll try it soon. Thanks !!
Hi thanks for the tutorial. I've had a problem working with the ESP8266 for weeks. I can get it to flash (IDE indicates it uploads and the blue light on the ESP flashes) but I never get it to blink.
My FDTI is identical to yours. My IDE is 1.8.3
My wiring is
FDTI ESP only while flashing
GND -> 2 6
VCC -> 7,3
TX -> 8
RX -> 1
4&5 are floating
I power up with pin 6 grounded to flash. After flashing I let pin 6 float.
I then pull out the FDTI and plug it back in. No blink
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}
I must be doing something stupid but i can't figure out what. Help please.
Phillip Kramer I had a similar issue with ESP-12E. I was able to flash the program successfully every time but ESP was not running my sketch.I also could not see anything in the Arduino IDE serial output. I download "ESPlorer" from esp8266.ru/esplorer/" URL and ran the "ESPlorer.bat" file. Once the program is launched select the baud rate and click connect and you should be able to see if it is getting reset.
In the serial output I saw, it was getting reset over and over again. I resolved the issue by replacing the better power source after flashing board with FDTI programmer. I did not have this issue when I used it with ESP-01. I hope this helps. Good luck
i'll try that. thanks
does it work with 3rd gen amazon dot
Thank you very much for your videos. However I don't know how the code work. Could you please have some explaination for the code?
Or how can I create a webserver button to press?
Thank you.
Awesome videos!
I'm quite a beginner and I feel like this stuff is way too advanced for me. I wish you could explain more about the connections between the devices. For instance, what GROUND means, or what TX/RX mean, and more stuff like that.
Thanks a lot!
Imri Barr I will try to cover basics as much as possible in my future tutorials. Thanks
Thanks you very much!
Do you know of a place I can learn the basics from so I could understand your videos?
Thanks again!
I got it to flash and Alexa to find the device but tell me demoswitch not responding.
Great script. instead of a relay contact closure command i am trying to send a pulse that will quickly turn led on then off instead of constant on. Can you help with this?
Checkout this video. I am doing this to open and close grage door.
ua-cam.com/video/sFJE_PsUlm8/v-deo.html
Is this not very costly, please add some prices attached to this nice work
Total cost of the components is under $5 dollars (not including the Echo Dot). Thank you for your suggestion. I will include the prices from now on.
Thank you very much for sharing your experience..
You welcome
Your tutorials are really nice . I am trying to do the same using nodemcu . Will the same code and set up work?
Yes, just select the correct board option in Arduino ide. Good luck
@@netmedias7657 thank you so much for the reply . I ll try and get back to you 🙂
is there any other smart switch we can spoof?
Thanks for the video!
Quick question, seems like ESP8266 board has two GPIO pins, so can those pins be used to control a relay? Could you make a video for that? Thanks!
byn1975 I already have tutorials on that. Watch my others videos.
I need some help. When ever I upload the info this error message happens
Arduino: 1.8.5 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\Owner\AppData\Local\Temp\arduino_cache_324118\core\core_esp8266_esp8266_generic_CpuFrequency_80,VTable_flash,ResetMethod_ck,CrystalFreq_26,FlashFreq_40,FlashMode_qio,FlashSize_512K0,led_2,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_054d06a9f42a9d9d7019ac7b0eee15c4.a
Sketch uses 247940 bytes (49%) of program storage space. Maximum is 499696 bytes.
Global variables use 28028 bytes (34%) of dynamic memory, leaving 53892 bytes for local variables. Maximum is 81920 bytes.
Uploading 252080 bytes from C:\Users\Owner\AppData\Local\Temp\arduino_build_924689/Blink.ino.bin to flash at 0x00000000
.................error: failed reading byte
warning: espcomm_send_command: can't receive command response header
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: didn't receive command response
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
You need to put esp in flash mode on boot up.
Is it possible to add multiple states to one device? For example, instead of just having a light bulb to turn on and off, it will instead have states that declare it to be on, on for 5 seconds, on for 10 seconds, off, etc.
patrick Yes, but you will need to create a custom Alexa skill to handle it. You can use this sketch. You can watch my tutorial on how to create Alexa skill without any coding.
ua-cam.com/video/OrhkuJiahDs/v-deo.html
Good luck with your project.
I am a bit confused with the following:
12:06-13:14 - TO FLASH YOU ASKED TO CONNECT GPIO0 TO GND. but at 16:28 - you re plugged the board without disconnecting GPIO0 wire and the blue led was blinking after flashing the blink code on to esp8266.
At 18:43 - 19:40 - you uploaded the code without connecting the GPIO0 pin.
I was able to flash the code, but after reconnecting the power cable with gpio0 wire removed, the led is not blinking for "blink" code example. Do you have any idea what I have missed?
Sunil Datta you only need to connect gpio0 to put the esp in flash mode it can be removed once you power on the board.
It should work once you successfully flash it with your sketch and and should not reconnect the gpio0 unless you want to flash it again. Good luck.
Thanks for your wonderful video. I am not new to ESP as I have done quite a few working projects on this and ESP8266-12 .Thus your project that I tried through Alexa responds perfectly. The built in blue LED works perfectly for ESP8266 on and off on voice commands as desired but a typical problem! While the output at GPIO2 is taken with a pullup resistor and feeding an opto isolated triac (the very arrangement does work with other programs) this output at GPIO2 fails to go low and high, though the blue builtin LED works exactly as desired. Removing the pullup (1K) from GPIO2 Alexa does not discover the device. Then how to use the output to drive a relay? Please note GPIO0,Rx,Tx all are kept open circuited. Shall be grateful if you could provide a solution.
I think I have to correct the program (const int relayPin = BUILTIN_LED;) to (const int relayPin = pinMode 2;) please confirm
Patnaik UC, What type (brand and part number) of optocoupler you are using? How are you hooking it up? Does the relay work without the optocoupler? What is the relay minimum operating voltage? Are you using a separate power source for relay?
Great concise video. Is it normal for it to show in the Alexa app that "the device is unresponsive"?
Mike Ponte You don't need an app for this solution.
Thanks for your tutorial, it is very informative, I see that the devices that your
sketch creates are registered by ALEXA as WeMo Belkin device, but when I
try to activate the Skill Belkin asks me for a MAC ADDRESS from a
"real" device of BELKIN and not I have it, the question is, should it work, should the sketch have the BELKIN device simulation?
Virgilio Aray Arteaga You do not need and app for this solution. Just flash the sketch and give a discovery command and enjoy.
Could i use only A Arduino uno a ESP8266 and all drivers
Yes you can. You will need to modify the code slightly.
@@netmedias7657 How it would be Pls Help
Do you know of any way to do something similar, but to convey either arbitrary words to my sketch, or at least a number? For example, at a minimum, to be able to simulate a dimmer, and have levels 1-100 or 1-255 would be useful for more than just dimming lights - An Arduino sketch could use that information to set a volume control, a timer, the channel on a TV, etc.. Even some way to use Alexa as a generic speech to text, and just send the text string to the ESP would be awesome so I could decode the syntax and do custom actions in the sketch would be perfect, but all I've found so far are demo on/off sketches.. Any ideas?
Steve Jones You need to create a Alexa skill and can use a IFTTT template for Google Home. You can watch my following videos to get an idea. I am passing temperature and humidify data and remote comands. Good Luck.
Alexa:
ua-cam.com/video/DYBOoJf8IVs/v-deo.html
Google Home:
ua-cam.com/video/1X6FeuUiMUY/v-deo.html
Hello, nice tutorial. Is it required to enable any smart home skill on Alexa app to discover the devices?
Md Khairul Alam Taifur No you don't need anything else.
Can Alexa control Linear Actuator?
Hi nassir loved the video, i am a beginner i was wondering if you could make a video on how to attach this circuit to pre-exsisting home switches we have so we can control those switches with alexa.
Erick Rajan It is coming soon. Stay tuned.
Netmedias Thanks
how about if I need to connect it with apple homekit instead of Alexa is that the same way to code it.
+sawadetachat puaktes Same sketch will not work for homekit. You need a different program for it. Take a look at this project.
github.com/HomeACcessoryKid/ESP8266-HomeKit
Nassir, my ESP8266 01 is connected to my Wi-Fi, I can see it on my router, but why Alexa won't discover it.Thank you so much for your tutorials.
JJT23 Please look at this solution.
github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/commit/a683a62c940d99dc743ee7cdde40552da87d8f2e
nice job i understand your tutorial very easy, and i would like to know that i like to operate 4 relay switch. if is possible
Agasthii Bala murali Watch this tutorial for multiple relay. ua-cam.com/video/OC6QSXzkQU8/v-deo.html
Wich skill do I have to enable in order to make this work?... I can't find any new device
You do not need a skill for this setup.
All wires were properly connected, but i got the following error. And after 10 seconds, the chip on the ESP8266 started smoking, sparked and blew itself completely off the pcb. Any ideas? Hahaha
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Christopher Rowe You must have bought your ESP from Ethan Hunt (MI). They're known to be self-destructive. :-)
All jokes aside. I am sorry for your loss. -:)
Best way to avoid this kind of mishap in the future: If you're not sure about the hookup, put your index finger on top of the ESP before you power it on. If it gets too hot to touch, then something is wrong. This simple method will save you from frying any more chips. I hope this helps.
Nice video! Do I have to changethe code (beside device name) to run multiple esp8266 on the same network?
Lennart Krueger You can watch my tutorial on how to control multiple devices.
ua-cam.com/video/OC6QSXzkQU8/v-deo.html
Thank you
Ok, thank you very much.
Thank you
Hi Bro! Thats really awesome Project, but i can get that clearly. So can you make Description link of that?
Thanks, I will post the text tutorial link soon.
After replugging the controller, the Wifi always failed to connect. Before replugging, the LED went on and after maybe 2 seconds directly off again. Any suggestions?
Please use a better power source.
I am not hearing a very loud audio for this video. I played tutorial 1 and 3 and they were ok volume. Maybe need to re-post video.
However, videos are excellent; thank you.
Awesome..can we flash same firmware to Sonoff also?
Yes
Hi Friend!! Great tutorial, I also like all the other videos on your channel. I tried this sketch on my ESP-01S, and once I changed the GPIO pin output on it to "2", it worked fine; but im having a problem. The board seems to "disconnect" from de network afeter about 5 seconds after a command is sent, and it seems to reebot. Por example: I turn power the board, it inmediatly started in "On" state (I was able to check that on the Alexa App, and I can see the led on), then I command it to turn off, and it turns off, but 4 o 5 seconds later, the board changes state again to "on" (Since I can see the led on again), and I get a message on the alexa app that states that "the device is not responding". Do you happen to know whats going on? Is the any diferrence in a sketch for the ESP-01 and the ESP-01S? Regards!
Tony Vega Use a better power source. May be you esp is rebooting. I had a similar issue. Good luck.
I have exactly the same problem. Was there a solution to this problem ?
@@billgaytes6845 Just buy a SONOFF, LOL, its simply more reliable and not that expensive
Thanks for a great video! I got the same kit and plugged it all in and it flashed ok. It has been discovered but the off and on does not happen. The light does not change after giving the command :-( i looked at the code and wondered if the "const int relayPin = 16" part was correct?
Cheers!
Julian Wharton You need to use the GPIO2 on ESP8266 ESP-01.
"const int relayPin = 2;"
Aha! perfect. Working now. Looks like the on an off is reversed. Used Looks like Patnaik also had the same issues but i reversed the HIGH and LOW and now its all good. Thanks your your help! :-)
How did you reverse the HIGH and LOW? This is how I did it and it works for me.
if(request.indexOf("1") > 0) {
Serial.println("Got Turn on request");
//turnOnRelay();
digitalWrite(relayPin, LOW);
}
if(request.indexOf("0") > 0) {
Serial.println("Got Turn off request");
//turnOffRelay();
digitalWrite(relayPin, HIGH);
}
Arduino IDE was working fine 3 month back, after updating board and library IDE stop working. Please help how to compile code for ESP 8166 with updated IDE.
Uninstall and then reinstall the lib. If still does not work try reinstalling ide.
This project
R only use alexa or nodmcu
Internet use
Yes or no
Pls tall me
chiranjit karmakar You can build this project with NodeMcu and ESP8266. You need Alexa echo or dot to control the relay.
Internet access is required for this project. Thanks
Hello - i known that this is an old Tutorial, but i have some of these ESP8266-01 Boards here and Wanted Goodreads use them for switching one Relay with each over Alexa. For this usage, Second Sketch, with Changing the Pin from LED to GPIO looks nice, but when i boot this and Alexa discovered and switched it, it goes all the Time back go On-State. When i switch on - no Change visible, when i switch off the LED goes off and back on.
Can you help me get this running ? Thanks
Steve Hübler Is the GPIO going in to high state? Try to flash following sketch and control it from your browser let me know if you have the same issue.Using your browser enter following URL to turn on and off and share your result.
To turn on: YOUR_IP/switch?state=1
To turn off: YOUR_IP/switch?state=0
github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/blob/master/ESP8266_Alexa_Automation_with_URL.ino
Netmedias thanks for your answer, until january 2nd i am not at Home, but then i will try this and keep you informed - happy new year for you
Hello - now, with the same Hardware like last week, it is not possible to flash the ESP - all the time i get this answer: Uploading 254416 bytes from C:\Users\Steve\AppData\Local\Temp\arduino_build_363834/AdvancedWebServer.ino.bin to flash at 0x00000000
.....................................warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
error: espcomm_upload_mem failed
But if I have to drive from GPIO2 and not the BUILTIN_LED, I have to modify your program one line only from (const int relayPin = BUILTIN_LED;) to (const int relayPin = 2;).Please confirm this much
Patnaik UC I had similar issues with ESP12 while using 3.3v power source. I can see on/off commands executing properly, but due to low power, mechanical relay does not turn on. I had to use better power sources to get relay working. Try to use two different power sources. Use 3.3v for ESP and 5v for relay.
Watch my tutorial #4 where I am doing this and controlling two (solid sate and manual) relays.
The problem is solved.As I said before I do not use relays but triac and opto instead. Now it works perfect with output from GPIO2
Patnaik UC I am glad it is working for you. Thank you for sharing the solution for everyone else's benefits.
Once again thanks a lot. I just changed the program output pin and reversed the on /off logic ,everything works fine
After flashing the esp8266 I can see it on the network but alexa does not discover any devices?
Simon Kitchener Try this colution.
github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/commit/a683a62c940d99dc743ee7cdde40552da87d8f2e
Hi, which closed server, did esp8266 used to monitor..?
Prasad r.s I am not sure what is your question?
Sorry, I mean that which cloud services it is using, and what is the flow between Alexa an esp8266, thanks.
Did any one created Alexa skill for the same, I don;t have any wemo device. If i understand correctly this will work only if you have enabled wemo skill.
sujithnarayanannair You don't need to enable any skills. You need to enter your ssid and password and flash the sketch and have Alexa echo or dot discover the device on your network.
Netmedias thanks for the swift response.
I have tried the same but Alexa can’t discover the same, I can see IP for ESP, and can ping also. As I’m the starter in this don’t know the debugging. Any clue will really appreciated
Hi Nasser, I have an issue with flashing sketches onto the ESP, this message keeps coming up, except once, which I am not sure what happened, that it worked, but never again...
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
I get this error when ESP is not in flash mode. Make sure you ground your GPIO0 before powering up you ESP board.
alexa discovery not see demo switch on network?? how to bind that, i use openhab system
Maksure you ssid and password a correct. It should connect automatically.
@@netmedias7657 hey... Alexa isn't discovering the ESP, in the video after u flash the ESP the blue led is on, in my case it's off, it blink for couple of times after the device is on, but then off. is this normal?
i was sure about the SSID and pass, but yet can't find it on my network via Fing
Its really a great work and dedicated effort to teach the people like us. Please send me framework code for ESP8266 as i didn't see the link. Thanks
It is on GitHub. github.com/nassir-malik/IOT-ESP8266-Alexa_Automation
@@netmedias7657 Thanks a lot, Now my ESP8266 01 is connected to my Wi-Fi, I can see it on my router, but why Alexa won't discover it. i can see MAC address and IP address of ESP8266 01. Please reply . Thank you so much for your tutorials.
Hello Nassir, Thats a great tutorial but the l for ESP8266 libraries doen't work for me, Arduino gives a error: download error on Board Manager in IDE. i search around found some stable json url doest work, Then how to add libraries ?
John Smith you can manually download it and copy it the the Arduino libraries folder.
Hi Nassir, Thanks for the quick reply, great channel, great videos, and best tutorials.
Will try to search and download libraries manually...... if you can help with that like links to download and tutorial how and where to copy the library files will be more helpful.....Thanks for your help....!
At 12:43 you said ground. You should have said *GPIO0* Also, you never used the *White* wire. What gives!?
is there any way to customize the library or arduino code so that I can replace the "on" and "off" functions with "open" and "close". For example, instead of "Alexa, turn on door." its "Alexa, open door."
patrick No need to modify the code. You can create a custom routine in Alexa mobile app and map you device to it. It is very easy to do. Good luck
Oh my goodness, I spend hours taking apart the library trying to find the solution and turns out it was so simple! Thank you so much, you easily earned a new subscriber.
patrick Thank you.
which cloud services it is using, and what is the flow between Alexa an esp8266, thanks.
Prasad r.s It is a spoofed Wemo firmware. You don't need to do anything else other that connect it to you home wifi router. It need Alexa Echo or Dot on the same network for it to work. Good luck.
Netmedias thanks, did this same procedure applicable for Google home devices..?
No. You need to create an agent for that. Watch my following tutorials.
ua-cam.com/video/c4CC1dMFg78/v-deo.html
ua-cam.com/video/Uvg0ruRkKgY/v-deo.html
Netmedias thanks..
Newbie here. I have the same kit with the ESP8266 ESP-01, same FT232RL, jumper wires the same color as you and plugged in the same way you did, I used the same GitHub code, Alexa discovers the device but after I command Alexa to turn DemoSwitch On or Off and Alexa answers "OK" nothing happens, the blue LED doesn't change to On. I don't know what I'm doing wrong. Can you please help me?
JJT23 TRD Change the following line and flash your ESP again.
Change following line
const int relayPin = 16;
To following line
const int relayPin = LED_BUILTIN; //GPIO1
Thank you, it's working now.I really love your tutorials. Keep up the great work!
Hi Nasser, I had the same problem, but now it is working in reverse. It's on by default, and when I say to Alexa to turn on, it turns it off. Where did I get the logic mixed up?
Ali Tamaddon look for "digitalWrite (relayPin, HIGH)" and digitalWrite (relayPin, LOW)" and swap them.
Will it work with Smart life+ app??
No, but you can control it from Alexa app.
this system works without the internet?
Ronak Javia It will not work without the internet. If you want to make it work without the internet you will need to develope your own solution for language processing which is much more complex. There are few open source language toolkits available.
It is very nice video I had already setup openhan, mqtt. But I just stuck how to how integrate openhab with esp2866. If you can help on this. Much appreciated.AA
Are you planning to do one with Raspberry pi and relays?
Nathan, yes i will be publishing pi 3 and Alexa automation project slimier to this one, I am working on it. Thanks
Netmedias thank you
Yes, I will try to post the video in next few days. Thanks
You are welcome
Hello can i use echo dot 2 for this project
Guru Aswath Gurunathan Yes.
You told that rasbian jessie with pixel os but now they have updated to new os called raspbian stretch with desktop so how can I change the ssh file and config file as you said in your video
Will the code also work for Google home mini?
Nathan Mendez No, watch my following tutorials they works with Google Home and mini. Good luck.
ua-cam.com/video/Uvg0ruRkKgY/v-deo.html
ua-cam.com/video/c4CC1dMFg78/v-deo.html
Im doing something wrong, cant seem to have alexa find any devices, i cant find the board connected to my router list either.
Juan Rodriguez Please make sure your are commenting to a 2.4 Ghz wifi router and your ssid and password are correct. If everything looks good and still having issue try to power cycle verything. Good luck.
Netmedias i was able to get connected to my network, alexa was able to discover the device, when i give alexa command to turn device on, the board’s blue led blinks but does not stay on solid.
Was working, now I get Device unresponsive from Alexa.
I am having some trouble with this. My arduino IDE doesnt seem to acknowledge the com port when i plug in the usb to TTL adapter. what should i do to fix this?
Ali Kajani You need to install appropriate driver for your adapter.
i did, i installed the silicon labs vcp driver
My adapter looks like this
www.google.com.pk/search?q=usb+to+ttl+adapter&rlz=1C5CHFA_enPK752PK753&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjh9uHIxqvVAhWD0FQKHTGmBxoQ_AUICigB&biw=1258&bih=631#imgrc=ht8Ut8fFibrdFM:
Make sure that that "Ports->USB Serial Port" is listed under device manager. It if is not listed, that means driver is not installed properly. After installing the driver you need to reboot the PC.
Okay i finally got my laptop to recognise the usb serial, however i am still unable to upload my code. i get the following error:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
You may have to do another video with better audio, this one is incredibly low. This is where the detailed information is, we don't want to miss it because of missing audio.
Can you please tell me time on the video where you have the audio issue. I skip through it and can't find the place.
I was just stating that in this video, it's so much lower than the first...I had to turn everything up just to hear it, even then it was still low.
Is this better? ua-cam.com/video/0N4k02yn19s/v-deo.html
Way better. Thanks.
Yes, much better!
The audio volume level is too LOW in this video.
VERY GOOD VIDEO AND INFORMATION
Can you please tell me time on the video where you have the audio issue. I skip through it and can't find the place.
All of the audio is low. I have to turn my computer volume full up to be able to hear the audio.
Rick
Is this better? ua-cam.com/video/0N4k02yn19s/v-deo.html
Would this work with a nodemcu?
Jorge Ramirez yes it will.
thanks for the reply, i tried it and it works, i just got bad relays from amazon so im sending them back :(
Nasir, Great tut, after uploading the program and restarting the board the board when I ask alexa to discover devices, it says no smart home devices found. When I look into my router page to see the number of devices connected. I do see the esp-01 connected to my network. But alexa is not able to discover the devices. Would you know what the issue could be ?
What do you see in Arduino serial output when you give discover command?
I don't see anything in my serial monitor. I tried to restart the esp-01 still don't see anything in the serial monitor, but in my router admin page I see esp-01 is connected to my network
You need to make sure you are connecting it to the same router as your echo or dot is connected. Also ESP only works with 2.4 Ghz router.
Yes, esp-01 is connected to the same router as my echo dot. And I use the TL-WR740N Wireless Router. And I believe it is a 2.4 GHz router. I have been trying look around the internet for a solution too. But unable to find anything. Could there be anything else Thanks again.
Ok, try this.
1). flash your ESP with following sketch.
github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/blob/master/ESP8266_Alexa_Automation_with_URL.ino
2).Using your browser enter following URL to turn on and off and share your result.
To turn on: YOUR_IP/switch?state=1
To turn off: YOUR_IP/switch?state=0
At 2:04, what URL did you type in?
I answered my own question. In your description, it looks like you pasted it. However, UA-cam made it a link to where we are on able to copy or read the URL.
arduino.esp8266.com/stable/package_esp8266com_index.json
Yes. arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json
when i ask alexa to find devices, the arduino output show some packet like:
Received packet of size 101
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: upnp:rootdevice
Received packet of size 125
From 192.168.100.3, port 52928
Request:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:dial-multiscreen-org:service:dial:1
But the alexa can't find any new device
Find and change this line
if(request.indexOf('M-SEARCH') > 0) {
To this
if(request.indexOf('M-SEARCH') >= 0) {
i changed this line, but i get the same output from arduino.
the condicion from the line "if(request.indexOf('M-SEARCH') >= 0) {" is accomplish
but the second condicion "if(request.indexOf("urn:Belkin:device:**") > 0) {" isn't accomplish
My modem UPnP is enable.
That's all arduino receive from alexa
Received packet of size 94
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: ssdp:all
Received packet of size 101
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: upnp:rootdevice
Received packet of size 94
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: ssdp:all
Received packet of size 101
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: upnp:rootdevice
Received packet of size 94
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: ssdp:all
Received packet of size 101
From 192.168.100.4, port 50000
Request:
M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
MX: 3
ST: upnp:rootdevice
Can any one tell me how to remove old sketch from esp
New sketch will overwrite the old one.
good video, very low volume.
ok
Now I get this" fatal error: queue.h: No such file or directory
#include "
laf hunting, Are you using the code from GitHub? Ignore the mediafire source.
yes
So do I use this one? "github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/commit/63458441b9c62678dcf872938c41b52ef5f5ed67#diff-9dd24b61692decd104d8978374897565"
Volume all the way up and I still can't barely hear you.
Better Audion -->ua-cam.com/video/0N4k02yn19s/v-deo.html
Nice try hiding SSID and Password. SSID: Suddenlink.net-****
You are proof of it that I did a bad job hiding it :-)
Does this work with an amazon fire tv?
+Travis Micolichek Yes, it works with fire tv as long as you have at least one Amazon Dot or Echo on the same network. I tested it and it works without any issues. IT stops working if I unplug the Amazon Dot. It does not work by itself. I hope this helps.
IT does thank you! Is there a way that i can code echo to respond to the word "OPEN" and "CLOSE" instead of "on" and "off"
Well thank you very much. I have 10 devices that are running with my echo. one of them is my garage door. There is one problem and that is that I cant figure out how to get the echo to respond to "Open,Close" commands. I can say "Garage door on" and "Garage door off" works fine. If you could help me that would be great. Thanks Travis
Well thank you very much. I have 10 devices that are running with my echo. one of them is my garage door. There is one problem and that is that I cant figure out how to get the echo to respond to "Open,Close" commands. I can say "Garage door on" and "Garage door off" works fine. If you could help me that would be great.