Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ota #70

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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