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
  • ХоббиХобби

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

  • @mostlychris
    @mostlychris  3 года назад +5

    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.

    • @yousaf.saleem
      @yousaf.saleem 3 года назад +2

      what about us poor souls, who are behind CGNAT and can't use DuckDNS? :Crying:

    • @mostlychris
      @mostlychris  3 года назад +1

      Nabu Casa!

    • @yousaf.saleem
      @yousaf.saleem 3 года назад

      @@mostlychris Zerotier is free :dummy face:

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

      Yep. Whatever works best in your situation. I use wireguard personally.

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

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

  • @Kev7274
    @Kev7274 3 года назад +1

    Very informative as Always. Thanks.

  • @kpurintun
    @kpurintun 2 года назад +1

    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.

    • @mostlychris
      @mostlychris  2 года назад +1

      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.

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

    Great video Chris, thank you.

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

      Welcome and thanks for watching!

  • @benilev7328
    @benilev7328 3 года назад +2

    Impressive and very practical.
    thanks looking forward to more videos

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

      Glad you liked it!

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

      MY ESPHomeCurrent version: 1.19.4! Its work! but i cant see the log?

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

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

  • @JoakimMiller67
    @JoakimMiller67 10 месяцев назад

    Good content. (The voice filter though, mades me clear my throat multiple times during the video..)

  • @evertythingtechrelated9715
    @evertythingtechrelated9715 3 года назад +2

    HA getting so much easier now, I remember back in the day, oh boy.

  • @-MrDontCare-
    @-MrDontCare- Год назад

    Today it works fine with Firefox as well.

  • @billkater
    @billkater Год назад

    Thanks for the video. Is it possible to connect multiple ble devices to one esp32. If so, would you do a video for that?

    • @mostlychris
      @mostlychris  Год назад

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

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

    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.

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

      Take a look at this page: esphome.io/components/esp32_camera.html. Is this what you are talking about?

  • @brunosuperman
    @brunosuperman Год назад

    is it possible to create an Alexa skill to read LYWSD03MMC sensor with curtom firmware?

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

    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?

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

      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.

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

    You can load those in secrets and not display and could use production wifi

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

      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.

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

    Did you delete the part when you drop the sensor?? Hihihi... only in live video. Thanks for your video.

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

      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.

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

    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.

    • @mostlychris
      @mostlychris  2 года назад +1

      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.

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

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

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

      Excellent. Good job!

  • @n.r.2258
    @n.r.2258 7 месяцев назад

    This is an old description …. It doesn’t work with the current version anymore. Unfortunately

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

    Hai, How can add my sonoff 4ch pro R3 in ESp home pls advise...

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

      I think you are talking about this device. Full instructions here: esphome.io/devices/sonoff_4ch.html

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

      @@mostlychrisThank you

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

      You're welcome.

  • @Viteza85
    @Viteza85 Год назад

    In my old naberhood his kid madason was my frend

  • @ngoctaiquach3144
    @ngoctaiquach3144 Год назад

    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!

    • @mostlychris
      @mostlychris  Год назад

      Make sure you have the latest version of everything.

  • @AtlantaTerry
    @AtlantaTerry 10 месяцев назад

    Only works on Chrome or Edge?
    OK, but what about Chrome on a Raspberry Pi?

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

    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?

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

      It's new because it allows you to program without having to be physically plugged into the device esphome is installed on.

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

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

    • @mostlychris
      @mostlychris  3 года назад +1

      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.

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

      @@mostlychris However the fact that you share the information on RUclips is much appreciated though:) Keep it up

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

    Topppp🔝🔝🔝

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

    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.

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

      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?

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

    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?

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

      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?

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

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

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

      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

  • @yousaf.saleem
    @yousaf.saleem 3 года назад

    for me it takes me to Home assistant Integration page and ask for a Host Ip. which I don't know

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

      What part does it do that in or what link?

    • @yousaf.saleem
      @yousaf.saleem 3 года назад

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

    • @yousaf.saleem
      @yousaf.saleem 3 года назад

      never mind, found the hostname. It was the Ip of ESP32 found using find. Fing is a very nice tool regarding networking

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

      @@yousaf.saleem Glad you got it working! Fing is nice indeed.

    • @yousaf.saleem
      @yousaf.saleem 3 года назад

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

  • @yousaf.saleem
    @yousaf.saleem 3 года назад

    How to fix Https requirement?

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

      You need to install DuckDNS or LetsEncrypt add-on (DuckDNS includes Lets Encrypt now).

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

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

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

      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.

    • @mattriding5588
      @mattriding5588 3 года назад +2

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

    • @mostlychris
      @mostlychris  3 года назад +1

      @@mattriding5588 I was going to suggest nabu casa. Didn't know if you had that.

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

    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.

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

      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

  • @walkaway6212
    @walkaway6212 Год назад

    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.