Add Battery And Deep Sleep#1
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughReplaces 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
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
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour 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 |
Version:
Adds:
Fixes:
Breaks:
Checks:
Summary by CodeRabbit
New Features
Documentation
Removed Features