core: ESP device won't update to 2024.6.0

The problem

I updated the general ESP Home earlier, but now I have 3 ESP devices that show as needing to be updated (as usually happens). When I ckick on UPDATE, I get the error:

Failed to call service update/install. Error compiling esp32-bluetooth-proxy-8554d0.yaml; Try again in ESPHome dashboard for more information.

If I try to go through the ESPHOME console, I get:

INFO ESPHome 2024.6.0
INFO Reading configuration /config/esphome/esp32-bluetooth-proxy-8554d0.yaml...
Failed config

At least one platform must be specified for 'ota'; add 'platform: esphome' for original OTA functionality

What version of Home Assistant Core has the issue?

2024.6.3

What was the last working version of Home Assistant Core?

2024.6.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESPHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome

Diagnostics information

5c53de3b_esphome_2024-06-20T03-12-33.017Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 12
  • Comments: 29 (6 by maintainers)

Most upvoted comments

@TheFes Wherever it is, I cannot find the file that contains it. I’ve only found a single configuration.yaml anywhere in the folder structure so far, and it’s not in there. There are two other yaml files in the esphome folder, but there’s no ota in any of those either.

I don’t know how to check for inclusion of an online package. If that’s a thing, it’s not something I knowingly did. I can’t remember having done anything in HA more “advanced” than modifying a card’s yaml using the built-in editor.

When I have some more time I’ll update again and try to add the ota section as suggested above to the configuration.yaml and see what happens. I didn’t want to do that before, because of the password, but with that confirmed as optional it’ll hopefully “just work”. 😃

Go to your ESPHome:

1

2

Well, technically ota: expects a list, so this would be better (without the - it will work until you want to add a 2nd OTA platform):

ota:
  - platform: esphome

Thankyou @jesserockz!

That’ll teach me! - Worked perfectly, super simple.

This kind of end-user laziness is your punishment for rolling so many seamless updates that I stopped bothering to read the notes on ‘em! 😃

Me too 👍

I somehow missed that we’re talking about the configuration file for the device, not esphome or HA as a whole. Thanks to @velddriel’s image, I’m all sorted now. 😃

Well, technically ota: expects a list, so this would be better (without the - it will work until you want to add a 2nd OTA platform):

ota:
  - platform: esphome

Thanks for the tip!

I somehow missed that we’re talking about the configuration file for the device, not esphome or HA as a whole. Thanks to @velddriel’s image, I’m all sorted now. 😃

You missed it because they didn’t explicitly mention it in the release docs. Developer love to assume you have all the same context in your head that they do. This is why HA forums are full of posts with random snippets of YAML script without any indication where to place them. 😃

Seems like a classic case where home assistant should apply an autofix given this was a breaking change.

I didn’t catch it as the release notes said the config would fail to validate, yet the error message didn’t say i had a validation problem. As such i had read the release notes and never linked the two issue in my head.

Remove safe_mode: true and update your GPIOXX to your GPIO pin that you are using.

Thank you! They’ve now updated without issue. I appreciate the straightforward answer

Remove safe_mode: true and update your GPIOXX to your GPIO pin that you are using.

I am having the same problem, but I am not able to find the file that I need to modify. I am using home assistant yellow. I am using studio Code Server. I have tried searching for some of the words and am not able to find it. I believe ESPHOME is at 2024.6.1. Bluetooth Proxy… are at 2024.5.5 to upgrade to 2024.6.1. Is the solution documented here able to fix the problem if I can find where the files I need to update. Thank you, Ray,

It’s on every device YAML file. You need to update each device with the new ota platform.

I found the yaml files and updated them and the components updated. Thank you very much

Ditto here too - blindly updating without checking release notes! Thanks for the pointers to the notes to know you have to add the platform. If you/I viewed the device YAML, it showed the error there too.

Thanks - Steve

Hi, I added this to the configuration yaml of my ESP32-S3-BOX-3. ota: platform: esphome Validating this yaml succeeded. Try the OTA update ESPHome 2024.6.1. again, but now the log shows this. Anyone an idea? <<INFO ESPHome 2024.6.1 INFO Reading configuration /config/esphome/esp32-s3-box-3-05a480.yaml… INFO Updating https://github.com/esphome/esphome.git@pull/5230/head WARNING GPIO0 is a strapping PIN and should only be used for I/O with care. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins INFO Starting log output from 192.168.178.45 using esphome API INFO Successfully connected to esp32-s3-box-3-05a480 @ 192.168.178.45 in 0.323s WARNING esp32-s3-box-3-05a480 @ 192.168.178.45: Connection error occurred: esp32-s3-box-3-05a480 @ 192.168.178.45: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.6.1). WARNING Can’t connect to ESPHome API for esp32-s3-box-3-05a480 @ 192.168.178.45: esp32-s3-box-3-05a480 @ 192.168.178.45: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.6.1). (HandshakeAPIError) INFO Trying to connect to esp32-s3-box-3-05a480 @ 192.168.178.45 in the background>>

Copy:

ota: platform: esphome

Then save, validate and install

YES! It worked! Tnx. I didn’t do the Install… stupid!