From ae56221ed139f627dab423dafce3ecd22aca31f1 Mon Sep 17 00:00:00 2001 From: TheRealFalseReality Date: Tue, 26 Nov 2024 23:34:38 -0500 Subject: [PATCH] ota https support --- common/ota_https.yaml | 30 ++++++++++++++++++++++++++++++ static/index.md | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 common/ota_https.yaml diff --git a/common/ota_https.yaml b/common/ota_https.yaml new file mode 100644 index 0000000..abdb775 --- /dev/null +++ b/common/ota_https.yaml @@ -0,0 +1,30 @@ +ota: + - platform: http_request + +http_request: + verify_ssl: false + +update: + - platform: http_request + name: Aquaponics Kit Firmware Update + id: update_firmware_sensor + entity_category: 'diagnostic' + icon: mdi:update + source: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/aquaponics-kit.manifest.json + web_server: + sorting_group_id: sorting_group_diagnostic + +button: + - platform: template + id: update_firmware + name: Update Aquaponics Kit Firmware - Stable + entity_category: "config" + icon: mdi:update + disabled_by_default: true + web_server: + sorting_group_id: sorting_group_config + on_press: + then: + - ota.http_request.flash: + md5_url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/aquaponics-kit-esp32.ota.bin.md5 + url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/aquaponics-kit-esp32.ota.bin \ No newline at end of file diff --git a/static/index.md b/static/index.md index 0a6fd53..d48e9e4 100644 --- a/static/index.md +++ b/static/index.md @@ -24,7 +24,7 @@ PMP - Controlled Doser Pump You can use the button below to install the pre-built firmware directly to your device via USB from the browser. Then, while still connected to USB, connect to WiFi, then add to HomeAssisatnt. Install: - +