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.
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
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
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 ;)
@@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?
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!
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!!!
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.
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?
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.
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!
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
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.
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.
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?
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
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 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?
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
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
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.
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
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.
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.
@@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.
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.
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.
@@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
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.
@@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
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 👍
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.
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
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.
@@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
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.
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.
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
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
Thanks Basil, appreciated!!
Good video. Is there a simpler solution to realize the connection between esp8266 and mqtt broker (free version)and the control of Google home
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 ;)
@@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?
Check this service at sinric.com
Very nice video ❤ thanks
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!
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.
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!!!
Wow Amazing nice explanation +1 sub
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.
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?
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.
Hi, Is it possible to do this project without using a credit card?
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!
@@ElectroFun_SmartHome I have already found another alternative called smartnest.cz and I am testing
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?
Also, I'm not sure what do I need to do with the broker, how do I know the clientid?
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
Hi, at 4:44?
What distance range are control it
Please tell me
Can my Laptop's wifi card be used instead of the ESP8266 module?
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.
By the way, you can install nodered nodered.org/ as it has already MQTT plugins ready to use.
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.
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?
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
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!
I will check, probably Google changed their policy.
@@ElectroFun_SmartHome thank you
Hi there,
Did you manage to check if google changed their policy?
Thank you so much
@@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?
I dont understand. there is not MQTT file in examples folder.
Hi, it is located in my github area (github.com/electrofun-smart) at my-smart-home-java-mqtt/src/main/resources/mqtt.properties
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?
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
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
Ok, I will do it when google changes the current project to keep it updated.
@@ElectroFun_SmartHome thank you for reply sir. I appreciate your works.
Is computer necessary to do this project. Can't I do complete project with my android phone.
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.
@@ElectroFun_SmartHome thank you for reply sir. I appreciate your works
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
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.
@@ElectroFun_SmartHome i made to point"Use the role Service Account > Service Account Token Creator" . do you have whatsup to communicate
@@ElectroFun_SmartHome good evening . how it cost me "billing enable" to make a project like your. and i would like to contact with you
I got one issue "Couldn't update setting, check your connection" while linking the service. can you help?
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.
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?
I found a solution: ensure you use the 'Cloud firestore' and not the 'realtime database' in firestore when creating the users collection.
I am lost between 4:37 to 4:38. would you tell me how to setup the software for this project?
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.
@@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.
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.
Can I use single esp to control multiple devices with this??
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.
@@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
hey, cant I do this without a billing account?? I can start a trail but it will expire in 90 days 🤐
I love it!
i guess I'm quite randomly asking but does anyone know a good place to stream newly released movies online ?
@Benton Mohamed i use FlixZone. Just google for it =)
@Benton Mohamed I would suggest FlixZone. Just google for it :)
Why do I need to pay for the Cloud Build Api???
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.
@@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
@@ElectroFun_SmartHome How can I do it for free?
i don't under stand about gradle I use putty for ssh to rasberry
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 👍
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.
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
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.
@@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
Is this free?Can i use it for life long?
This would be great, but it's quite hard to follow
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.
Can't here you, too fast and video is hard to see
This was my first video in the channel, I'm trying to improve the quality, thanks
😅