IOT | Home Automation | Control Sonoff with Home Assistant & Alexa with MQTT server| Tutorial # 24

Поділитися
Вставка
  • Опубліковано 11 бер 2018
  • In this tutorial you will learn, how to setup Home Assistant with hassio image.
    You will be able to control sonoff switch with custom sketch with alexa echo dot and Home Assistant with hassio embedded MQTT server.
    GitHub Source Code:
    github.com/nassir-malik/Contr...
    Home Assistant Website
    home-assistant.io/getting-sta...
    How to flash Sonoff
    • Smart Sonoff Switch Tr...
    3 In 1 Raspberry Pi 3 Model B + V34 Acrylic Case + Pi Fan:
    goo.gl/cVgcmr (10% OFF Coupon: elec)
    Banggood Weekly Coupon Deals: goo.gl/qEsv8o
  • Наука та технологія

КОМЕНТАРІ • 50

  • @eriklaken1025
    @eriklaken1025 6 років тому

    Very good! I wil try. Thank you.

  • @richboi2171
    @richboi2171 6 років тому

    I would love to control my account unit via a esp8266 with an ir blaster with Alexa integration. Much appreciated if you can guide me

  • @easwaran83
    @easwaran83 6 років тому

    Will The Same process work if Sonoff is Flashed with TASMOTO? Please guide

  • @chvinesh
    @chvinesh 6 років тому

    Superb sir.

  • @capextechnicalservicesllc3054
    @capextechnicalservicesllc3054 4 роки тому

    thank you so much .

  • @ashishcchauhan
    @ashishcchauhan 6 років тому

    please make a video on alexa and hassio integration using wemo spoof.

  • @johanrojas9725
    @johanrojas9725 6 років тому

    Does the 3-way switch of tutorial #18 work with this system?

  • @gautamkadian
    @gautamkadian 6 років тому

    Really cool sir,
    Possible that we can see the control the multiple boards from one node-mcu or Raspberry pi 3.

    • @netmedias7657
      @netmedias7657  6 років тому

      Yes, watch the following tutorial.
      ua-cam.com/video/bOEjngPAVSc/v-deo.html

  • @bhutchins1991
    @bhutchins1991 5 років тому

    could i use an ESP8266 module instead of sonoff with the same code and different relay pin? Also would love to know how to integrate 3-way switching into that code to use all this with home assistant?! love your videos mate!!

  • @88TOPDOG
    @88TOPDOG 5 років тому

    Can it be also control with existing wall light switch.

    • @netmedias7657
      @netmedias7657  5 років тому

      Not with this module. You need a module with 3 pole relay.

  • @GiuseppeLodiRizziniOfficial
    @GiuseppeLodiRizziniOfficial 5 років тому

    I have to create a different sketch (name of the device) for every sonoff??

    • @netmedias7657
      @netmedias7657  5 років тому

      IT needs to be unique on your network, otherwise it will not work. You don't have to hardcore the name into the device.
      You can give it a unique name during setup.

  • @ashishcchauhan
    @ashishcchauhan 6 років тому

    hi, netmedias...I have seen your all most all video and i like it very much. with your tutorial i am going to do my own home automation project.
    thanks.
    I Have one equerry to ask you. Can we add external home switch to sonoff after flash sketch. like use it 2 ways one is sonoff and second one is home physical on-off switch.
    Thanks again.

    • @netmedias7657
      @netmedias7657  6 років тому

      Ashish Chauhan Yes, you can watch my following tutorial. To install a physical switch you nee to access the GPIO. You can see how I did that in temperature and humidity tutorial. Good Luck.
      ua-cam.com/video/QaY5m5RmB7M/v-deo.html
      temperature and humidity tutorial:
      ua-cam.com/video/XDkUfPxgjOw/v-deo.html

    • @ashishcchauhan
      @ashishcchauhan 6 років тому

      Thank you so much for reply..I have seen both video but which sketch should i flash in my sonoff among the this two sketch which mentioned in video? and is I have to do any modification in sketch?

  • @Afternoonflunky
    @Afternoonflunky 6 років тому

    Aslamoalikum sir can we make 4ch sonoff wit this totourial @Netmedias

  • @giorgosiotis1557
    @giorgosiotis1557 4 роки тому

    I this this is not working for Home Assistant Core 0.105.2 on February 2020

  • @soumyajitmitra9087
    @soumyajitmitra9087 6 років тому

    Sir can you please share the code for sonoff 4 channel pro?

    • @netmedias7657
      @netmedias7657  6 років тому

      Please stay tuned for the custom firmware for sonoff 4 ch pro. Tutorial is coming soon.

  • @ssinseeme
    @ssinseeme 6 років тому

    Please and please I watch all the video. But I didn’t find one with home security sensors motion sensor etc...to NodeMCU with Pi3/home assistant. It would be nice to have Alexa tell me if the door is open or camera motion etc.. that’s a great project. Thanks again for videos.

    • @netmedias7657
      @netmedias7657  6 років тому

      ssinseeme b It is in progress. Stay tuned.

    • @ssinseeme
      @ssinseeme 6 років тому

      Great, that will be an awesome project. Thanks.

    • @kiloy1006
      @kiloy1006 6 років тому

      I don’t think it will be doable with echo. You can now push a query to echo for notifications but it won’t announce it until you wake up the echo.

  • @inhVanChung
    @inhVanChung 6 років тому

    Hope make with multi GPIO output.

  • @klon8168
    @klon8168 6 років тому

    After connecting to my wifi i get the following in my serial monitor :
    INFO: Attempting MQTT connection...
    ERROR: failed, rc=-2DEBUG: try again in 5 seconds
    i have the same code flashed on to my nodeMCU and Home Assistant is configured as displayed in the video, help..

    • @klon8168
      @klon8168 6 років тому

      I got the above error sorted but now the relay is not being toggled although the switch toggle's both via alexa and google home but the relay doesn't turn on or off, i tried changing different pin numbers but the result is the same. I even tried using a led but the result was the same.

    • @netmedias7657
      @netmedias7657  6 років тому

      John Wick you are unable to connect to the service due to the network issud. Make sure you are connected to wifi successfully.

    • @klon8168
      @klon8168 6 років тому

      MQTT connection is successful but the only issue now is that when i toggle the switch on or off via home assistant or alexa the relay/led doesn't turn on or off. I am using a nodemcu and tried different pins but the result was same.

    • @netmedias7657
      @netmedias7657  6 років тому

      What do you see in Arduino serial window?

    • @klon8168
      @klon8168 6 років тому

      The serial windows says "Got turn on/off request" , but the relay doesn't turn on or off.

  • @wolf3five
    @wolf3five 6 років тому

    You did not install the mqtt on hassio

    • @netmedias7657
      @netmedias7657  6 років тому

      John Kinder It is embedded and you need to update the config to enable it. I am showing that in video.

    • @wolf3five
      @wolf3five 6 років тому

      Netmedias i just did not see in your video that you add the mosquitto plugin

    • @netmedias7657
      @netmedias7657  6 років тому

      John Kinder you just need to add "mqtt:" in config to enable it. No need the to install the add-on component. You can do that but why do extra work.

    • @wolf3five
      @wolf3five 6 років тому

      Netmedias cool

  • @MiralSonghela
    @MiralSonghela 6 років тому

    Why don’t you use ifttt to control lights using voice commands.
    It will do the job for free and you won’t need to do this much work

    • @netmedias7657
      @netmedias7657  6 років тому +1

      You miss the point.I don't want to lose control if internet or Amazon or google cloud service is down.

    • @easwaran83
      @easwaran83 6 років тому

      This can work with or without Internet? I mean can we control devices in Home using Home assitant App when we are away ??

    • @MiralSonghela
      @MiralSonghela 6 років тому

      Netmedias Don’t u need internet connection to make this work?

  • @HandyKindaGuyUK
    @HandyKindaGuyUK 2 роки тому

    biggest flaw. If your wifi goes down, so does whatever you're controlling. it needs some sort of hardware backup

    • @netmedias7657
      @netmedias7657  2 роки тому

      You are right, It will also not work if you lose power or internet.

  • @firmanfernando9
    @firmanfernando9 4 роки тому

    why not install alexa app in raspberry, save ure money. just buy cheap mic and speaker.