Skip to content

Commit

Permalink
ota https support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalseReality committed Nov 27, 2024
1 parent c91a027 commit ae56221
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions common/ota_https.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<esp-web-install-button manifest="firmware/aquaponics_kit.manifest.json"></esp-web-install-button>
<esp-web-install-button manifest="firmware/aquaponics-kit.manifest.json"></esp-web-install-button>

<script type="module" src="https://unpkg.com/[email protected]/dist/web/install-button.js?module"></script>

Expand Down

0 comments on commit ae56221

Please sign in to comment.