Skip to content

Add a Waveshare ESP32-S3-ETH template and upstream operations notes - #75

Merged
ptr727 merged 5 commits into
mainfrom
develop
Jul 31, 2026
Merged

ptr727 merged 5 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Promotes the current develop snapshot.

Waveshare ESP32-S3-ETH

Replaces the office Bluetooth proxy's GL-S10, which has no USB port and needed the case opened and UART pads soldered for any bootloader refresh. The Waveshare board carries the same PoE Ethernet role and flashes over USB-C, so it also leaves the pending-reflash list in DEVICES.md.

The board template composes the individual includes rather than common.yaml, because the ethernet component declares CONFLICTS_WITH wifi. The camera and TF card pins are documented in the template header and deliberately not configured, the first because there is no camera to test against and the second because ESPHome ships no SD card component.

Network-agnostic RGB status LED

The same wifi conflict forced rgb-led-status.yaml off the upstream Flo-R1der package, which binds its state to wifi triggers and therefore cannot run on an Ethernet board. It now polls network::is_connected(), the helper that already folds Ethernet, WiFi, modem, and OpenThread together behind their own defines, so one file serves either interface or both. The sixteen per-color scripts collapse to two parameterized ones.

This changes behavior for the three board templates that already used it, so both a WiFi and an Ethernet consumer were compiled.

External usage blocks

Every template gains an External usage: comment block showing the remote github:// form plus what that template needs from the including config. The mechanics were confirmed against the live repository rather than assumed: relative includes resolve inside the fetched package, and !secret falls back to a secrets.yaml beside the including config.

test/ deliberately keeps local includes. A github:// package fetches the named ref rather than the working tree, so a compile test written that way would build main's copy and pass while the change under test is broken.

Verification

  • esphome config across every config in test/ and every device config.
  • Full esphome compile of test/waveshare-esp32-s3-eth.yaml and test/unexpectedmaker-pros3d.yaml.
  • Built sdkconfig confirms octal PSRAM at 80MHz and 16MB flash.
  • On hardware: PSRAM reports 8192 KB, Ethernet links at 100 Mbps full duplex on the configured W5500 pins, and the boot log carries no warnings.
  • markdownlint, cspell, editorconfig-checker, and actionlint all clean.

Also in this promotion

Two earlier commits documenting the upstream ESPHome contribution workflow and its review traps.

ptr727 added 3 commits July 30, 2026 07:08
The GL-S10 the office proxy ran on has no USB port, so every bootloader
refresh meant opening the case and soldering to UART pads. The Waveshare
board carries the same PoE Ethernet role and flashes over USB-C, which is
why it also leaves the pending-reflash list.

The board template composes the individual includes rather than
common.yaml, because the ethernet component declares CONFLICTS_WITH wifi.
That same conflict forced rgb-led-status.yaml off the upstream Flo-R1der
package, which binds its state to wifi triggers. It now polls
network::is_connected(), the helper that already folds the interfaces
together behind their own defines, so one file serves WiFi, Ethernet, or
both. Its sixteen per-color scripts collapse to two parameterized ones.

Every template gains an External usage: block. The remote package form
was confirmed against the live repository: relative includes resolve
inside the fetched package, and !secret falls back to a secrets.yaml
beside the including config.

Verified with esphome config across every test and device config, a full
compile of the new board and the ProS3D, and on hardware: PSRAM reports
8192 KB octal, Ethernet links at 100 Mbps full duplex on the configured
W5500 pins, and the boot log carries no warnings.
Copilot AI review requested due to automatic review settings July 31, 2026 02:21

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.

🟡 Not ready to approve

It introduces a documented factual inconsistency (802.3af vs “passive” PoE), a misleading/safety-relevant usage note around api: in the RGB LED template, and a non-ASCII character that violates the repo’s ASCII-only doc convention.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Adds a new Ethernet-capable ESP32-S3 board template (Waveshare ESP32-S3-ETH), updates the RGB status LED package to work across network interfaces, and documents external “github://” consumption mechanics (plus upstream contribution workflow notes) in the repo’s operational docs.

Changes:

  • Add templates/waveshare-esp32-s3-eth.yaml plus a CI compile test config, and migrate office-bluetooth-proxy.yaml to the new board template.
  • Refactor templates/rgb-led-status.yaml to be network-agnostic (polling network::is_connected()), with parameterized scripts.
  • Add consistent “External usage:” blocks across templates and expand README.md/OPERATIONS.md documentation accordingly.
File summaries
File Description
test/waveshare-esp32-s3-eth.yaml New CI compile-test config for the Waveshare Ethernet board template.
templates/wifi.yaml Adds an “External usage” header documenting remote package usage and required secrets.
templates/wemos-lolin32-lite.yaml Adds “External usage” header for remote consumption.
templates/waveshare-esp32-s3-eth.yaml New Waveshare ESP32-S3-ETH Ethernet board template (W5500 + PSRAM/flash config + composed includes).
templates/unexpectedmaker-pros3d.yaml Adds “External usage” header for remote consumption.
templates/time.yaml Adds “External usage” header for remote consumption.
templates/temperature.yaml Adds “External usage” header for remote consumption.
templates/sonoff-th10.yaml Adds “External usage” header for remote consumption.
templates/sonoff-s31.yaml Adds “External usage” header for remote consumption.
templates/smarthome-ceilsense.yaml Adds “External usage” header for remote consumption.
templates/secrets.yaml Documents that this secrets re-export is internal-only (not suitable for external consumers).
templates/rocket-astra.yaml Adds “External usage” header for remote consumption.
templates/rgb-led-status.yaml Makes status LED logic network-interface agnostic; replaces per-color scripts with parameterized scripts.
templates/ota.yaml Adds “External usage” header and clarifies required secret for OTA password.
templates/norvi-enet-ae06-r.yaml Adds “External usage” header including the special Utils.h handling requirement.
templates/max17048.yaml Adds “External usage” header for remote consumption.
templates/logger.yaml Adds “External usage” header for remote consumption.
templates/konnected-blaq.yaml Adds “External usage” header for remote consumption.
templates/kincony-kc868-asr.yaml Adds “External usage” header for remote consumption.
templates/gls10-bluetooth-proxy.yaml Adds “External usage” header for remote consumption.
templates/ethernet-sensor.yaml Adds “External usage” header and notes the dependency on an ethernet: component.
templates/esp32-s3-wroom-2-n32r8v.yaml Adds “External usage” header describing overlay composition onto the devkit template.
templates/esp32-s3-wroom-2-n16r8v.yaml Adds “External usage” header describing overlay composition onto the devkit template.
templates/esp32-s3-wroom-1-n16r8.yaml Adds “External usage” header describing overlay composition onto the devkit template.
templates/esp32-s3-devkitc.yaml Adds “External usage” header for remote consumption.
templates/efun-sh331.yaml Adds “External usage” header for remote consumption.
templates/easystart.yaml Adds “External usage” header using the url/ref/files/vars form for parameterization.
templates/debug.yaml Adds “External usage” header for remote consumption.
templates/common.yaml Adds “External usage” header for remote consumption.
templates/basic.yaml Adds “External usage” header for remote consumption.
templates/apollo-plt-1b.yaml Adds “External usage” header for remote consumption.
templates/api.yaml Adds “External usage” header and documents the required encryption key secret.
templates/aoycocr-x5p.yaml Adds “External usage” header for remote consumption.
templates/adafruit-esp32-s3-feather.yaml Adds “External usage” header for remote consumption.
README.md Documents external template consumption and adds Waveshare board and updated RGB LED status details.
OPERATIONS.md Adds external package mechanics notes, Waveshare/RGB LED operational notes, and upstream contribution workflow notes.
office-bluetooth-proxy.yaml Migrates the office proxy from GL-S10 to Waveshare ESP32-S3-ETH and adds BLE tracker/proxy blocks.
DEVICES.md Updates fleet documentation to reflect the hardware migration and revised “pending USB reflash” list.
cspell.json Adds new proper nouns used in docs (e.g., Waveshare, Fabrion) to the word list.
Review details
  • Files reviewed: 39/39 changed files
  • Comments generated: 3
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread templates/waveshare-esp32-s3-eth.yaml Resolved
Comment thread templates/rgb-led-status.yaml Resolved
Comment thread OPERATIONS.md Resolved
802.3af is active PoE, so describing the module as both 802.3af and
passive contradicts itself in the term's own vocabulary. The point was
that it claims no GPIO, which is what it now says.

The RGB LED template was documented as needing an api component from the
including config. It contributes one, carrying the on_client_connected
triggers, so composing it alone enables the API server rather than
requiring one, and validates with no encryption key. Confirmed by
composing the package against a bare board and wifi. README.md and
OPERATIONS.md asserted the same thing and are corrected with it.
Copilot AI review requested due to automatic review settings July 31, 2026 02:27

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.

🟡 Not ready to approve

OPERATIONS.md introduces a non-ASCII character that should be rewritten to match the repository’s ASCII-only documentation convention.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Suppressed comments (1)

OPERATIONS.md:353

  • This bullet introduces a non-ASCII character in "Kōan". The repo's docs aim to stay ASCII-only, so this should be rewritten using plain ASCII (or drop the parenthetical name) to avoid encoding churn and keep conventions consistent.
- **esphbot** (Kōan, a Claude) posts a summary comment plus a formal review, quotes replies back point by point, and concedes with evidence when it is wrong. It re-reviews on push by itself, so there is nothing to trigger and nothing to nudge.
  • Files reviewed: 39/39 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

The parenthetical was agent-authored and the character set rule bans
non-ASCII in agent-authored text. The bot's handle is what a reader
needs to identify it, so the name adds nothing the rule has to bend for.

Records why the earlier defence of it was unsound: agent commits carry
the maintainer's identity, so git blame cannot show whether a line was
written by an agent or by the maintainer, and the carve-out for Unicode
the developer deliberately typed cannot be claimed from it.
Copilot AI review requested due to automatic review settings July 31, 2026 04:41

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.

🟡 Not ready to approve

templates/rgb-led-status.yaml uses id(led_system_status)->execute() in a lambda, which is not the correct script execution form for a parameterless script and may break compilation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 39/39 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread templates/rgb-led-status.yaml Resolved
@ptr727
ptr727 merged commit 434e001 into main Jul 31, 2026
32 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