Skip to content

Compare against a stock-component EasyStart config, and add a WiFi RSSI interval knob - #72

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jul 29, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Promotes develop to main.

Comparison against a stock-component EasyStart configuration

Keen-coffee/home_assistant reads the same Micro-Air EasyStart modules using only stock ESPHome components. It cannot hit the crash described in easystart/ESPHOME-BLE-ISSUE.md, and it is protected twice over:

  • Its ble_client.disconnect action never reports ESTABLISHED, so all_nodes_established_() is permanently false for that client and release_services() never runs. That is the second defect masking the first, in a configuration written with no knowledge of either.
  • Its subscription is the stock ble_client characteristic sensor with notify: true, which establishes in ESP_GATTC_REG_FOR_NOTIFY_EVT after checking the status. Even with the actions removed the ordering would still be correct.

This matters for the upstream report. It turns the "why this is rarely hit" argument from an inference about the bundled components into an observation of a real configuration, and it shows what actually separates a crashing configuration from a safe one: whether a node assigns node_state itself, not how elaborate the configuration is. The undocumented contract only reaches code that implements BLEClientNode directly.

WiFi signal interval knob

templates/wifi.yaml gains wifi_signal_update_interval, defaulting to 60s, which is the interval the wifi_signal sensor already used. Placement surveys can now raise the sample rate per device rather than editing a template shared by every device.

Verified that the other consumers resolve unchanged at 60s (garage-presence-sensor, recirculation-pump-controller, living-room-plant-sensor). The GL-S10 proxy has no wifi_signal sensor, being PoE.

Not included

The 5s survey overrides on hvac-compressor-sensor.yaml are deliberately left uncommitted in the working tree. They exist to walk candidate mounting positions and belong with that exercise, not on main.

Verification

  • esphome config clean for hvac-compressor-sensor.yaml and the other WiFi consumers.
  • markdownlint, cspell, editorconfig-checker, actionlint clean.

…SI interval knob

A third-party configuration for the same hardware is protected from the crash
twice over, once by the defect that masks it and once by the stock notify
sensor ordering correctly. That turns the rarity argument from an inference
into an observation, and shows the contract only reaches code implementing
BLEClientNode directly.

templates/wifi.yaml gains wifi_signal_update_interval, defaulting to the 60s it
already used, so placement surveys can raise the rate without editing the
shared template.
Copilot AI review requested due to automatic review settings July 29, 2026 02:45

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

This PR promotes develop to main by (1) documenting a real-world, stock-component EasyStart configuration that naturally avoids the BLE notify-registration race described in easystart/ESPHOME-BLE-ISSUE.md, and (2) adding a per-device substitution knob to control the WiFi RSSI sensor sampling interval without editing the shared WiFi template.

Changes:

  • Add a defaulted wifi_signal_update_interval substitution to templates/wifi.yaml and wire it to the wifi_signal sensor’s update_interval.
  • Extend easystart/ESPHOME-BLE-ISSUE.md with an external configuration comparison illustrating how stock ble_client components avoid the crash path and how defect 2 masks defect 1.

Reviewed changes

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

File Description
templates/wifi.yaml Adds a default substitution and uses it to parameterize the WiFi RSSI sensor update interval per device.
easystart/ESPHOME-BLE-ISSUE.md Adds a documented third-party stock-component comparison and link reference to strengthen the crash analysis narrative.

@ptr727
ptr727 merged commit 42856a9 into main Jul 29, 2026
49 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