Repository navigation
Add an Ethernet Only switch that turns WiFi off on Ethernet - #120
Conversation
With the Ethernet HAT the device stays on WiFi too, so clients like Music Assistant can end up on the WiFi address. The opt-in switch releases WiFi while Ethernet is connected and brings it back if the cable is unplugged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
No actionable comments were generated in the recent review. WalkthroughThe ESPHome configuration adds an Ethernet Only switch and changes WiFi release and recovery conditions. The README documents the switch and notes a Home Assistant availability issue that can occur when a device was added by WiFi IP. ChangesEthernet and WiFi behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant EthernetOnlySwitch
participant Ethernet
participant WiFiRecoveryProbe
participant WiFi
EthernetOnlySwitch->>WiFiRecoveryProbe: Stop probe when enabled
EthernetOnlySwitch->>Ethernet: Check connection state
EthernetOnlySwitch->>WiFi: Release WiFi when enabled and Ethernet is connected
EthernetOnlySwitch->>Ethernet: Check connection state when disabled
EthernetOnlySwitch->>WiFiRecoveryProbe: Start probe when Ethernet is connected, WiFi is disabled, and WiFi was provisioned
Suggested labels: Suggested reviewers: Merge Risk:
|
Version: 26.11.19.1
What does this implement/fix?
Adds an opt-in Ethernet Only config switch (off and disabled by default). When it's on, WiFi turns off whenever Ethernet is connected, so only the wired address is reachable and advertised, and WiFi comes back if the cable is unplugged. A customer with the HAT found Music Assistant's Sendspin connection on the WiFi address, which caused late-audio drops and an 11-minute dropout when WiFi was blocked.
If Home Assistant added the device by its WiFi IP, it may show it as unavailable after the switch turns WiFi off, until HA restarts or the host is changed; the README says so. Default behaviour is unchanged.
Types of changes
Checklist / Checklijst:
If user-visible functionality or configuration variables are added/modified:
Compiles on ESPHome 2026.10.2. Not tested on hardware yet; worth a bench run with the HAT and a real Home Assistant before it leaves beta.
🤖 Generated with Claude Code
Summary by CodeRabbit