The secret to automatic ESPHome device updates!

preview_player
Показать описание
Discover the secret to automatically updating your ESPHome devices! With this simple trick, you can ensure that your home assistant devices are always up to date without any hassle. Say goodbye to manual updates and hello to hassle-free automation with this easy guide. Keep your home running smoothly with automatic ESPHome device updates.

Links referred to in this video:

⭐⭐⭐
⭐⭐⭐

Music by:

00:00:00 Introduction
00:01:07 Creating the script to update all the ESPHome devices automatically
00:04:13 Create the automation to automatically update your ESPHome devices

#homeassistant #tutorial #ESPHome #EffortlessUpdates #ComprehensiveGuide #HomeAutomation #SmartHome #DIY #IoT #FirmwareUpdates #UpdateGuide #ESP8266 #ESP32 #Automation #OpenSource #InternetOfThings #IoTProjects #DIYProjects #TechGuide #SmartDevices
Рекомендации по теме
Комментарии
Автор

I started playing around with Home Assistant just a couple of weeks ago and came across your channel shortly thereafter. I love the no nonsense and example driven approach you use to demonstrate your knowledge. I'm a software developer by trade, so a bit of coding doesn't intimidate me. However, the concept count with Home Assistant is high, so seeing some solid examples helps me understand how a number of concepts fit together. Keep up the great work!

DeliberateGeek
Автор

"Wouldn't it be great if all your devices could update automatically as soon as the ESPHome update is installed ?"
For me the question is more "Wouldn't it be great if ESPHome didn't push updates every two days or even several in a single day?" 😂
Joking aside, great idea and well done, a workaround at this level is always good to take!

blm
Автор

This is something that is very useful for me. I have lots of ESPHome devices and updating them is a real pain in the a**. From a fellow dutchie, thanks!

martinvermeer
Автор

Well, after the much feared 2023.12 update, I went back to the manual approach.
I do genuinely want to stay as up-to-date as humanly possible, but it needs to be done reasonably and after reading the change notes.

For some reason, the old saying of "if it aint broke, don't fix it" resonated with me for the past couple months.
The introduced change of non-alphanumerical characters broke everything in my house as we use different characters than the english alphabet.

I will implement the script and test it - but I will be going in with the manual approach. I cannot afford another episode of a "mad wife" xD

matejfoltyn
Автор

Great video. I used the matching blog post to set this up but I did have a couple of syntax issues. I had to change all the quotes in the templates and add couple of spaces in front of the entity_id after target: maybe this was just a cut and paste issue for me but worth a look for anyone with syntax errors.

NigelGent
Автор

Thanks a lot for this one ! And just on time for the update of this morning 👌
I just added an notification at the end of the script, so I know all the updates are done.

christian
Автор

Many thanks, really enjoy your tutorials! Keep going, you are helping people who want to create something by following your guidances!

saracenas
Автор

This is huge! What a time saver! Thank you!

markkozik
Автор

Got it working! At least I'll see the next time there's an ESPHome update. Thanks Ed!

gnospanker
Автор

Thank you. Your channel continues to provide succinct explanations to real-world problems in the Home Assistant sphere.

I would love to see you tackle debugging failures if possible. For example, when I run this automation, or click the Update All; HA reaches out to grab the updated code, but all installs fail sequentially - usually with some note about indentation. I have no idea if that's normal, broken, or simply something i've managed to mess up :)

davesadler
Автор

First i got an error, then i purchased the blueprint and all went smooth. Recommended!

renedevrind
Автор

Great tutorial!
Somehow I was waiting for it 😂

stefan-lupo-pelzl
Автор

Nice idea Ed! I bought you a Ko-fi to help support the channel. I'll download and give the blueprint a spin later. I currently use a conditional card to show all available updates in HA and I also receive a mobile notification as well. Thanks and have a good day!

wscottfunk
Автор

Very useful ! Thanks (again) for your very clear explanation and the quality of the video.
I personaly tweaked a little this automation adding a notification on Telegram with an actionable button "upgrade"

HollyFredD
Автор

Great video! As this was the first time creating a script, I had to add "script: !include scripts.yaml" to my configuration.yaml before the the script would appear in the HA GUI.

joshuawoomusicstreamvault
Автор

First off Thank you for this tutorial! Second is there a way to exclude entities that you don't want to update in this somehow? I have 3 pc remotes that will turn on/off pc's with updates. I would rather do that manually. This is awesome though. Can't use the automation bit because of the pc remotes but having a button on the dashboard makes this good for me. No more one at a time mess!

christopherhunt
Автор

The only difference to have the "for each" - command at the end is the fact that the code will be executed once for sure. When it is on the top it won't be executed if there are no ESP32Home devices. So the system will put out an error if there are no devices when you don't change the code.

Within the last updates I had too many devices or integration making problems or failing and I needed to wait for an update. My Xiaomi Airfilter is totally gone after one of these updates and now I can't use him via HA anymore. So an auto update is out of the question as there is no way to downgrade again. Still good video, thanks for sharing.
And now I will try to find a way that only weight measurements with body statistics are taken into HA if I use my Xiaomi Body Composition Scale 2.

captain_loeffel
Автор

"This can all be done in a single automation without needing a script, but as I mentioned earlier [...] initiate the update via a button on your dashboard"
In fact, this too can be done with a single automation! When you start an automation via a button, it will execute the action part, the manual start override the trigger! (And even the conditions part if I remember correctly)

blm
Автор

Awesome idea Ed! I’m shocked that HA doesn’t have this feature built in by default like with the add-ons! Would it be easy enough to add exceptions to the script/automation, so that it only auto updated certain devices within ESPhome rather than all? Many devices I’m happy to have auto update, but some I like to perform manually in case there is an issue.

joshcliffejones
Автор

Hi. Great video. Would this work for WLED flashed devices? Thanks and cheers!

ha_tinkerer