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: - +