Skip to content

Expose EasyStart BLE connection signal strength as a diagnostic - #62

Merged
ptr727 merged 4 commits into
mainfrom
develop
Jul 23, 2026
Merged

ptr727 merged 4 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Promotes the EasyStart signal-strength diagnostic from develop.

Signal strength diagnostic

Adds ESPHome's built-in ble_client RSSI sensor (type: rssi, entity_category: diagnostic) to the EasyStart template, one per module, with an overridable easystart_rssi_update_interval (default 60s).

  • Reads the live connection RSSI (esp_ble_gap_read_rssi), not advertisement RSSI. That distinction matters: an EasyStart module stops advertising once connected, so the advertisement-based ble_rssi component would be blank exactly when the link is held.
  • Requires no component code - easystart.h and __init__.py are untouched.
  • Consumes no extra connection slot: slots are taken once per ble_client: entry, while the sensor merely attaches a node to the existing client. esp32_ble: max_connections: 5 is unchanged.
  • Blanks while disconnected, matching the component's own offline behaviour.

Why

A marginal BLE link previously surfaced only as every entity going unavailable, indistinguishable from a broken component - it cost a physical relocation of the proxy to diagnose. This turns it into a number.

Verified live on the office proxy after flashing: HVAC 1 reads -93 dBm while connected and decoding (6.3 A), HVAC 2 reads blank with its compressor off. -93 dBm is effectively at the BLE sensitivity floor, which quantifies the marginal placement and gives a target to optimise against when siting a dedicated proxy near the compressors.

Also included

🤖 Generated with Claude Code

dependabot Bot and others added 3 commits July 23, 2026 06:07
…#61)

Bumps the actions-deps group with 1 update: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv).


Updates `astral-sh/setup-uv` from 8.3.2 to 9.0.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@11f9893...c771a70)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions-deps
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add ESPHome's built-in ble_client RSSI sensor (type: rssi,
entity_category: diagnostic) to the EasyStart template, one per module,
with an overridable easystart_rssi_update_interval (default 60s).

It reads the live connection RSSI via esp_ble_gap_read_rssi, not
advertisement RSSI, which matters because a module stops advertising once
connected. It blanks while disconnected, so it separates "out of range"
from "compressor off" - the failure mode that previously surfaced only as
every entity going unavailable. No component code is needed, and the
sensor attaches to the existing ble_client so it consumes no extra
connection slot.

Also added to the CI compile-test config and documented.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
A blank reading does not separate "compressor off" from "out of range",
since running is itself derived from BLE presence. The sensor's value is
the link margin while connected; record the -93 dBm measured on the office
proxy as the concrete marginal-link example.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 23, 2026 22:35

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 EasyStart BLE link RSSI diagnostic into main by adding ESPHome's built-in ble_client RSSI sensor to the reusable EasyStart package and ensuring CI's compile-test config exercises the same sensor definition.

Changes:

  • Add a per-module ble_client RSSI diagnostic sensor to templates/easystart.yaml, with an overridable update interval.
  • Extend the CI compile-test YAML to include the same ble_client RSSI sensor definition for change-gated build coverage.
  • Update documentation/spelling dictionary, and bump astral-sh/setup-uv to v9.0.0 in CI.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
templates/easystart.yaml Adds a ble_client RSSI diagnostic sensor and a new substitution for its update interval.
README.md Updates the repo-level EasyStart template description to mention the RSSI diagnostic.
easystart/test/compile-test.yaml Adds the RSSI sensor to the compile-test config to keep CI coverage aligned with the template behavior.
easystart/README.md Documents how/why to use the new RSSI diagnostic and its operational interpretation.
easystart/AGENTS.md Notes the new RSSI diagnostic behavior for future agent sessions.
cspell.json Adds rssi to the spelling allowlist.
.github/workflows/test-pull-request.yml Bumps astral-sh/setup-uv to v9.0.0.

Comment thread templates/easystart.yaml Resolved
Comment thread .github/workflows/test-pull-request.yml Resolved
The template comment still claimed the sensor separates "out of range"
from "compressor off"; it is blank in both cases. Match the corrected
readme and point at link margin while connected instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 23, 2026 22:40

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

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

@ptr727
ptr727 merged commit fe71b4b into main Jul 23, 2026
11 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