NEW! ESP Web Tools. Program ESP boards from your browser with ESPHome Add-on in Home Assistant.
HTML-код
- Опубликовано: 24 июл 2024
- Use ESP Web Tools in the Home Assistant ESPHome add-on to flash an ESP32 and ESP8266 directly from your web browser. I also show how to program the ESP32 with a Xiaomi LYWSD03MMC code block from esphome.io to measure temperature and humidity. #esphome #espwebtools
LINKS:
- ESPHome: esphome.io/
- LYWSD03MMC Video: • Use this CHEAP Xiaomi ...
- ESP Web Tools: esphome.github.io/esp-web-tools/
Discord: / discord
If you would like to support me:
Buy me a beverage: ko-fi.com/mostlychris
Become a patron: / mostlychris
Products I reference in my videos (Contains affiliate links)
www.mostlychris.com/my-smart-...
www.xsplit.com?ref=chriswest&discount=mostlychri&pp=stripe_affiliate
DISCLAIMER: Some of the links above take you to affiliate sites that may or may not pay a small commission to me. It doesn't increase the cost to you, but it does help support me in making these videos.
00:00 Intro
00:25 Program an ESP32
03:49 Program an ESP8266
06:38 ESP Device discussion
07:28 Xiamoi LYWSD03MMC Sensor
08:33 Add sensor code in ESP32
11:02 Install (update) code on ESP32
12:38 View ESP32 logs
13:42 View entities in Home Assistant
14:29 Wrap up
Want to send me something? Send it here!
Mostlychris
24165 IH-10 West
STE 217 #164
San Antonio, TX 78257 Хобби
Hey Everyone. I'm getting a lot of questions about SSL because this process requires that you connect via SSL to use all the features. You need to install DuckDNS or Let's Encrypt. The DuckDNS add-on includes Let's Encrypt now so I'd go with that one. Apologizes that I didn't make that clear in the video.
what about us poor souls, who are behind CGNAT and can't use DuckDNS? :Crying:
Nabu Casa!
@@mostlychris Zerotier is free :dummy face:
Yep. Whatever works best in your situation. I use wireguard personally.
@@yousaf.saleem I am in that exact position as I use LTE internet. Highly recommend using Ngrok to create a tunnel. There's a free tier that. An achieve this.
Very informative as Always. Thanks.
You're welcome.
Gosh... your videos are always amazing and well done. Thank you for thinking about all the ways people need to use something and explaining it like that. Are you a teacher? ..you sound like one of those teachers people remember for their whole lives.
Thank you for the compliments! I am not a teacher but I think I have a knack for explaining things. I treat everything as if I was learning it myself and that helps to explain it to others.
Great video Chris, thank you.
Welcome and thanks for watching!
Impressive and very practical.
thanks looking forward to more videos
Glad you liked it!
MY ESPHomeCurrent version: 1.19.4! Its work! but i cant see the log?
@@benilev7328 Are you looking in the log tab of the add-on? I don't see anything there on mine either but it may not log anything unless you are actively using it. I only see this when I opened the UI:
INFO 200 GET / (0.0.0.0) 118.92ms
INFO 101 GET /ace (0.0.0.0) 3.74ms
INFO Running command 'esphome --dashboard -q vscode /config/esphome --ace'
Good content. (The voice filter though, mades me clear my throat multiple times during the video..)
HA getting so much easier now, I remember back in the day, oh boy.
Very true!
Today it works fine with Firefox as well.
Thanks for the video. Is it possible to connect multiple ble devices to one esp32. If so, would you do a video for that?
It is. However, the new Bluetooth proxies that just came out might be something you can use to pick up passive BLE packets. My video comes out Sunday on this (now for members).
I would like to use this with an ESP32-CAM which control a fan and a few LEDs.
A smartphone connects to The ESP32-CAM as a wi-fi access point. A web server is implemented on the ESP32-CAM. Its web page allows turning the fans and LEDs on and off.
It also display the camera feed and some measurements such as battery state and temperature.
I don't know if this could be used for my project.
Take a look at this page: esphome.io/components/esp32_camera.html. Is this what you are talking about?
is it possible to create an Alexa skill to read LYWSD03MMC sensor with curtom firmware?
Not sure what you mean.
im having an issue in the latest release. I cannot complete initial flash over COM due to my Hass not running local https "limited functionality because youre not browsing the dashboard over a secure connection". I noted in your video you also are not using https yet it somehow works for you?
Yes. I go to the IP of home assistant and I have to accept the certificate exception. It creates an SSL connection even though it's not using the correct domain. You have to have something installed that will do SSL to your HA host.
You can load those in secrets and not display and could use production wifi
True. There is a secrets option at the top of the page. It is NOT the same as the secrets file in Home Assistant native in case anyone reads this. Oh, and I've used the secrets on subsequent videos.
Did you delete the part when you drop the sensor?? Hihihi... only in live video. Thanks for your video.
I actually re-filmed the whole thing so it could be more concise so I applied the lessons I learned from the live stream, lol.
Hi Chris! My Home Assistant is 2021.12.8 (latest), which doesn't have a "Supervisor" tab on the sidebar (have to use the "Configuration" tab). When I try to install ESPHome I get a popup asking "Please enter connection settings of your ESPHome node." I've looked everywhere and haven't found clear instructions on how to deal with this new issue.
Have you installed the ESPHome add-on first. You need to do that before trying to install the integration. Regarding the supervisor tab--they moved all that under a more unified UI experience but you found where it is now.
@@mostlychris Hi Chris! Got it to work! I had to download the repository from Github. Thank You very much for your help. Looking forward to watch more videos. Regards, Nelson.
Excellent. Good job!
This is an old description …. It doesn’t work with the current version anymore. Unfortunately
Hai, How can add my sonoff 4ch pro R3 in ESp home pls advise...
I think you are talking about this device. Full instructions here: esphome.io/devices/sonoff_4ch.html
@@mostlychrisThank you
You're welcome.
In my old naberhood his kid madason was my frend
Hello. Please tell me why when I enter the IP address (taken from the router and set it as static) in the "Host" field and then send it it says "Failed to connect to the ESP. Please make sure that your YAML file contains the 'api:' line". Therefore, the ESP32 cannot be included in the integration site. Help me. Thank you!
Make sure you have the latest version of everything.
Only works on Chrome or Edge?
OK, but what about Chrome on a Raspberry Pi?
Why is this being touted as something new my interface for ESPhome is on my browser and I have been loading firmware (installing) for some time now. Please what am I missing in the new round of updates?
It's new because it allows you to program without having to be physically plugged into the device esphome is installed on.
@@mostlychris I have been programming my esphomes from another computer for a long time. Using esphome flasher, but I guess the difference is that you dont need to install that.
I agree, this is just improving what has already been possible. But yeah, if you used to crawl into the closet to plug in the device then I understand the excitment (if you didnt know about esphomeflasher) :D
Agree. "New" is relative to what one has been doing already. There are a bunch of different ways to do things. This is more new to the Home Assistant ecosystem and a one-stop shop for flashing these devices. The UI is also new compared to what it used to be.
@@mostlychris However the fact that you share the information on RUclips is much appreciated though:) Keep it up
Topppp🔝🔝🔝
Thanks.
It's been a week and I'm still stuck at getting the green bar to show up, like at 1:24. The fact that I can't even get that to work is frustrating.
Dave, That usually means that the device can't be seen on the network (wifi). Does it show up in your list of devices on your wifi router?
For some reason, your video does not match the display or the settings of my Mac and Pi base ESP8266 system. This is April 2022 now. Have things changed that much or am I missing something?
There have been UI changes so it is quite possible that it is different since making this video. That's a side-effect of rapid updates outpacing video updates. What is different?
@@mostlychris Differences are hard for me to tell as I can't make an A/B comparison. However, I have established that the HA version I installed is in a container so I can have the Raspian desktop,. That install can not have the full set of facilities shown in your video. I have rebuilt my HA without the container, so now I can't run a python script I had been working on for months - no Raspbian desktop.. I can't add the missing modules required either, even via the addons ( that I can now install ). Irritating !
Ahh. Yes that would be the difference. Have you looked into this: www.home-assistant.io/integrations/python_script/ or this: appdaemon.readthedocs.io/en/latest/HASS_TUTORIAL.html
for me it takes me to Home assistant Integration page and ask for a Host Ip. which I don't know
What part does it do that in or what link?
@@mostlychris Once I have flashed inital firmware from web tool esphome.github.io/esp-web-tools/ it links to the home assistant integration page and ask for a Host IP.
never mind, found the hostname. It was the Ip of ESP32 found using find. Fing is a very nice tool regarding networking
@@yousaf.saleem Glad you got it working! Fing is nice indeed.
@@mostlychris but I can't get any reading from flashed Xiamoi $4 thermometer using esp. Instead it is working with raspberry pi bluetooth. Eventhough Raspberry pi is located 4x the distance compared to esp32 board
How to fix Https requirement?
You need to install DuckDNS or LetsEncrypt add-on (DuckDNS includes Lets Encrypt now).
How are you doing this? I see your URL to your home assistant shows as "Not secure" which I am assuming means your server is not SSL. but when I try it I get this and cannot run the Web tools. "Limited functionality because you're not browsing the dashboard over a secure connection (HTTPS)."
Ahh.. I thought I mentioned that. Welp, chalk one up for editing. You can do this on SSL enabled browsers. In my case, I am connecting via https using the local IP address of the HA server but adding an exception in the browser when it pops up that option. Adding the exception causes it to show insecure even though it is HTTPS. I am also only on the local network so I'm comfortable doing it that way.
@@mostlychris figured that was the case. I did it a little different. I left my local network with http so I don't have to deal with the pop up insecure exception and when I flashed the ESP I used my Nabu Casa generated URL which is SSL and it worked. Even from the local network
@@mattriding5588 I was going to suggest nabu casa. Didn't know if you had that.
Just recently discovered HomeAssistant/ESPHOME how to's and what it seems obvious, to his noob, noone ever mentions hardware requirement for these programs run on. can deduce on dedicated PC/Rpi running linux, VM's ? Home Assistant appliances available? Enlighten this novice please.
There are different options for Home Assistant to run on. I am running both on an Odroid N2+ (production) and a Raspberry pi 4 (test/dev). This page discussion options www.home-assistant.io/installation/. Also, if you are new, check out my getting started playlist ruclips.net/p/PLFFSkDDgcMEx9NUd3PIaDI6JbuDte7MH9
Im hoping to make a batt. powered ir {PIRs lie like DEAMONrats:} motion detector that connects to esp home.
Can you point me to someone that can help. I want to link it to a wifi light that alerts me when triggered and the color of the light tells me what zone there in. Hope you can point me to some one and thanks for your time.