EverythingSmartHome / everything-presence-one

Official Repo for the Everything Presence One sensor!
400 stars 71 forks source link

OTA Update to 2024.7.0 and 2024.7.1 failing #208

Closed TomFrank19087 closed 1 month ago

TomFrank19087 commented 1 month ago

This applies to both EP1 and EP Lite. When updating to 2024.6.6 I had to change my config files ota:, platform: esphome to ota:, platform: http_request, and the update was successful. Both the 2024.7.0 and 2024.7.1 updates fail, claiming platform: esphome is missing (see logs below). If I revert back to platform: esphome, it fails because http_request is missing, just like iit did before the 2024.6.6 update. If I include both I get a duplicate parameter error. The complies seem to go fine, so I think there's an issue with my yaml files. Below are my yaml files and the update all logs from ESPHome. Other than the ota platform changes, I've made no other edits to the yaml files since adding the devices. Thank you.

everything-presence-one-e011a8.yaml

substitutions: name: everything-presence-one-e011a8 packages: Everything_Smart_Technologies.Everything_Presence_One: github://everythingsmarthome/presence-one/everything-presence-one.yaml esphome: name: ${name} name_add_mac_suffix: false

ota: platform: http_request

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

everything-presence-lite-890a04.yaml

substitutions: name: everything-presence-lite-890a04 friendly_name: Everything Presence Lite 890a04 packages: EverythingSmartTechnology.Everything_Presence_Lite: github://everythingsmarthome/everything-presence-lite/everything-presence-lite-ha.yaml@main esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name} api: encryption: key: XXX Redacted XXX

ota: platform: http_request

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

Logs

Updating /config/esphome/everything-presence-lite-890a04.yaml

INFO ESPHome 2024.7.1 INFO Reading configuration /config/esphome/everything-presence-lite-890a04.yaml... INFO Generating C++ source... INFO Compiling app... Processing everything-presence-lite-890a04 (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

Updating /config/esphome/everything-presence-one-e011a8.yaml

INFO ESPHome 2024.7.1 INFO Reading configuration /config/esphome/everything-presence-one-e011a8.yaml... WARNING GPIO15 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 Generating C++ source... INFO Compiling app... Processing everything-presence-one-e011a8 (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

======================== [SUMMARY] ========================

EverythingSmartHome commented 1 month ago

This isn't need it at all, it's because the config is modified from standard. To revert back to original, completely remove the OTA block as that gets pulled down from the Github as part of the package.

TomFrank19087 commented 1 month ago

That did the trick! Both EP1 and EPLite successfully updated to the just posted 2024.7.2 update. Many thanks, Lewis!