How to connect ESP8266 and Arduino with Google Assistant and Google Home App without IFTTT - Part 1

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 85

  • @manishkumar27
    @manishkumar27 22 дні тому

    Hello, Thank you for the video. I've completed all the steps but stuck at MQTT setup. Can you share steps or a video on how to setup MQTT broker to get the url, client id and other details? Thank you in advance.

  • @shijilt
    @shijilt 9 місяців тому

    I am sorry, I ddint watch the full video or didnt read the descriptino correctly. Did you just setup a PC as a server to use the MQTT feature ? Please explain

  • @basilbinu4933
    @basilbinu4933 4 роки тому +1

    Bro your video is really informative and just the thing I was looking for.
    I am a beginner and I don't know much programming..I watched all your videos and I really liked your work.Will you guide me in making my home smart . I don't have that much money to afford smart lights and all so I was looking for some way to make a smart light and found your video very informative.Please guide me in making this project.
    Also I like your ac control and tb control as well so after completing the smart light one I wish to proceed with those
    Great work sir❤️❤️
    Hoping you will help in all the process behind the making of this

  • @KinCony
    @KinCony 3 роки тому +1

    Good video. Is there a simpler solution to realize the connection between esp8266 and mqtt broker (free version)and the control of Google home

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Hi, thanks. Yes, there is. I found it some months ago, but you need to use HomeAssistant. Then you need to connect HomeAssistant with Google Assistant, this video shows how to do it (ua-cam.com/video/OGiDPIx_mVQ/v-deo.html) is from @JuanMtech channel. It is just configuration, no code (Java backend) is needed. Then you need to flash your ESP8266 with TASMOTA or ESPHome. Both firmware's "talk" to HomeAssistant. Then you will have everything linked, ESP with HomeAssistant and with Google Assistant. Hope it helps ;)

    • @KinCony
      @KinCony 3 роки тому

      @@ElectroFun_SmartHome i know your means, but that will need another computer or PI, i just want only ESP8266 work for google home without any other device. Do you have a solution?

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Check this service at sinric.com

  • @Hewagej
    @Hewagej 9 місяців тому +1

    Very nice video ❤ thanks

  • @albertcaba8844
    @albertcaba8844 4 роки тому +3

    Thank you for your video, you have a new subscriber! One question: Is it possible to use this method by using the free tier in Google services (not the 90-day, $300 Free Trial) or inevitably after the three months you have to pay? Thanks!

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

      Hi, thanks, yes, it is possible, I have a account for tests using this free trial. It is valid for one year as far as I know.

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

    Hi there , i was following your tutorial and noticed that google is removing Conversational Actions on June 2023 , I assume this will deprecate this project , am I right ?? thanks!!!

  • @Killeurs222
    @Killeurs222 3 роки тому +1

    Wow Amazing nice explanation +1 sub

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

    Bro I really appreciate all what you do sharing these tools. I want to ask you something extra about this method, Would you know how to switch the service in google to an official "it works with google " IoT service?, or how to get the info. I've spend more than a month try to find this and the closest thing I found is your video.

  • @Mr_ToR
    @Mr_ToR 3 роки тому

    Great video! Thanks a lot.
    The current version of your "my-smart-home-java-mqtt" is a bit different than shown in your video but it's no problem. My only question is about the mqtt.properties file. The broker field shows the wss protocol for the broker address. I believe that is MQTT over WebSocket with SSL. Do I have to use wss? I would love to use SSL but I don't know how to create keys certificates etc and also if I need a client key for this cloud app. I would really appreciate If you could provide a link for instructions on this or even better a video on this. I would love to have a secure connection but at first I have to use normal MQTT for now but get the cloud app to use MQTT over WebSocket with SSL when I get everything working. So I need to learn how to change the mqtt client settings of the deployed cloud app too. Also how do I set the client to use which port or protocol for mqtt as in one of the four possible ways as in:
    1. 1883/tcp for Normal MQTT
    2. 1884/tcp for MQTT over WebSocket
    3. 8883/tcp for Normal MQTT with SSL
    4. 8884/tcp for MQTT over WebSocket with SSL
    I believe your example is for shiftr.io, however I will be using the mosquitto broker as an add-on to the HoneAssistant OS for RaspberryPi. I got my MQTT broker to work over the internet with the insecure port 1883 with a NAT through my home router. I also have a static IP and a duckdns just in case and ease of use. I would like to setup an insecure server first then get the cloud app to work with wss later. Can I just use xxx address for the broker instead of wss://xxxx? How do I control which port the java cloud app client uses?

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Hi Tonguç, at that time I made the video I was using shiftr.io, then I move to Mosquitto mqtt broker running on raspberryPi. The you basically need to change the broker line as below :
      broker=tcp://broker.shiftr.io - for insecure
      broker=tcp://broker.shiftr.io:1883 - for insecure using port number, you can change the port number
      The same for wss, you can add a different port by adding colon and port number at the end.

  • @gabrielsanchezgalan7100
    @gabrielsanchezgalan7100 3 роки тому +2

    Hi, Is it possible to do this project without using a credit card?

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Hi Gabriel, yes, it is possible to have the same result (devices controlled by Google Assistant) by using a service on this site: sinric.com/ however you will have a limited number of devices that you can use.
      Another alternative is to use Home Assistant (www.home-assistant.io/) you need to install it in your machine (notebook or raspberry-pi) then you need to follow this video: ua-cam.com/video/OGiDPIx_mVQ/v-deo.html from JuanMTech channel.
      I would suggest you to use home assistant integration in case you plan to have many devices, however if you plan to have only one or two devices controlled by Google Assistant, then go for sinric option.
      Hope it helps, cheers!

    • @gabrielsanchezgalan7100
      @gabrielsanchezgalan7100 3 роки тому

      @@ElectroFun_SmartHome I have already found another alternative called smartnest.cz and I am testing

  • @adamkopelman5405
    @adamkopelman5405 3 роки тому

    Hi!
    First of all thanks for the video
    Second, In 10:25 when you connect the test through your phone I get "could not reach" do you have any idea why?

    • @adamkopelman5405
      @adamkopelman5405 3 роки тому

      Also, I'm not sure what do I need to do with the broker, how do I know the clientid?

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

    emmmmmm.... at 4:44 things change, my browser doesn't look like that, is it a theme? or are you usimg something you didnt tell us about making the guide into a puzzle

  • @PriyankaKumari-mk5pm
    @PriyankaKumari-mk5pm Рік тому

    What distance range are control it
    Please tell me

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

    Can my Laptop's wifi card be used instead of the ESP8266 module?

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

      In your laptop you can implement a local application that can subscriber and send MQTT messages, so you can use it with Google Home in my example as it also uses MQTT protocol to connect with devices.

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

      By the way, you can install nodered nodered.org/ as it has already MQTT plugins ready to use.

  • @hitenlulla2713
    @hitenlulla2713 3 роки тому

    I want to create a smart home system without using IFTTT for my college project. I watched this video and followed along, but there seems to be a bug in the code, and I’m unable to solve that issue. Can someone help me out regarding this? It's urgent and I can pay for the service.

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

    Hey sir, I'm really interested in this project and I already implemented it, but my current problem and needed feature, is that I want to make authentication possible, not a fake auth one, I already builder my authentication server using Passport, but I don't know what's next, can you please help me with that, where do I start?

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  2 роки тому +1

      I did not implement the full authentication due lack of time to investigate how to do it, in case you find some good instructions about it, pls share here or with me, than I can make a video showing to everyone. Thanks

  • @rabinshaltiel8950
    @rabinshaltiel8950 3 роки тому

    Hi thank you for the tutorial . When I try to enable cloud build api I am forwarded to another webpage to start a 3 months trial and later need to pay. Am I doing something wrong, or did google changed their policy? thank you!

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому +1

      I will check, probably Google changed their policy.

    • @rabinshaltiel8950
      @rabinshaltiel8950 3 роки тому

      @@ElectroFun_SmartHome thank you

    • @rabinshaltiel8950
      @rabinshaltiel8950 3 роки тому

      Hi there,
      Did you manage to check if google changed their policy?
      Thank you so much

    • @danielhoefer9168
      @danielhoefer9168 3 роки тому

      @@ElectroFun_SmartHome Any updates on this? Wondering if there is a free way to do this. Do you only need Cloud Build API for setup, and then from then on can it be disabled, thus using the free tier then on?

  • @Tgrossman96
    @Tgrossman96 3 роки тому

    I dont understand. there is not MQTT file in examples folder.

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Hi, it is located in my github area (github.com/electrofun-smart) at my-smart-home-java-mqtt/src/main/resources/mqtt.properties

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

    sir, why on my project im not have login info about shiftr in mymqtt code? im not have smart-home-key.json too :( can you explain how to get it?

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  3 роки тому

      Hi Andreas, my bad, the project was updated on this part to have the MQTT credentials decoupled from Java, it is now on src/main/resources/mqtt.properties
      You can add your MQTT credentials in this file only, is not needed to update Java, this was a suggestion from a colleague in this channel (Max Champneys)
      Regarding smart-home-key.json, you need to get your own credentials on Google Cloud (as shown in the video) and save this file in the same location path of mqtt.properties

  • @madugulasankararao7409
    @madugulasankararao7409 4 роки тому +1

    Sir could you please make another video on this project. Some parts of video are not understandable. And the voice is too low. Please make another video making some more reliable. I am requesting you

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  4 роки тому +1

      Ok, I will do it when google changes the current project to keep it updated.

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

      @@ElectroFun_SmartHome thank you for reply sir. I appreciate your works.

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

    Is computer necessary to do this project. Can't I do complete project with my android phone.

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  4 роки тому +1

      No, you can do it on Windows but your life will be easier with Linux (preferably Ubuntu latest lts). So I recommend that you use a computer with Linux and have JAVA 8 SDK installed and also the IDEA Intellij Community, Node.js and Google Cloud SDK and Firebase tools installed, all open source tools.

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

      @@ElectroFun_SmartHome thank you for reply sir. I appreciate your works

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

    hi . good work. i need your help. i didn't understand Credentials and API enabling section can you explain it to me please ,does it free or i must pay.thanks

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  4 роки тому +1

      Hi, pls, try to follow the instructions below, if you do not succeed let me know and I can show you how to do it.
      github.com/actions-on-google/smart-home-nodejs
      see this session: Add Request Sync and Report State
      Navigate to the Google Cloud Console API Manager for your project id.
      Enable the HomeGraph API.
      Navigate to the Google Cloud Console API & Services page
      Select Create Credentials and create a Service account key
      Create a new Service account
      Use the role Service Account > Service Account Token Creator
      Create the account and download a JSON file. Save this as src/smart-home-key.json.

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

      @@ElectroFun_SmartHome i made to point"Use the role Service Account > Service Account Token Creator" . do you have whatsup to communicate

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

      @@ElectroFun_SmartHome good evening . how it cost me "billing enable" to make a project like your. and i would like to contact with you

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

    I got one issue "Couldn't update setting, check your connection" while linking the service. can you help?

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

      Try to use a different browser in your mobile or refresh the page, probably this issue is related to default web browser defined in your mobile phone.

    • @hewhohatesall
      @hewhohatesall 4 роки тому +1

      I am also having this issue, I am using the chrome browser on my phone. Is there another browser that others have been successful with?

    • @hewhohatesall
      @hewhohatesall 4 роки тому +1

      I found a solution: ensure you use the 'Cloud firestore' and not the 'realtime database' in firestore when creating the users collection.

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

    I am lost between 4:37 to 4:38. would you tell me how to setup the software for this project?

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

      Hi Alex, you need to clone the project from github and install google cloud sdk, in the video description I added more details and the links to github. Please let me know if it helps.

    • @alexyou2995
      @alexyou2995 4 роки тому +1

      @@ElectroFun_SmartHome thanks, I am still at the "try to ask the right questions and know what I don't know" level, I will keep study, and the project you did in your video is what I want to learn. all I can do is use blynk and ifttt to control the arduino, it's doing what I need, but I believe your method is better for people who real want to learn IoT.

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

      Great to hear that!! I started using IFTTT as well, then I tried the sinric.com that is similar to my project, it has the code that I showed in my video in his background, but you get limited in the number of devices and then you should pay to have more devices. But I recommend that you try the free devices just to see how it works. Then I found a tutorial from channel "Sid's E Classroom" here in youtube using the google example and Node.js, but I do not have much experience in Node.js, so I studied the Java end-to-end example that does the same as Node.js and I had to adapt a few things to make it working with IOT devices, like the interface MQTT that I implemented on top of Java example code. Wish you good luck on your projects and fell free to ask, I'm glad to help.

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

    Can I use single esp to control multiple devices with this??

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  4 роки тому +1

      Hi, yes, it is possible, just implement the subscription of each mqtt topic of each device in your esp. There is also possible to have a device with multiple traits, depending of your needs.

    • @Danuka_Savinda
      @Danuka_Savinda 4 роки тому +1

      @@ElectroFun_SmartHome whoa that's a really great news I'll give a shot! I'm not a programmer or anything so if I have anything I'll ask, thanks mate you have been really helpful

    • @Danuka_Savinda
      @Danuka_Savinda 3 роки тому

      hey, cant I do this without a billing account?? I can start a trail but it will expire in 90 days 🤐

  • @MrPiachu92
    @MrPiachu92 3 роки тому +1

    I love it!

    • @bentonmohamed1369
      @bentonmohamed1369 3 роки тому

      i guess I'm quite randomly asking but does anyone know a good place to stream newly released movies online ?

    • @ulisessaint663
      @ulisessaint663 3 роки тому

      @Benton Mohamed i use FlixZone. Just google for it =)

    • @cameronjames5960
      @cameronjames5960 3 роки тому

      @Benton Mohamed I would suggest FlixZone. Just google for it :)

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

    Why do I need to pay for the Cloud Build Api???

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

      This is requested by Google as you are going to use their cloud infrastructure, however they offer some hours for free when you use for the first time.

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

      @@ElectroFun_SmartHome But I don't want that they randomly take my money, I have to fill in my Credit card or paypal so they can take my money whenever they want

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

      @@ElectroFun_SmartHome How can I do it for free?

  • @beeriotce6768
    @beeriotce6768 3 роки тому

    i don't under stand about gradle I use putty for ssh to rasberry

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

    Sir till now I am doing home automation with IFTTT and blynk app. But IFTTT has asked to pay money. It is huge amount. So this video has become a super alternative. So I am requesting you to upload video on this project with developments in voice. Please explain slowly. Please make the video more reliable. I always appreciate your work 👍

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  4 роки тому +1

      Thanks I will consider it and maybe buy a new microphone :) One thing to highlight is that this project is not totally free from Google Cloud point of view. You need to create an account in Google Cloud (where Java backend is deployed) with your credit card and you can be charged if cloud is used heavily. In case you use it just for your own at your home with a few devices that do not push too much data to the cloud then you will be charged around less than 2 US dollars a month. There is also some cases when Google Cloud offer a free 300 dollars on the first year, so you can check if this offer still available when signing up for Google Cloud Account.

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

    hello from france , a very good video but a littile hard for a new guy ..... i am stuk were te replace user and pwd ! what do i put here please,? i have my file with the token .... Thance a lot

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

      Hello, you mean for MQTT broker credentials? In fact you can use any broker, in the video I used shiftr.io/ which is free but I was upset that the service was down once and then I started using cloudmqtt.com from heroku.com, it is more reliable but I it is not free, it costs 5 US$ a month. Soon I will install mosquitto broker in one raspberry pi 4 and then I will use it.

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

      @@ElectroFun_SmartHome Hello ok i will try a other broker because not working for me when i try to conect to google home on mobile
      thanks for your fast reply

  • @arvindcuber4401
    @arvindcuber4401 3 роки тому

    Is this free?Can i use it for life long?

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

    This would be great, but it's quite hard to follow

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

      Yes, I agree, I think Google is not willing to make it easier for regular users like us, instead I think Google is focusing in companies like Philips and other smart devices big vendors that will use heavily their cloud resources and generate cash for them. If it was too easy the vendors of smart devices will face issues and drop in their revenue and complain back to Google. Well I can be wrong, but this seems to explain why this setup was not made easier for regular people. Anyway, please let me know some parts in the video that is not so clear and can try to improve. Cheers.

  • @Kotaku-Designs
    @Kotaku-Designs 2 роки тому

    Can't here you, too fast and video is hard to see

    • @ElectroFun_SmartHome
      @ElectroFun_SmartHome  2 роки тому +1

      This was my first video in the channel, I'm trying to improve the quality, thanks

  • @ghispro
    @ghispro Місяць тому

    😅