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-...
  • НаукаНаука

Комментарии • 348

  • @Fredster9984
    @Fredster9984 5 лет назад

    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?

    • @netmedias7657
      @netmedias7657  5 лет назад

      Thank you. Use following tutorial to do that.
      ruclips.net/video/sFJE_PsUlm8/видео.html

  • @minifigjake
    @minifigjake 6 лет назад +1

    Top notch man. Love it. Watched like 4 of your videos in a row now lol

    • @netmedias7657
      @netmedias7657  6 лет назад

      minifig04 Thank you for your valuable feedback. Stay tuned for more....

  • @defariase
    @defariase 7 лет назад

    Great tutorial. Nice, clear and concise.
    I learned a lot from it. Thank you!
    Cheers!

  • @rsalama62
    @rsalama62 7 лет назад

    Awesome tutorial! Very well explained, easy to follow. Thanks! this got me started on my IoT journey

  • @gautamkadian
    @gautamkadian 6 лет назад

    Great job man, really really happy to see that. A time along i was looking about some good tutorials this is perfect SHOT 👍👍👌👌

  • @michaelmcdermott3802
    @michaelmcdermott3802 4 года назад +1

    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

  • @isoguy.
    @isoguy. 6 лет назад

    Good tutorial, really need to mark those pins so as to make clearer the connections

  • @sphynxusa
    @sphynxusa 6 лет назад

    Perfect! Great Job!!

  • @Bahadurpk
    @Bahadurpk 6 лет назад

    Great tutorial, very clean and clear
    Thanks

  • @kaischaabane6978
    @kaischaabane6978 6 лет назад

    You are the BEST Nassir

  • @saifylanewala865
    @saifylanewala865 6 лет назад

    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!!

  • @rzinindiana8029
    @rzinindiana8029 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад

      Thank you

    • @sumanthkokkula1222
      @sumanthkokkula1222 6 лет назад

      None LZHenry Will you have to ask Alexa to discover devices everytime it starts or is it only an initial step

    • @rzinindiana8029
      @rzinindiana8029 6 лет назад

      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

  • @sundayolayinka7286
    @sundayolayinka7286 3 месяца назад

    Lovely great job

  • @woopwoopadventures6789
    @woopwoopadventures6789 4 года назад

    Great video thanks

  • @Naster001
    @Naster001 6 лет назад

    Very good quality! Thx

  • @anthonygregson719
    @anthonygregson719 6 лет назад

    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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Anthony Gregson Thank you for valuable feedback. I put your idea on list and looking into it.

  • @nearmitech
    @nearmitech 4 года назад

    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.

  • @drprinter
    @drprinter 4 года назад

    Thank You... You are Freaking GREAT!!!

  • @drprinter
    @drprinter 4 года назад

    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

  • @FaisalSx3
    @FaisalSx3 7 лет назад

    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?

  • @macinissa4133
    @macinissa4133 4 года назад

    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?

  • @nigelholland24
    @nigelholland24 7 лет назад

    Loaded this onto a sonoff s20 changed relypin and it works just need to get manual button to work

  • @wlondoner
    @wlondoner 6 лет назад

    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

  • @sam9s
    @sam9s 7 лет назад

    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

    • @netmedias7657
      @netmedias7657  7 лет назад

      Sammy Singh Thanks for your feedback. All tutorials are in pipeline as you suggested in your comments.

  • @robsuyat
    @robsuyat 5 лет назад

    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

  • @Only_cute_animals
    @Only_cute_animals 6 лет назад

    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 !!

    • @netmedias7657
      @netmedias7657  6 лет назад

      Please look at my other videos. That is what I am trying to do.
      ruclips.net/user/edit?o=U&video_id=oGIScmcGFB8

  • @koteswararaoneelapu3432
    @koteswararaoneelapu3432 5 лет назад

    Supper video sir like this project

  • @skylabby
    @skylabby 7 лет назад

    Good Job

  • @aasiftadavi2167
    @aasiftadavi2167 7 лет назад

    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

  • @CharudattUplap
    @CharudattUplap 5 лет назад

    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

  • @MrBobWareham
    @MrBobWareham 4 года назад

    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

  • @arishy
    @arishy 6 лет назад

    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)

    • @netmedias7657
      @netmedias7657  6 лет назад

      Samir Arishy Please watch my tutorial controlling Sony tv. ruclips.net/video/1X6FeuUiMUY/видео.html

  • @inhVanChung
    @inhVanChung 6 лет назад

    Great! How to control multiple ESP modules?

  • @apsathyan
    @apsathyan 4 года назад

    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.

  • @bhutchins1991
    @bhutchins1991 5 лет назад

    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!

    • @netmedias7657
      @netmedias7657  5 лет назад

      Yes, very easy to add, watch my tutorial on it. ruclips.net/video/MUECb9mxpPA/видео.html

  • @rvvince3296
    @rvvince3296 4 года назад

    super !!!!

  • @123AMEEN
    @123AMEEN 6 лет назад

    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.

    • @netmedias7657
      @netmedias7657  6 лет назад +1

      Ameen Khan I am planning to update the script to add this functionality, so stay tuned!

  • @Chsch5
    @Chsch5 5 лет назад

    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!

    • @netmedias7657
      @netmedias7657  5 лет назад

      Sure, I will this in mind for future videos. Thanks

  • @ViniciusMacedo88
    @ViniciusMacedo88 7 лет назад

    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.

  • @billgaytes6845
    @billgaytes6845 2 года назад

    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.

  • @moeshickenyay
    @moeshickenyay 6 лет назад

    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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      moeshickenyay I will be doing a similer tutorial with NodeMcu soon. Thanks for your comments.

  • @gavinwalsh5238
    @gavinwalsh5238 7 лет назад

    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

    • @netmedias7657
      @netmedias7657  7 лет назад +1

      +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.

  • @anilkumar-uf9qf
    @anilkumar-uf9qf 6 лет назад

    Hi..how to change brightness of lights?

  • @fuzzie4755
    @fuzzie4755 7 лет назад

    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.

    • @netmedias7657
      @netmedias7657  7 лет назад

      +Stefan Bode thank you for your feedback. I will definitely give it a try.

  • @aasiftadavi2167
    @aasiftadavi2167 7 лет назад

    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

    • @netmedias7657
      @netmedias7657  7 лет назад

      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.

  • @fidelcastillo8378
    @fidelcastillo8378 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад +1

      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/

    • @fidelcastillo8378
      @fidelcastillo8378 6 лет назад

      Thanks much, it is working!

  • @aasiftadavi2167
    @aasiftadavi2167 7 лет назад

    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

  • @guriamir2159
    @guriamir2159 5 лет назад

    Nice

  • @waterworidd
    @waterworidd 6 лет назад

    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?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Mr. Cupcake thank you for your feedback. I have this projects on the list.

  • @urwithvamsi
    @urwithvamsi 6 лет назад +2

    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

    • @drprinter
      @drprinter 4 года назад

      check to see if port 1900 is open in your router..fixed my problem

    • @hemant282
      @hemant282 4 года назад

      @Vamsidhar
      Did you find your solution ?

  • @yoyo-hz9hk
    @yoyo-hz9hk 6 лет назад

    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

  • @nigelholland24
    @nigelholland24 7 лет назад

    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

    • @netmedias7657
      @netmedias7657  7 лет назад

      nigel Holland I will modify the code and try to upload it this weekend. Stay tuned.

    • @nigelholland24
      @nigelholland24 7 лет назад

      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

  • @saivineethgrandhi5448
    @saivineethgrandhi5448 6 лет назад

    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?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Yes, No code change is required for 2 channel relay. Good luck.

  • @johanrojas9725
    @johanrojas9725 6 лет назад

    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!

    • @netmedias7657
      @netmedias7657  6 лет назад

      Johan Rojas Use Alexa routines from mobile app and control multiple devices with single command. No coding required.

  • @kansaschappy
    @kansaschappy 6 лет назад

    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?

    • @kansaschappy
      @kansaschappy 6 лет назад

      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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

  • @travismicolichek8438
    @travismicolichek8438 7 лет назад

    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.

    • @netmedias7657
      @netmedias7657  7 лет назад

      + 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

    • @travismicolichek8438
      @travismicolichek8438 7 лет назад

      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.

  • @yoyo-hz9hk
    @yoyo-hz9hk 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

  • @yawarsaeed6499
    @yawarsaeed6499 5 лет назад

    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

    • @netmedias7657
      @netmedias7657  5 лет назад

      I have your idea on the to do list thank you for your suggestion.

    • @fiveooooo
      @fiveooooo 4 года назад

      @@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!

  • @PatnaikUC
    @PatnaikUC 7 лет назад

    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.

    • @netmedias7657
      @netmedias7657  7 лет назад +1

      Patnaik UC I am planning to do a video to control multiple devices soon.

  • @nathandiven6749
    @nathandiven6749 5 лет назад

    Is the USB to TTL converter necessary if you are using a ESP8266 development board?

  • @BayuKebot
    @BayuKebot 4 года назад

    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.

  • @Afternoonflunky
    @Afternoonflunky 6 лет назад

    Can we use it with wemo app

  • @siddharthsudheer6335
    @siddharthsudheer6335 7 лет назад

    Superb Tutorials! Can you point me to where you buy all the components for the project so cheap? Thanks a lot!

    • @netmedias7657
      @netmedias7657  7 лет назад

      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)

    • @siddharthsudheer6335
      @siddharthsudheer6335 7 лет назад

      Thank you for your prompt response! :)

  • @fosy6991
    @fosy6991 7 лет назад

    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

    • @netmedias7657
      @netmedias7657  7 лет назад +2

      NodeMCU ESP8266 tutorial in progress. Stay tuned.

    • @fosy6991
      @fosy6991 7 лет назад

      THANKS MAN AWESOME :D

  • @ravirajkala
    @ravirajkala 3 года назад

    Thanks for the video. Do you have something similar for Google home?

    • @netmedias7657
      @netmedias7657  3 года назад

      Try this ruclips.net/video/c4CC1dMFg78/видео.html

  • @poorboyslouie
    @poorboyslouie 4 года назад

    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.

  • @aasiftadavi2167
    @aasiftadavi2167 7 лет назад

    I want to connect esp8266 with arduino mega so it can oprate on ur git hub programmes you used in alexa project

    • @netmedias7657
      @netmedias7657  7 лет назад

      +Aasif Tadavi I will post a tutorial soon on how to connect ESP8266 with Arduino.

  • @Moti1112
    @Moti1112 6 лет назад

    Can amazon echo by Goole home mini

  • @mastermin7325
    @mastermin7325 6 лет назад

    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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      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
      "

  • @nimeshlad594
    @nimeshlad594 5 лет назад

    Nice tutorial sir , but how can i control 2 light using alexa as well as normal switches ??

    • @netmedias7657
      @netmedias7657  5 лет назад

      Hare it is.ruclips.net/video/5SgB6wzgxY0/видео.html

  • @goldimakhija2373
    @goldimakhija2373 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад

      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);

  • @grimster76
    @grimster76 4 года назад

    Any new videos on a Wemos D1 mini Maybe that's why my project aint working

  • @tariqghaffar6298
    @tariqghaffar6298 5 лет назад

    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

    • @netmedias7657
      @netmedias7657  5 лет назад

      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.

    • @tariqghaffar6298
      @tariqghaffar6298 5 лет назад

      @@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?

  • @pawegagorowski4410
    @pawegagorowski4410 7 лет назад

    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..

    • @netmedias7657
      @netmedias7657  7 лет назад

      +Paweł Gągorowski thank you for your feedback. I will take a look since I am planning to automate with Google Home and Alexa.

  • @ivanbosilj7423
    @ivanbosilj7423 6 лет назад

    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?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Ivan Bosilj I will be doing that in next tutorial using MQTT server. Stay tuned. Thanks

  • @Alexandergmc
    @Alexandergmc 6 лет назад

    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)

    • @netmedias7657
      @netmedias7657  6 лет назад

      Try following.
      Find following code and
      if(request.indexOf('M-SEARCH') > 0) {
      ....
      respondToSearch();
      }
      Change it to following.
      if(request.indexOf('M-SEARCH') >= 0) {
      ....
      respondToSearch();
      }

    • @Alexandergmc
      @Alexandergmc 6 лет назад

      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

    • @leglessinoz
      @leglessinoz 5 лет назад

      +Netmedias I found that in the library and changed it and it still make the device discoverable.

  • @thiencao4141
    @thiencao4141 5 лет назад

    Why don't you use Heroku and IFTTT like some video before ???
    I'm so curious about this :3

    • @netmedias7657
      @netmedias7657  5 лет назад

      I am showing both ways of doing the this. It is you personal preference.

    • @thiencao4141
      @thiencao4141 5 лет назад

      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?

  • @koteswararaoneelapu3432
    @koteswararaoneelapu3432 5 лет назад

    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

    • @netmedias7657
      @netmedias7657  5 лет назад

      Are you using echo plus? Make sure your echo device and NodeMcu are connected to same wifi router.

  • @kozaczi
    @kozaczi 7 лет назад

    Could we use other sentence instead of " on and Off" for example "open and close" when we ask for a door?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Łukasz Yes, but not with this sketch. Check out my tutorial# 8 for that.

    • @kozaczi
      @kozaczi 7 лет назад

      For sure i will. Your tutorials are awsome.

  • @blainebond5218
    @blainebond5218 6 лет назад

    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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      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

    • @blainebond5218
      @blainebond5218 6 лет назад

      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?

    • @netmedias7657
      @netmedias7657  6 лет назад

      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);

  • @alexandru-ionutvasiliu1212
    @alexandru-ionutvasiliu1212 6 лет назад

    Can I use only the echo dot unit 50$ or I need the alexa speaker wich is 150$ or more? Thank you

  • @kamit01
    @kamit01 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

    • @kamit01
      @kamit01 6 лет назад

      okay thanks

  • @sumanthkokkula1222
    @sumanthkokkula1222 6 лет назад

    Do I have to ask Alexa to discover devices everytime it starts or is it only an initial step?

  • @AgasLopamudra
    @AgasLopamudra 6 лет назад

    hi when compiling the program it will some error #include "switch.h".
    how i can solve the error

  • @yt440volts
    @yt440volts 7 лет назад

    I get this "fatal error: ESP8266WiFi.h: No such file or directory"
    can't seem to find the library

    • @netmedias7657
      @netmedias7657  7 лет назад

      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.

    • @jesussanchez2943
      @jesussanchez2943 7 лет назад

      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.

    • @jesussanchez2943
      @jesussanchez2943 7 лет назад

      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.

  • @gabimal
    @gabimal 6 лет назад

    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!

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

    • @gabimal
      @gabimal 6 лет назад

      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!

    • @netmedias7657
      @netmedias7657  6 лет назад

      I explain this in following tutorial. ruclips.net/video/1Eo9NSiS3Y8/видео.htmlm56s

    • @gabimal
      @gabimal 6 лет назад

      Now I understand, thanks for the link. Btw, what relay board do you recommend that works directly, no transistor needed?

    • @netmedias7657
      @netmedias7657  6 лет назад

      You don't need transistors if you use 2 options I gave you in first response.

  •  7 лет назад

    can this work the same with alexa pi?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Jay Mee Yes, you can watch my tutorial #3 with Pi. ruclips.net/video/uS5dTx8vjq4/видео.html

  • @juergenfoterek6743
    @juergenfoterek6743 6 лет назад

    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....

    • @netmedias7657
      @netmedias7657  6 лет назад

      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);

    • @juergenfoterek6743
      @juergenfoterek6743 6 лет назад

      Many thank´s for your quick Help . It works perfect now Fantastic :-)

  • @iotguy2423
    @iotguy2423 5 лет назад

    Malik can a solid state relay could control Airconditioner

    • @netmedias7657
      @netmedias7657  5 лет назад

      MK Tech Yes, make sure get the right one that matches your AC load.

    • @iotguy2423
      @iotguy2423 5 лет назад

      Thanks Malik can I have your email or whatsapp wanted to discuss a project.

  • @CAL20EECS09GUY
    @CAL20EECS09GUY 6 лет назад

    Does this connection with Alexa happen over a local network or does it require an internet connection?

    • @netmedias7657
      @netmedias7657  6 лет назад

      CAL20EECS09GUY You need internet to process your command with Alexa echo or dot. It will not work without it.

    • @tomscott7991
      @tomscott7991 6 лет назад

      local aka your home router

  • @farizafzal2401
    @farizafzal2401 6 лет назад

    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 ?

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

    • @farizafzal2401
      @farizafzal2401 6 лет назад

      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.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Make sure Alexa and ESP are connected to same wifi router and restart the router.

    • @farizafzal2401
      @farizafzal2401 6 лет назад

      Thanks, after a few times of turning on and off now it is working.

  • @minitechbox
    @minitechbox 6 лет назад

    Can we use google home instead of elxa

    • @netmedias7657
      @netmedias7657  6 лет назад +1

      minitechbox thank for your comments. Please watch my following tutorial on how to do that.
      ruclips.net/video/c4CC1dMFg78/видео.html

  • @boopeshkumarprabhakaran
    @boopeshkumarprabhakaran 3 года назад

    Can I control 4 channel relay with esp12f module?

  • @felixherbst466
    @felixherbst466 7 лет назад

    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?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Felix Herbst When you give "discover devices" command to Alexa what do you see in serial monitor? Can you share you serial output?

    • @felixherbst466
      @felixherbst466 7 лет назад

      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

    • @felixherbst466
      @felixherbst466 7 лет назад

      Ah it works fine! Thank you, it was just a little driver problem..

    • @hicmikrolab
      @hicmikrolab 6 лет назад

      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

  • @Adam-og1kj
    @Adam-og1kj 4 года назад

    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

    • @netmedias7657
      @netmedias7657  4 года назад

      What is the error in Arduino serial console?

    • @Adam-og1kj
      @Adam-og1kj 4 года назад

      @@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

  • @hicmikrolab
    @hicmikrolab 6 лет назад

    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?

    • @netmedias7657
      @netmedias7657  6 лет назад

      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.

    • @hicmikrolab
      @hicmikrolab 6 лет назад

      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

    • @tonywye
      @tonywye 6 лет назад

      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).

    • @123AMEEN
      @123AMEEN 6 лет назад +1

      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.

    • @123AMEEN
      @123AMEEN 6 лет назад +2

      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.

  • @jsanz787
    @jsanz787 7 лет назад

    Did I mis tutorial 3. Can't find it. Thanks for you tutorials

    • @netmedias7657
      @netmedias7657  7 лет назад

      J Sanz ruclips.net/video/uS5dTx8vjq4/видео.html

    • @jsanz787
      @jsanz787 7 лет назад

      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.

  • @ukaszmackiewicz3531
    @ukaszmackiewicz3531 5 лет назад

    HI. it is work witch NodeMcu?

  • @k6tf
    @k6tf 6 лет назад

    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

    • @netmedias7657
      @netmedias7657  6 лет назад

      Rick Prime once you open the sketch it will automatically will open the other files.

    • @k6tf
      @k6tf 6 лет назад

      Thank You! I'm going to get this working if it is the last thing I do!

    • @netmedias7657
      @netmedias7657  6 лет назад

      Rick Prime good luck. Let me know how it goes. Thank you

  • @Moti1112
    @Moti1112 6 лет назад

    Please make videos for it