esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Getting Failed config update.http_request when updating two devices #6018

Open SGXander opened 2 months ago

SGXander commented 2 months ago

The problem

Updated ESPHome from 2024.6.3 to 2024.6.6 and two of my 12 devices report the below message when attempting to update. The github version of the config package looks to have the error line requested but "clean build files" fails with the same error. Is there a way to manually clear the cache or force re-download of the package?

Which version of ESPHome has the issue?

2024.6.6

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.6.4

What platform are you using?

ESP32

Board

ESP32-S3-BOX-3

Component causing the issue

ota

Example YAML snippet

substitutions:
  name: "r07-v01"
  id_prefix: "r07_v01"
  friendly_name: R07-V01
  comment: "Office Voice Assistant"

api:
  encryption:
    key: "<REDACTED>"

packages:
  voice_assistant: github://esphome/firmware/voice-assistant/esp32-s3-box-3.yaml@main
  device_common: !include .device_common.yaml
  wifi_supplement: !include .wifi_supplement.yaml
  restart_supplement: !include .restart_supplement.yaml

Anything in the logs that might be useful for us?

INFO ESPHome 2024.6.6
INFO Reading configuration /config/esphome/r07-v01.yaml...
INFO Updating https://github.com/esphome/esphome.git@pull/5230/head
Failed config

update.http_request: [source /data/packages/c46f54c1/voice-assistant/esp32-s3-box-3.yaml:90]

  Component update.http_request requires 'platform: http_request' in component 'ota'.
  platform: http_request
  id: update_http_request
  name: Firmware
  source: https://firmware.esphome.io/voice-assistant/esp32-s3-box-3/manifest.json

Additional information

No response

Teagan42 commented 2 months ago

Add:

ota:
- platform: http_request
  id: ota_http_request
http_request:
beginner2047 commented 2 months ago

Resolved.

If you have platform: esphome for ota, you must have "-" before platform

e.g. Change from ota: platform: esphome password: xxxxxx to ota:

When esphome introduce "platform: esphome", I have followed the guideline to use "-" as day1. However, after one or two version upgraded, I failed to install with "- platform: esphome". Many people ask to add "platform: esphome" without "-". It really solved the issue when I removed "-". Now, in version 2024.6.6, it requests "-" again.

modem7 commented 2 months ago

Resolved.

If you have platform: esphome for ota, you must have "-" before platform

e.g. Change from ota: platform: esphome password: xxxxxx to ota:

  • platform: esphome password: xxxxxx

When esphome introduce "platform: esphome", I have followed the guideline to use "-" as day1. However, after one or two version upgraded, I failed to install with "- platform: esphome". Many people ask to add "platform: esphome" without "-". It really solved the issue when I removed "-". Now, in version 2024.6.6, it requests "-" again.

It'd be clearer if you used a code block in your explanation.

Do you mean something like this?:

ota:
  - platform: esphome
    password: !secret ota_password
thrawnis commented 1 month ago

I couldn't follow beginner2047's response but I did exactly what modem7 said and it worked. Thanks!