mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-10-26 22:10:21 +00:00
Add Managed Updates via HTTP Request
This commit is contained in:
1 parent
c18eed0fee
commit
25dae864eb
23 files changed
+1032
-73
No files matched your search
+19
-2
@@ -10,7 +10,7 @@ substitutions:
|
||||
# Project Name
|
||||
project_name: "China Athom Technology.Athom Plug V3"
|
||||
# Projection version denotes the release version of the yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v2.0.2"
|
||||
project_version: "v2.0.3"
|
||||
# Restore the relay (GPO switch) upon reboot to state:
|
||||
relay_restore_mode: RESTORE_DEFAULT_ON
|
||||
# Set the update interval for sensors
|
||||
@@ -46,7 +46,7 @@ esphome:
|
||||
comment: "${device_description}"
|
||||
area: "${room}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: 2025.7.0
|
||||
min_version: 2026.6.0
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
@@ -115,6 +115,23 @@ api:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
# Enables OTA firmware flashing from a URL (used by the update component below)
|
||||
- platform: http_request
|
||||
|
||||
# Required by the ota http_request platform and the update component.
|
||||
# verify_ssl: false skips TLS cert validation to reduce heap/RAM pressure during
|
||||
# the download; the manifest's MD5 still verifies firmware integrity before flashing.
|
||||
http_request:
|
||||
verify_ssl: false
|
||||
|
||||
update:
|
||||
# Managed updates via HTTP request: periodically checks the published manifest
|
||||
# and exposes a "Firmware Update" entity, pointing at this device's GitHub Pages
|
||||
# manifest. Pages URLs avoid the redirect/buffer issues of Release download URLs.
|
||||
- platform: http_request
|
||||
name: "Firmware Update"
|
||||
source: https://athom-tech.github.io/esp32-configs/firmware/athom-smart-plug.manifest.json
|
||||
# update_interval defaults to 6h (how often it checks, not installs)
|
||||
|
||||
logger:
|
||||
baud_rate: 0 # 0 Enables logging, but disables serial-port logging to free CPU and memory
|
||||
|
||||
Reference in new issue
Block a user