Skip to content

Add Battery And Deep Sleep#1

Merged
TrevorSchirmer merged 5 commits into
mainfrom
Add-battery-and-deep-sleep
Mar 7, 2026
Merged

Add Battery And Deep Sleep#1
TrevorSchirmer merged 5 commits into
mainfrom
Add-battery-and-deep-sleep

Conversation

@TrevorSchirmer
Copy link
Copy Markdown
Member

@TrevorSchirmer TrevorSchirmer commented Mar 7, 2026

Version:

Adds:

Fixes:

Breaks:

Checks:

  • Documentation Updated
  • Build Number Incremented In Core.yaml

Summary by CodeRabbit

  • New Features

    • Added Apollo ESK-1 Starter Kit support: battery monitoring, deep sleep management, RGB status LED, integrated sensors, OTA safeguards, and accessory power controls.
  • Documentation

    • Rebranded docs and README to Apollo ESK-1 Starter Kit with kit details, pinout, and links.
    • Added a comprehensive pull request template for contributors.
  • Removed Features

    • Removed Apollo AIR-1 device support and its configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 7, 2026

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: 96dbb3aa-7aa2-4186-a801-35eb79041cc3

📥 Commits

Reviewing files that changed from the base of the PR and between 200966e and febba75.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci.yml

Walkthrough

Replaces AIR-1 and Core ESPHome configs with a new ESK-1 Starter Kit ESPHome project (battery monitoring, deep sleep, OTA, API, sensors, RGB LED). Updates CI workflow (matrix, actions, permissions), adds ESPHome .gitignore, and refreshes README and PR template for ESK-1.

Changes

Cohort / File(s) Summary
CI & Workflow
.github/workflows/ci.yml
Replaced concurrency with permissions, added "Label Check" job using external workflow, updated job name, switched matrix to ESK-1.yaml, upgraded actions/checkout to v5 and esphome/build-action to v7, and renamed build parameter to yaml-file.
VCS ignore
Integrations/ESPHome/.gitignore
Added .gitignore to exclude ESPHome build artifacts and secrets.yaml.
ESPHome configs — removed
Integrations/ESPHome/AIR-1.yaml, Integrations/ESPHome/Core.yaml
Removed legacy AIR-1 device configuration and Core substitutions/ESP32/global/API/web_server blocks.
ESPHome configs — added
Integrations/ESPHome/ESK-1.yaml
Added full ESK-1 Starter Kit ESPHome project: substitutions/metadata, ESP32 board settings, I2C, max17048 battery monitoring, WS2812 RGB light, deep sleep with configurable duration, OTA/API, WiFi/AP, sensors (temp, uptime, WiFi RSSI, battery voltage/%), binary sensors, switches, scripts, automations, and boot/on-connect behaviors.
Docs & templates
README.md, PULL_REQUEST_TEMPLATE.md
Rebranded README to ESK-1 Starter Kit with features, kit contents, pinout, links; added detailed PR template with sections, change-type checklist, and verification checklist.

Sequence Diagram(s)

sequenceDiagram
  participant Device as ESK-1 (ESP32)
  participant Battery as max17048
  participant HA as HomeAssistant/API
  participant OTA as OTA Server

  Device->>Battery: read voltage & percentage
  Battery-->>Device: battery metrics
  Device->>Device: update RGB LED based on battery metrics
  alt OTA mode active
    Device->>HA: set ota_mode true
    HA->>OTA: request firmware
    OTA-->>Device: deliver firmware
    Device->>Device: apply OTA (stay awake)
  else Normal operation
    Device->>HA: report sensors (temp, uptime, rssi, battery)
    HA-->>Device: acknowledge
    Device->>Device: enter deep sleep (duration configurable)
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰 I hopped from AIR to ESK with a cheerful little thrum,
Batteries buzz and LEDs glow — awake, then softly numb.
OTA keeps me safe and sound, deep sleep guards the night,
A starter kit of tiny dreams, hopping into light!


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@TrevorSchirmer TrevorSchirmer added the new-feature New feature label Mar 7, 2026
@TrevorSchirmer TrevorSchirmer merged commit 40fcb23 into main Mar 7, 2026
5 checks passed
@TrevorSchirmer TrevorSchirmer deleted the Add-battery-and-deep-sleep branch March 7, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants