Skip to content

Add Firmware Channel switching and serve end-user images for OTA#65

Open
bharvey88 wants to merge 1 commit into
betafrom
firmware-channel
Open

Add Firmware Channel switching and serve end-user images for OTA#65
bharvey88 wants to merge 1 commit into
betafrom
firmware-channel

Conversation

@bharvey88

Copy link
Copy Markdown
Contributor

Version: 26.7.7.1

What does this implement/fix?

Same Stable/Beta firmware switching as CAST-1 (naming per ApolloAutomation/CAST-1#43):

  • Firmware Channel select (Stable/Beta) sets the OTA manifest URL via a new apply_ota_source script. Stable = GitHub Pages (main branch builds), Beta = rolling beta pre-release assets.
  • Firmware Update button force-installs the selected channel's firmware. It re-applies the manifest URL first (so a just-switched channel is fetched before forcing) and temporarily disables BLE during the download to free heap for TLS (no-op on non-BLE images). It also prevents deep sleep for the download duration.
  • Updates now serve the end-user images: the four Minimal yamls gain the managed update system and CI serves them at firmware/, firmware-b/, firmware2/, firmware-b2/; the improv images move to *-factory/ for the web installer only. Per-variant manifests are keyed by a variant_slug substitution ("", "-b", "2", "-b2"), replacing the per-file firmware_update_manifest_url. Minimal image device identity is aligned with the improv images (nothing fielded is renamed; apollo-temp-1b-42 kept as-is). wifi: on_connect now refreshes the update entity - same fix as Fix firmware update entity being stale for 6h after boot #61, so that PR's YAML hunks become redundant (its release-drafter fix stands).
  • build-beta.yml (new): pushes to beta build the end-user image(s) and publish them to a rolling beta pre-release with manifests rewritten to absolute URLs.
  • update component id renamed firmware_update -> update_http_request to match the other Apollo repos.

All eight configs validated on ESPHome 2026.6.4. Not yet tested on hardware.

Types of changes

  • Bugfix (fixed change that fixes an issue)
  • New feature (thanks!)
  • Breaking change (repair/feature that breaks existing functionality)
  • Dependency Update - Does not publish
  • Other - Does not publish
  • Website of github readme file update - Does not publish
  • Github workflows - Does not publish

Checklist / Checklijst:

  • The code change has been tested and works locally
  • The code change has not yet been tested

If user-visible functionality or configuration variables are added/modified:

  • Added/updated documentation for the web page

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@bharvey88, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ce6a455a-7f9f-4ed6-a78a-8573fd844013

📥 Commits

Reviewing files that changed from the base of the PR and between a314d08 and de1f791.

📒 Files selected for processing (21)
  • .github/workflows/build-beta.yml
  • .github/workflows/build.yml
  • Integrations/ESPHome/.gitignore
  • Integrations/ESPHome/Core.yaml
  • Integrations/ESPHome/TEMP-1.yaml
  • Integrations/ESPHome/TEMP-1B.yaml
  • Integrations/ESPHome/TEMP-1B_BLE.yaml
  • Integrations/ESPHome/TEMP-1B_BLE_R2.yaml
  • Integrations/ESPHome/TEMP-1B_Minimal.yaml
  • Integrations/ESPHome/TEMP-1B_Minimal_R2.yaml
  • Integrations/ESPHome/TEMP-1B_R2.yaml
  • Integrations/ESPHome/TEMP-1_BLE.yaml
  • Integrations/ESPHome/TEMP-1_BLE_R2.yaml
  • Integrations/ESPHome/TEMP-1_Minimal.yaml
  • Integrations/ESPHome/TEMP-1_Minimal_R2.yaml
  • Integrations/ESPHome/TEMP-1_R2.yaml
  • Integrations/ESPHome/beta-channel/TEMP-1B_Minimal.yaml
  • Integrations/ESPHome/beta-channel/TEMP-1B_Minimal_R2.yaml
  • Integrations/ESPHome/beta-channel/TEMP-1_Minimal.yaml
  • Integrations/ESPHome/beta-channel/TEMP-1_Minimal_R2.yaml
  • static/index.html
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch firmware-channel

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bharvey88 bharvey88 force-pushed the firmware-channel branch 3 times, most recently from 88cbbac to bc737a1 Compare July 8, 2026 16:58
Same feature as CAST-1 and AIR-1 (ApolloAutomation/AIR-1#107):

- Firmware Channel select (Stable/Beta) sets the OTA manifest URL via a
  new apply_ota_source script keyed by a per-variant variant_slug
  substitution ("", "-b", "2", "-b2"), replacing the per-file
  firmware_update_manifest_url; Firmware Update button force-installs
  and prevents deep sleep for the download duration.
- The four Minimal yamls (the adopted end-user configs) gain the managed
  update system, and their device identity is aligned with the improv
  images since they become the images fielded devices update onto.
- build.yml now serves the Minimal images at firmware*/; the improv
  images move to *-factory/ for the web installer only.
- build-beta.yml publishes beta builds of all four variants to a rolling
  beta pre-release.
- update component id renamed firmware_update -> update_http_request to
  match the other Apollo repos, and wifi on_connect refreshes the update
  entity (same fix as PR #61).

The BLE variant yamls also gain the managed update system (they
inherit the Firmware Update button and apply_ota_source from Core.yaml,
so they must define update_http_request for CI to pass).

Beta-channel builds compile thin beta-channel/ wrapper yamls so the
Firmware Channel select defaults to Beta on firmware obtained from the
beta channel (fresh flashes only; stored choices still win).

Version: 26.7.8.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant