Skip to content

Fix the RGB status LED latch and re-vendor the carried hub files - #81

Merged
ptr727 merged 4 commits into
mainfrom
develop
Aug 6, 2026
Merged

ptr727 merged 4 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Promotes the current develop snapshot to main. Four commits since the last promotion:

The status-LED change is the only device-behavior change in the set. The connected color was latched in a global that any one of the API server's client slots could clear, so a second client disconnecting left the LED white while Home Assistant was still connected. It now reads the api.connected condition, which is the live connection count.

That fix is flashed and confirmed on the office proxy: with two clients attached, one disconnecting re-drives the LED green rather than white. esphome config passes for all eleven consumers of the template, and the full lint set is clean locally.

The other two deployed consumers, the pantry proxy and the HVAC compressor sensor, still run the previous firmware and carry the same latch until reflashed. That is a deployment step, not a repo change.

ptr727 and others added 4 commits August 2, 2026 18:12
Three facts were living only in agent memory, which does not survive a host move. Two are specific to this repository and belong here.

A pull request targeting develop matches none of the workflow triggers, so it sits with an empty check list rather than a pending one, and needs a manual dispatch. A compile job that dies in about 18 seconds is the esphome-nonroot image failing to pull, not a template defect, and the duration is what separates it from a real esp-idf build.

The camera exposure note claimed agc_gain_ceiling as the cause of a dark image. That rests on community reports rather than on anything measured here, and the bench frame that prompted it was dark because the protective film was still on the lens. Both are stated as such.

The third fact, Copilot answering with a quota limit instead of a review, is fleet-wide and went to the hub as ptr727/ProjectTemplate#525.
These files are carried verbatim from ptr727/ProjectTemplate, so a local
copy that differs is drift rather than a choice. The hub's regenerated
fleet divergence report lists this repo for them.

Changed: .markdownlint-cli2.jsonc repo-config/configure.sh

Line endings preserved as each file held them.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Bumps the actions-deps group with 1 update: [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action).


Updates `DavidAnson/markdownlint-cli2-action` from 24.1.0 to 24.2.0
- [Release notes](https://github.com/davidanson/markdownlint-cli2-action/releases)
- [Commits](DavidAnson/markdownlint-cli2-action@6bf21b0...21c1be1)

---
updated-dependencies:
- dependency-name: DavidAnson/markdownlint-cli2-action
  dependency-version: 24.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The connected color latched a boolean that any one of the API server's
client slots could clear, so a second client disconnecting left the LED
white while Home Assistant was still connected and reporting the device
online.

The api.connected condition reads the live connection count instead.
Upstream fires the disconnect trigger after removing the client, so the
condition sees the true state from inside it.
Copilot AI lite review requested due to automatic review settings August 6, 2026 12:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Promotes the current develop snapshot to main, with the only functional behavior change being a fix to the RGB status LED “API connected” state so it reflects the live API connection count rather than a latched per-client flag.

Changes:

  • Fix RGB status LED connected-state handling by switching from a latched global to the live api.connected condition.
  • Re-vendor/update carried “hub” files (comment/doc-only refreshes in this PR’s diffs) and clarify operational hazards in OPERATIONS.md.
  • Bump the pinned DavidAnson/markdownlint-cli2-action GitHub Action to v24.2.0.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
templates/rgb-led-status.yaml Removes the latched api_ok global and uses api.connected to drive the “API connected” LED color reliably with multiple clients.
repo-config/configure.sh Comment/doc refactor for readability while preserving existing apply/check behavior.
OPERATIONS.md Updates operational guidance and documents the “API connected must be live” status-LED rule plus CI/tooling hazards.
.markdownlint-cli2.jsonc Comment-only clarification of markdownlint configuration intent (no rule behavior change in the shown diff).
.github/workflows/test-pull-request.yml Updates the pinned markdownlint action SHA/version comment to v24.2.0.

@ptr727
ptr727 merged commit 384a47b into main Aug 6, 2026
53 checks passed
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.

2 participants