Skip to content

Commit

Permalink
Add ota update to all project firmwares (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jul 4, 2024
1 parent cd57ca6 commit a79c9fa
Show file tree
Hide file tree
Showing 25 changed files with 380 additions and 36 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build Firmware
uses: esphome/build-action@v3.1.0
uses: esphome/build-action@v3.2.0
id: esphome-build
with:
yaml_file: ${{ matrix.firmware }}/${{ matrix.device }}.yaml
Expand All @@ -81,6 +81,7 @@ jobs:
mkdir -p output/${{ matrix.device }}
mv ${{ steps.esphome-build.outputs.name }}/* output/${{ matrix.device }}/
echo ${{ steps.esphome-build.outputs.version }} > output/${{ matrix.device }}/version
echo ${{ steps.esphome-build.outputs.project-version }} > output/${{ matrix.device }}/project_version
- name: Alter manifest path
if: ${{ matrix.device != 'pico-w' }}
run: |
Expand Down Expand Up @@ -147,7 +148,7 @@ jobs:
for device in */; do
mkdir -p ../output/$device
pushd $device
version=$(cat version)
version=$(cat project_version)
jq --arg version "$version" '{"name": "${{ matrix.name }}", "version": $version, "home_assistant_domain": "esphome", "new_install_skip_erase": false, "builds":[.]}' manifest.json > manifest.tmp.json
mv manifest.tmp.json manifest.json
popd
Expand Down
17 changes: 15 additions & 2 deletions bluetooth-proxy/esp32-generic-c3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"
platformio_options:
board_build.f_flash: 40000000L
board_build.flash_mode: dio
Expand All @@ -33,6 +33,16 @@ improv_serial:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/esp32-generic-c3/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/esp32-generic-c3.yaml@main
Expand All @@ -51,4 +61,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/esp32-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
board: esp32dev
Expand All @@ -26,6 +26,16 @@ improv_serial:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/esp32-generic/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/esp32-generic.yaml@main
Expand All @@ -44,4 +54,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/gl-s10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"
# turn on Power LED when esphome boots
on_boot:
then:
Expand Down Expand Up @@ -44,6 +44,16 @@ logger:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/gl-s10/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/gl-s10.yaml@main
Expand Down Expand Up @@ -73,7 +83,10 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset

## DEVICE SPECIFIC CONFIGURATION
# network LED (white one) configured as status led
Expand Down
17 changes: 15 additions & 2 deletions bluetooth-proxy/lilygo-t-eth-poe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
# Platform.io does not have an explicit profile for the module.
Expand All @@ -32,6 +32,16 @@ logger:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/lilygo-t-eth-poe/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/lilygo-t-eth-poe.yaml@main
Expand All @@ -49,4 +59,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/m5stack-atom-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
board: m5stack-atom
Expand All @@ -26,6 +26,16 @@ improv_serial:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/m5stack-atom-lite/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/m5stack-atom-lite.yaml@main
Expand All @@ -44,4 +54,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/m5stack-atomS3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
board: m5stack-atoms3
Expand All @@ -29,6 +29,16 @@ improv_serial:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/m5stack-atomS3/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/m5stack-atomS3.yaml@main
Expand All @@ -47,4 +57,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/olimex-esp32-poe-iso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
board: esp32-poe-iso
Expand All @@ -29,6 +29,16 @@ logger:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/olimex-esp32-poe-iso/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/olimex-esp32-poe-iso.yaml@main
Expand All @@ -46,4 +56,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
17 changes: 15 additions & 2 deletions bluetooth-proxy/wt32-eth01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esphome:
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "1.0"
version: "24.7.4.1"

esp32:
board: wt32-eth01
Expand All @@ -29,6 +29,16 @@ logger:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/wt32-eth01/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/wt32-eth01.yaml@main
Expand All @@ -46,4 +56,7 @@ button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
entity_category: diagnostic

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
22 changes: 21 additions & 1 deletion media-player/m5stack-atom-echo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ esphome:
name_add_mac_suffix: true
project:
name: m5stack.atom-echo
version: "1.0"
version: "24.7.4.1"

esp32:
board: m5stack-atom
Expand All @@ -18,6 +18,17 @@ api:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/media-player/m5stack-atom-echo/manifest.json

http_request:
verify_ssl: false

dashboard_import:
package_import_url: github://esphome/firmware/media-player/m5stack-atom-echo.yaml@main
Expand Down Expand Up @@ -131,3 +142,12 @@ light:
- pulse:
transition_length: 250ms
update_interval: 250ms

button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
22 changes: 21 additions & 1 deletion media-player/m5stack-atom-speaker-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ esphome:
name_add_mac_suffix: true
project:
name: m5stack.atom-speaker-kit
version: "1.0"
version: "24.7.4.1"

esp32:
board: m5stack-atom
Expand All @@ -18,6 +18,17 @@ api:
ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/media-player/m5stack-atom-speaker-kit/manifest.json

http_request:
verify_ssl: false

dashboard_import:
package_import_url: github://esphome/firmware/media-player/m5stack-atom-speaker-kit.yaml@main
Expand Down Expand Up @@ -60,3 +71,12 @@ light:
chipset: SK6812
num_leds: 1
rgb_order: grb

button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
Loading

0 comments on commit a79c9fa

Please sign in to comment.