ESP8366 Arduino project with Alexa | ESP8266 ESP-12E | Tutorial # 4
HTML-код
- Опубликовано: 7 авг 2024
- DIY IOT Home Automation with Alexa. This tutorials shows you, how to control multiple devices with ESP8266 ESP-12E board.
Download the code from GitHub.
Project Source Code
github.com/nassir-malik/IOT-E...
How to create ESP8266 ESP-12 E jig tutorial
• IOT Home Automation | ...
Parts ordered from Ebay.
Switchmate: $10.00
ESP8266 E-12 : $2.00
Wires ordered from Banggood.com
DANIU 250M 8-Wire : $6.69
Original post: github.com/kakopappa/arduino-... Наука
Thank you very much for this video, it was wonderful . This worked great in my setup, and I was up and running in no time. I have another application, open and close the garage door by hacking into the push button. I want to use this to flip a relay for about 1/4 of a second for the garage door button press. I can just use this code straight out of the box and get rid of the second callback, but I want to use two words "garage door" and instead of "on/off" I want it to activate with "open/close". Sure, I can say "Alexa, turn garage on" and it will do what I want, but it is more intuitive to say "alexa garage door close" or "Alexa, close the garage door" . Since the garage door will work the same either way, I can just use the same code in each sub. So I have 2 questions:
1) Can I use "Garage door" in place of *kitchen, and what is the syntax? Would "upnpBroadcastResponder.addDevice(*garage door);" work?
2) How do I change the "on/off" with "open/close" in your code? I see it may be in the Switch.ccp?
Thank you. Use following tutorial to do that.
ruclips.net/video/sFJE_PsUlm8/видео.html
Top notch man. Love it. Watched like 4 of your videos in a row now lol
minifig04 Thank you for your valuable feedback. Stay tuned for more....
Great tutorial. Nice, clear and concise.
I learned a lot from it. Thank you!
Cheers!
Awesome tutorial! Very well explained, easy to follow. Thanks! this got me started on my IoT journey
Roberto Salama thank you.
Great job man, really really happy to see that. A time along i was looking about some good tutorials this is perfect SHOT 👍👍👌👌
Thank you.
Just watched this in jan 2020
Well done sir, can honestly say that this channel in one of my favourites keep up the good work
Thank you
Good tutorial, really need to mark those pins so as to make clearer the connections
Perfect! Great Job!!
Great tutorial, very clean and clear
Thanks
Amir Abidi Tanks.
You are the BEST Nassir
Kais Chaabane Thank you.
Hi Nassir. Outstanding job and very clear explanations. I am curious if you have added your circuit behind a switch in a wall - does the box you use get too hot? Thanks!!
Excellent... Excellent... Very clear and accurate. I was able to quickly use this training to connect the DOT and control my X10 house lights. Thank you very very very much for keeping me at home and off the streets! LZH
Thank you
None LZHenry Will you have to ask Alexa to discover devices everytime it starts or is it only an initial step
Yes and NO... still having some issues. I have 12 custom devices connected. Alexa will discover devices... sometimes all 12 with one DISCOVER and sometimes need to ask several times. Sometimes Alexa APP has multiple definitions of devices in the IOS APP... Alexa stops recognizing devices. Have to remove devices. Then DISCOVER again. Sometimes Alexa stops controlling devices... have not found a reason. I like what it does, but is still a hobby device connection. LZH
Lovely great job
Great video thanks
Very good quality! Thx
Adam Paquette Thanks
Brilliant tutorials, I have built 3 of you projects and all of them have worked perfectly. I will certainly be following your future tutorials. How about an ESP8266 tutorial for monitoring remote battery installations such as solar power or even for my car to keep me informed of the battery state. Thanks for such an interesting insight into IOT, keep up the good work.
Anthony Gregson Thank you for valuable feedback. I put your idea on list and looking into it.
Once again a fantastic tutorial. I am still a beginner with Alexa and home automation. Why does one need to program an Alexa skill at all if we can automate the whole house this way? Really excited to try some of this.
Thank You... You are Freaking GREAT!!!
just a simple question... is there a way to use a esp-01 as a Alexa sensor … I would like to use an esp-01 in deep sleep mode or low power mode until my postman opens my mailbox then have Alexa announce the mailbox was opened or to announce a door opened or to start a routine
Thanks for the tutorial. It works fine for me.
Can I control the relays from a web browser by typing the IP Address of the ESP8266?
Good job! You did not say anything about the Alexa box, its connection or how it communicates with the controller- how far can it be located before it loses contact?
Loaded this onto a sonoff s20 changed relypin and it works just need to get manual button to work
Hi fantastic job and thank you for your time. It's also superb that you put time and effort in helping bill and particularly the needy ones. Thumb up and very well done.
Excuse my ignorance in this domain I am a newbie. I managed to follow all the steps carefully. I couldn't miss any because you were so clear. However when it comes to Alexa device it showed up on the screen out of the blue!!!! It was frustrating. How did you connect it. Your reply is much appreciated
Many thx. Sol
Ultimate TUT, rare one that explicitly explains every detail. I did a project with NodeMCU that would give me temp and humidity reading on my HA running on Rpi 3. Now I have a couple of NodeMCU lying with me and I need to know can we do the same with NodeMCU as well if yes can you also create a small quite video to achieve the same with nodemcu, as nodemcu is very easy to flash. Once again ultimate video, subscribed. One more thing the mech relay you used is a one channel relay, if you do decide to do a video with nodemcu please use 3-4 channel relay with nodemcu to show us how more than one equipment can be controlled ..... thanks
Sammy Singh Thanks for your feedback. All tutorials are in pipeline as you suggested in your comments.
is it possible to send a command from another esp8266 and control the relays, example i have the alexa function on 1 esp8266 in the kitchen and i have another esp8266 with a button, on button press the gpio pin 16 is set to HIGH and on another click it sets to LOW, also while being able to say "Alexa turn on office lights".... i guess it would be close to a wireless switch created out of an esp8266.... i hope my question isnt confusing.... thanks for any help
Yo bro, i think you are going great, you explain the things very good and you have great ideas, you have a very cool project to do, and very work
Today im starting to put all off your tutorials in practic to my Home too
I really like the voice control, but i want to be able to control all of the things by the wifi via phone app (iOS or android, just a simple program) or via web interface, and all mannualy
I just want to Know if you think that is too hard to be able to control all the things manually or remotly
Keep going with your channel bro !!
Please look at my other videos. That is what I am trying to do.
ruclips.net/user/edit?o=U&video_id=oGIScmcGFB8
Supper video sir like this project
Thank you for your feedback.
Good Job
I dnt get it how can amazon alexa directly talk with esp8266 and will able to give command can u plzz described this in detail its really help full as i told u that am doing my clg project so ur videos is really reference base for my project
can we add WiFi + MQTT Manager to the code so that we don't need to enter the credentials while uploading the code. Can you show us integration of this with HA. Thank you
Very good video and explanation with wiring top marks but I would not use the Chinese solid-state relay they are very unreliable and not made of high-quality parts I had one catch fire running a kettle but thanks for the video well done
Your solution to interface with the Echo is superb (thank you and kakopappa for your brilliant corporation). Is it possible to use this approach to emulate IR TV remote. I am hoping for a tutorial by you to do that , in the meantime I will appreciate your input on how to do it ( If possible)
Samir Arishy Please watch my tutorial controlling Sony tv. ruclips.net/video/1X6FeuUiMUY/видео.html
Great! How to control multiple ESP modules?
Good tutorial. The relay switches on and ip address shown. Belkin socket id is showing. Resets every 3 min and alexa discovered nothing. Was using this method for 2 years. But now it is not working. Kindly help.
Hi Nassir! is there a way to add mqtt to this for use with home assistant? or is there already code out there enabling multiple lights with ESP8266 and home assistant?
thanks!
Yes, very easy to add, watch my tutorial on it. ruclips.net/video/MUECb9mxpPA/видео.html
super !!!!
Hi, Great work there, I got it working, I want to access the switch state using the Ms Edge or chrome, what would be the link ? when I navigate to the assigned Ip address to the ESP, it says you should ask alexa to discover devices. Is there a way we can access an url and turn it on and off.
Ameen Khan I am planning to update the script to add this functionality, so stay tuned!
I love your videos and you do a good job at showing how things are done. However, if you don't mind a little constructive criticism, I would tell you to work on things such as WHY. Why do we need the TX and RX pins? What are the nonobservable differences between solid state relays and mechanical relays? Adding that "why" aspect enhances the educative aspect of your videos more. It will teach your audience more and you'll build up a greater audience. Keep up the good work!
Sure, I will this in mind for future videos. Thanks
I would like to know how to connect several wifi modules in an arduino, or PI3 central, several relays with built-in wifi to be able to control a whole house wirelessly, or some think close to that.
Vinicius tutorial in progress.
Tried this and it worked great. At first I was able to control the "plug" (office lights) via Alexa. The problem I keep getting is that Alexa appears to lose connection and reports "device unresponsive". Has anyone had this or got a solution for it. I am running the ESP8266 board from a 2A 3V3 power supply so it is definitely not a PSU issue.
Any chance you could do this tutorial with one of the ESP8266 chips that has the FTDi usb board integrated, I know its not too much different but it would make it clearer to a beginner like myself, thank you.
moeshickenyay I will be doing a similer tutorial with NodeMcu soon. Thanks for your comments.
I am a bit confused with the relays, could I use that signal in conjuction with other things, want to have my led lights simulate a sunrise, not sure of the best aproach
+Gavin Walsh Yes you can control whatever you connect to relays. Both relays can control electronics up to 250 Volts. Smaller LEDs can be control with GPIO directly.
Hi..how to change brightness of lights?
You should search on github for TASMOTO. This allows also Alexa integration due to a HUE emulation. Benefit of this repository is a much more rich full interface for the wemos.
+Stefan Bode thank you for your feedback. I will definitely give it a try.
Have you configured any setting for amzon alexa that it can be talk with esp8266 or after flashing and uploading u can juz connect the alexa tell him to discover device it can be ready to talk with esp8266 without any configuration
Aasif Tadavi Alexa and ESP8266 is connected to same network. Alexa (Dot) sends a UDP broadcast on your network to discover devices. and you can see that in ESP serial monitor. Please look at my tutorial #1 (ruclips.net/video/szycTtWFv4o/видео.html) and # 2 (ruclips.net/video/GVVo1U5EHhk/видео.html) for detail step by step process to install and setup ESP to work with Alexa. It is very easy.
Hi Netmedias, first of all congratulate you for those great tutorials, I'm Colombian and I follow you. on the other hand I wanted to ask you about an error that I have, the esp is flashed but I do not see in the com window that it connects to the wifi
fidel castillo It could be that it is crashing. Try to use a different power supply than your USB to TTL converter. If it still doesn't work. Try to download following tool, it worked for me when my ESP8266 was crashing and I was unable to see the serial output in Arduino IDE. Good luck.
esp8266.ru/esplorer/
Thanks much, it is working!
Sir as i told u earlier am working on my clg project in which i used arduino mega and esp8266 i want to controll 2 8 channel relay so i use arduinoega for this job bt the problem is i dnt get it how can i connect esp8266 with arduino mega for more serial pins am tired from searching a solution for it sir would you plzz help me
Nice
Many people like to control the brightness of their lights, there are modules available that produce a zero crossing signal & have 1 or more TRIACs to operate lights, an ESP8266 could connect to such a module.
Is that a project you could publish in the future?
Mr. Cupcake thank you for your feedback. I have this projects on the list.
Hi, Thanks for the tutorial. Everything worked fine until 27:20 on the video timeline, but alexa is unable to find device. any suggestion to solve the problem
check to see if port 1900 is open in your router..fixed my problem
@Vamsidhar
Did you find your solution ?
salut a toi et merci pour c'est tuto mais j ai un problème ça ne reste pas connecter ça ce déconnecte a bout de 4 seconde a tu une solution et ca me fait pareil pour le premier tuto merci
ok thanks i have made this and it works great. i have change officelight to kettle, and again it works, how can i add a timer to turn of relay 1 after 4mins without saying alexa kettle off, so it resets to off
nigel Holland I will modify the code and try to upload it this weekend. Stay tuned.
Netmedias thankyou sounds good
Could I also ask if you could put a over ride button. As the wife don't like Alexa. But she can press a button on. And the timer will reset
Thank you nigel
Can we use 2 channel relay instead of using solid state relay?
And also can another GPIO pins are used to connect other devices. If yes what changed to be done in code. Can you plz help me out with this thing?
Yes, No code change is required for 2 channel relay. Good luck.
Excelent tutorials, im from colombia and i hope to explain myself well. Can you make a video of a project like this wich we can control all relays with only one comand, turn on or off all home lights witht only one comand ? Thank you!
Johan Rojas Use Alexa routines from mobile app and control multiple devices with single command. No coding required.
You mentioned using the ESP 8266 12 E development board as a way to skip the soldering. How do you set this up with this?
Will the software be the same?
Do you still need the FT232RL FTDI?
I am Quadriplegic so I am not able to do any of this but will be instructing somebody to do it for me. So, soldering might be difficult.
James Chapman simply flash the same sketch to NodeMcu and Connect the relays to same GPIOs. Make sure look up the NodeMcu pinout diagram since pin numbering on board and GPIO number is different.
You don't need FTDI converter. Good Luck.
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.
+ Travis Micolichek You don't need to change the code for open/close commands. You can use open/close command instead of on/off but alexa is picky about what you name your device. I tried "Alexa, open garage" and it works fine.
Look at the following examples.
"master":51002 | "Alexa, open master" (does not work)
"master bed room":51002 | "Alexa, open master bed room" (works fine)
So change your device name that works with open/close. I tried
AAH! Guess Alexa is pretty picky. I said Alexa garage door open and it didn't work, but then I said Alexa Open garage door and boom it opened. Thanks for the direction.
hello to you and thank you for it's tutorial but I have a problem it does not remain connect this disconnects a 4 seconds to a solution and it makes me the same for the first tutorial thank you
Try to use separate power supply for your relay and test it. I was having issue because inadequate power supply and my ESP kept rebooting.
Awesome Project.
Sir, can you please add Capacitive Touch Switch option to the project so one can operate the devices either with voice commands or touch with switching status update.
Looking forward to a positive response
I have your idea on the to do list thank you for your suggestion.
@@netmedias7657 Any news about ? I love your project, but it will be wonderfull with add a push button to work togeter vocal command. may the force be with you!
Please produce the same multiple load operation with google home assistance as simple as alexa. The one produced in tutorial #5 is single load and too cumbersome.
Patnaik UC I am planning to do a video to control multiple devices soon.
Is the USB to TTL converter necessary if you are using a ESP8266 development board?
No.
for people who suffers connection failed after uploading the sketch with nodemcu v.3 ch340 even the uploading process is succeed, you should press flash button before upload the code to board.
Can we use it with wemo app
Superb Tutorials! Can you point me to where you buy all the components for the project so cheap? Thanks a lot!
Siddharth Sudheer Here are my sources for parts.
ebay.com (cheapest but takes 3 weeks or more for shipping)
miniinthebox.com
aliexpress.com
banggood.com
Amazon (Expensive but takes few days for shipping)
Thank you for your prompt response! :)
I need help my dad and i want to make a Smart System for the living room and i have an NodeMCU ESP8266 With the Wlan Chip and Micro USB Port on it allready like u have shown in the Beginning so i wonder how to connect those to the Relays and the Breadbord
Pls Reply thx
NodeMCU ESP8266 tutorial in progress. Stay tuned.
THANKS MAN AWESOME :D
Thanks for the video. Do you have something similar for Google home?
Try this ruclips.net/video/c4CC1dMFg78/видео.html
Device are unresponsive now after using it a year now. Tried reprograming again the ESP, still not connecting...
chksum 0x2d
csum 0x2d
v09f0c112
~ld
Connecting to WiFi
Connecting ...............
Connection failed.
I want to connect esp8266 with arduino mega so it can oprate on ur git hub programmes you used in alexa project
+Aasif Tadavi I will post a tutorial soon on how to connect ESP8266 with Arduino.
Can amazon echo by Goole home mini
Please help me, I uploaded code in nodemcu 12E and I can see its connected to wifi, I am using Alexa echo plus to discover device, but it not discovering device.
Try following solution. Let me know if this works.
Modify "Switch.cpp" as follow.
Change this line
"USN: uuid:" + persistent_uuid + "::urn:Belkin:device:**
"
To this
"USN: uuid:" + persistent_uuid + "::upnp:rootdevice
"
Nice tutorial sir , but how can i control 2 light using alexa as well as normal switches ??
Hare it is.ruclips.net/video/5SgB6wzgxY0/видео.html
Great work. It could successfully work after following all the steps, but when i change the name of the device from Kitchen to Gold , it does not work :(
Can you please guide me where all places i need to change the name ? I changed the name at all locations in the Wemo Code? Any where else am i supposed to change any thing ??
Plz help
Regards
Goldi
Following two name in double quotes can be change to your preferred name. Good luck.
office = new Switch("office lights", 80, officeLightsOn, officeLightsOff);
kitchen = new Switch("kitchen lights", 81, kitchenLightsOn, kitchenLightsOff);
Any new videos on a Wemos D1 mini Maybe that's why my project aint working
Coming soon.
The setup works absolutely fine when used directly with Echo dot but when used with Alexa mobile app, the behavior is erratic. It turns all switches on after turning them off after few seconds also the switch shows the wrong status, shows off when it is on and off when it is on. Please let me know how to fix this. Thanks
Make sure you have enough power for ESP otherwise it will keep rebooting intermittently. Flip the relay poll if the on/off status in wrong in Alexa app.
@@netmedias7657Already modified the code to correct On/Off behavior which was initially reverse. I tried powering the nodeMCU unit both from computer USB and also external supply, the same result. It happens only when device switch options are used in the mobile app, otherwise, it works correctly when only audio commands are sent. Anything I can do to fix the switches option. The device is detected using Smart Home>Devices on my laptop. Does it require any wemo app on mobile?
Great! Great! Wonderfyll tutorial, even for those who have nothing to do with electronics and programming! You are asking for suggestions. Recently Domoticz became a very popular software to manage smart homes . It is quite intuitive and has a lot of fans, which is great for programming support. What do you think about adding Domoticz to your project, so we can monitor all of the state of the sensors on a daily basis, manage functions, re-create scenes, etc ..and Alexa would be kind of support for the entire system..
+Paweł Gągorowski thank you for your feedback. I will take a look since I am planning to automate with Google Home and Alexa.
Do you have any idea how to control multiple devices with multiple ESP8266 devices? It is easy to with one, but how do you configure lets say 5 of them. They can't all be connected to the same websocket, just one at a time. Do you by any chance have a code for that?
Ivan Bosilj I will be doing that in next tutorial using MQTT server. Stay tuned. Thanks
Do you have 1st or 2nd gen alexa? I have a echo plus 2nd gen and it is not discovering anything, anyone had the same issue? (I've already read forums and tried a million fixes but it just won't work)
Try following.
Find following code and
if(request.indexOf('M-SEARCH') > 0) {
....
respondToSearch();
}
Change it to following.
if(request.indexOf('M-SEARCH') >= 0) {
....
respondToSearch();
}
Thank you, today out of anger I went and got an echo dot, surprisingly the echo dot found all devices the echo plus couldn't find! so I'm sticking to the lil one
+Netmedias I found that in the library and changed it and it still make the device discoverable.
Why don't you use Heroku and IFTTT like some video before ???
I'm so curious about this :3
I am showing both ways of doing the this. It is you personal preference.
I'm really want to know, how can I change the code to appropriate to control 4 devices by using ITFFF protocol and Heroku app. Can you advise me some things?
Sir some problum serialmonitor show connected wifi... Switches... Ip address show.... but not finding devices Alexa.. please tell me what to do sir please...... Please reply I am using nodemcu 8266 board
Are you using echo plus? Make sure your echo device and NodeMcu are connected to same wifi router.
Could we use other sentence instead of " on and Off" for example "open and close" when we ask for a door?
Łukasz Yes, but not with this sketch. Check out my tutorial# 8 for that.
For sure i will. Your tutorials are awsome.
why would my commands be backwards? off is on and on is off when testing with relays. when i plug the board in both relays turn on and then i have to use the on command to shut them off. then to turn it back on i have to use the off command.
Blaine Bond you may be using active low relay. You have multiple optiontions to fix this.
.You can create Alexa routines and map on to off and off to on. No coding required.
.If using mechanical relay then use the other poll.
.Change code following code
From
digitalWrite(relayPin2, LOW);
To
digitalWrite(relayPin2, HIGH);
and high to low
thanks for the reply!! new to coding but changed the code and works perfect now awesome!! is it just as simple to rename the command name in the code to like something like bedroomlights or garagelights?
Blaine Bond IT is very easy to rename the device just change the following two names "office lights" "kitchen lights" to whatever you want.
office = new Switch("office lights", 80, officeLightsOn, officeLightsOff); kitchen = new Switch("kitchen lights", 81, kitchenLightsOn, kitchenLightsOff);
Can I use only the echo dot unit 50$ or I need the alexa speaker wich is 150$ or more? Thank you
V Alexandru Ionut You only need Echo dot.
Netmedias Thank You very much for the answer
I have a query, actually I didn't understant that ESP would have to connect to "a wifi router" and then Alexa would have to connect to that Wifi router?............I thought ESP is already a "wifi router" so it can be connected directly with Alexa and no "Wifi router" in between them ! I am really confused. Please someone help me. Thanks
kamit01 They both need to connect to your wifi router as client so they can talk to each other. You can run ESP in AP mode then your Alexa device will need to connect to ESP and it gets more complicated and you can't control other devices. I hope this helps.
okay thanks
Do I have to ask Alexa to discover devices everytime it starts or is it only an initial step?
Once only. To add a new device.
hi when compiling the program it will some error #include "switch.h".
how i can solve the error
Try #include "Switch.h"
I get this "fatal error: ESP8266WiFi.h: No such file or directory"
can't seem to find the library
laf hunting You need to install ESP libraries within the Arduino IDE. You need to watch my tutorial #2. In this tutorial I show you how to do that. It is very simple.
Hello. I am getting the same error but I have other projects that reference this header file "ESP8266WiFi.h" and they work. It's the reference in "Switch.h" and "UpnpBroadcastResponder.h" that cannot be resolved.
I placed these files in: %userprofile%\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266
Thanks in advance for any help.
Ok. I removed the files from...\cores\esp8286 and kept them with my project file and it works now. I thought I had to move the cpp and h files.
Hi Nassir, great video, thanks! I was able to follow it and make it work, but... The problem is when I connect power to ESP, the relay is already switched on and the Alexa commands are inverted: when I say Alexa turn on kitchen lights, the relay goes off and vice-versa. Any idea why is this behavior? Thanks in advance!
Because your are using active low relay. You have 2 options. If using 3 poll relay then use the poll that is close by default. 2nd option is to swap the on/off function name or on/off value. Good luck.
I'm not sure I understand what you mean by using an active low relay and "use the pole that is close by default". On the back of the relay board says low level trigger, if that helps in any way. Thanks!
I explain this in following tutorial. ruclips.net/video/1Eo9NSiS3Y8/видео.htmlm56s
Now I understand, thanks for the link. Btw, what relay board do you recommend that works directly, no transistor needed?
You don't need transistors if you use 2 options I gave you in first response.
can this work the same with alexa pi?
Jay Mee Yes, you can watch my tutorial #3 with Pi. ruclips.net/video/uS5dTx8vjq4/видео.html
Awesome tutorial! Very well explained, easy to follow. Now my Device is also working fine. You do a good job. Only one thing !
Because I live in Germany and I want to change the command: "Alexa turn Kitchen Lights on " to somthing like
" Alexa schalte Luefter ein "
What exactly I have to change in your Code. Thankś in advance for your Help.
Best Regards from Germany....
Juergen Foterek change the following two lines in "wemos.ino" file. Add German name for both devices.
Of Course you need to make sure you Echo is setup for German language. You can also change the language from you Amazon app for each device.
office = new Switch("Enter office lights in German here ", 80, officeLightsOn, officeLightsOff);
kitchen = new Switch("Enter kitchen lights in German here", 81, kitchenLightsOn, kitchenLightsOff);
Many thank´s for your quick Help . It works perfect now Fantastic :-)
Malik can a solid state relay could control Airconditioner
MK Tech Yes, make sure get the right one that matches your AC load.
Thanks Malik can I have your email or whatsapp wanted to discuss a project.
Does this connection with Alexa happen over a local network or does it require an internet connection?
CAL20EECS09GUY You need internet to process your command with Alexa echo or dot. It will not work without it.
local aka your home router
Hi , i am trying this project based on your tutorial, but seems like I cannot connect to my network. when I upload the code and then open serial monitor it is just blank. But I have tried one of the examples of finding the wifi network and it works, so I know my esp is working. any idea ?
Fariz Afzal Open serial window and press the power button and you should see it obtaining an IP address. If it has IP address then you are sure it is connected to your network.
Try to restart your router and try it again. Make sure use a better power source. Ftdi converter doesn't have enough power to power on the board once the code is flashed. Good luck.
thanks a lot. I was already using an external power supply but powering it off and on again worked. Now I am connected to my wifi network. but now Alexa cannot discover my devices. Giving the same command you gave, nothing happens.
Make sure Alexa and ESP are connected to same wifi router and restart the router.
Thanks, after a few times of turning on and off now it is working.
Can we use google home instead of elxa
minitechbox thank for your comments. Please watch my following tutorial on how to do that.
ruclips.net/video/c4CC1dMFg78/видео.html
Can I control 4 channel relay with esp12f module?
Yes
@@netmedias7657 thnks
Hi, I built this device with a Node MCU and have some problems. In the serial monitor, everything works fine until 'Adding switch...', so I assume the ESP is working. Alexa won't find any devices and I don't know why. I tried two different networks. Instead of telling a dot to scan for devices, I use the Alexa app, but after 20seconds it always returns to the 'HomeAutomation' screen, without either adding the two devices from the sample code, nor saying something like 'no device found' This drives me crazy. Has anyone had similar problems?
Felix Herbst When you give "discover devices" command to Alexa what do you see in serial monitor? Can you share you serial output?
Hi, it shows constantly this:
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld
Ah it works fine! Thank you, it was just a little driver problem..
I have similar problem, can please explain in details how you solved it.
I also used Alexa App, but noting is showing on the Serial Monitor
flashed the code with no issues but when i click on the port it doesnt show. and alexa wont find any new devices. please advise
What is the error in Arduino serial console?
@@netmedias7657 I ended up going with the sinric code and now i was able to get it to work....somewhat work that is. the relays seem to be on when alexa thinks they are off and off when alexa thinks they are on
Thanks for the Tutorial
I have uploaded the sketch into ESP8266 successfully but my Alexa App is not discovering any devices. What can i do to solve this?
Hibee Tech You need to make sure your device is able to obtain an IP address. Also check you Arduino serial window. Are you seeing any errors? Try to reset your router. Alexa dot and esp needs to be connected to same router.
Netmedias Both Alexa App and ESP are connected to the same router, on the serial monitor, it shows IP obtained from the router. No error message was observed but Alexa can't discover new devices. Do I need to add any Alexa skills? Thanks
Same here, new Echo2 device working fine but does not find anything when dicovering devices. Esp8266 is connecting fine, gets an IP, I can even browse on port 80 to the ESP8266 and get "You should tell Alexa to discover devices" so for sure its IP is connected fine. I also tried Fauxmo scripts on Raspberry Pi but it also doesnt discover devices. I can see the Echo is sending out UDP packets 239.255.255.250:1900 when I do the discover devices but ESP8266 doesnt send any reply. Im confused if I need my router to support UPNP as well (I dont think so).
Hi Tony, I had the same issue, I got it fixed by resting my router, not sure what the issue was but after 2 days it worked. Try this
1. Create a hotspot via your smart phone with the same SSID and Password as your home network, turn of alexa and esp off, turn your home router off.
2. Turn on the hotspot on your phone. Turn on alexa and Esp. Give it 20 seconds, Ask alexa to discover devices, if all the devices are on your mobile hotspot network and if alexa l discovers the devices, then you might have to reset your router and try it again. keep the serial monitor open and let us know what you see.
Hi Hibee, I had the same issue, I got it fixed by resting my router, not sure what the issue was but after 2 days it worked. Try this
1. Create a hotspot via your smart phone with the same SSID and Password as your home network, turn of alexa and esp off, turn your home router off.
2. Turn on the hotspot on your phone. Turn on alexa and Esp. Give it 20 seconds, Ask alexa to discover devices, if all the devices are on your mobile hotspot network and if alexa l discovers the devices, then you might have to reset your router and try it again. keep the serial monitor open and let us know what you see.
Did I mis tutorial 3. Can't find it. Thanks for you tutorials
J Sanz ruclips.net/video/uS5dTx8vjq4/видео.html
Thank Very much. This will be my first attempt working with electronic. Home voice automation can get expensive. Looking to save some money. Thanks again for sharing your knowledge. Any other resources you can recommend for beginners will be greatly appreciated.
HI. it is work witch NodeMcu?
Yes
I downloaded your git-hub files. There are six files in the download. Three with dot h extensions, two with dot ccp extensions. One with dot ino extension.I know the dot ino is the code for Arduino, do I need to do anything with the other files
Rick Prime once you open the sketch it will automatically will open the other files.
Thank You! I'm going to get this working if it is the last thing I do!
Rick Prime good luck. Let me know how it goes. Thank you
Please make videos for it