Skip to content

Commit

Permalink
Test ota (#70)
Browse files Browse the repository at this point in the history
* Update aquapi_config.yaml

* modified:   common/device_base_common.yaml
	modified:   common/ota_https.yaml

* Changes not staged for commit:
	modified:   aquapi_camera_config.yaml
	modified:   common/ota_https.yaml
	modified:   common/ota_https_camera.yaml

* removed ota_https
  • Loading branch information
TheRealFalseReality authored Jul 8, 2024
1 parent 66dbea0 commit 83b4de7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion aquapi_camera_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ packages:
common: !include common/device_base_common.yaml
device_base_camera: !include common/device_base_camera.yaml
aquapi: !include common/aquapi.yaml
ota_https: !include common/ota_https_camera.yaml
# ota_https: !include common/ota_https_camera.yaml
# debug: !include common/debug.yaml
4 changes: 2 additions & 2 deletions aquapi_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ substitutions:
name: "aquapi"
friendly_name: "AquaPi"
# App Version - Updated: 6/2024
app_version: "2024.6.4"
app_version: "2024.7.1"

packages:
common: !include common/device_base_common.yaml
device_base: !include common/device_base.yaml
aquapi: !include common/aquapi.yaml
ota_https: !include common/ota_https.yaml
# ota_https: !include common/ota_https.yaml
dallas: !include common/temperature_dallas.yaml
binary: !include common/binary.yaml
# ir_receiver: !include common/ir_receiver.yaml
Expand Down
1 change: 0 additions & 1 deletion common/device_base_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ api:

ota:
- platform: esphome
- platform: http_request

wifi:
ap:
Expand Down
27 changes: 15 additions & 12 deletions common/ota_https.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
substitutions:
update_firmware_sensor_interval: 6h

ota:
- platform: http_request

http_request:
verify_ssl: false

Expand All @@ -13,15 +16,15 @@ update:
icon: mdi:update
source: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/gh-pages/manifest.json

button:
- platform: template
id: update_firmware
name: Update AquaPi Firmware (Experimental - ESP32)
entity_category: "config"
icon: mdi:update
# disabled_by_default: true
on_press:
then:
- ota.http_request.flash:
md5_url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapi-esp32.ota.md5
url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapi-esp32.ota.bin
# button:
# - platform: template
# id: update_firmware
# name: Update AquaPi Firmware (Experimental - ESP32)
# entity_category: "config"
# icon: mdi:update
# # disabled_by_default: true
# on_press:
# then:
# - ota.http_request.flash:
# md5_url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapi-esp32.ota.md5
# url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapi-esp32.ota.bin
24 changes: 12 additions & 12 deletions common/ota_https_camera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ update:
id: update_firmware_sensor
source: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/manifest_camera.json

button:
- platform: template
id: update_firmware
name: Update AquaPi SnapCam Firmware (Experimental - ESP32cam)
entity_category: "config"
icon: mdi:update
# disabled_by_default: true
on_press:
then:
- ota.http_request.flash:
md5_url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapicamera.md5
url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapicamera.ota.bin
# button:
# - platform: template
# id: update_firmware
# name: Update AquaPi SnapCam Firmware (Experimental - ESP32cam)
# entity_category: "config"
# icon: mdi:update
# # disabled_by_default: true
# on_press:
# then:
# - ota.http_request.flash:
# md5_url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapicamera.md5
# url: https://raw.githubusercontent.com/TheRealFalseReality/aquapi/main/bin/ota/aquapicamera.ota.bin

0 comments on commit 83b4de7

Please sign in to comment.