Skip to content

[wifi_info] Add IP address text sensor#58

Merged
TrevorSchirmer merged 3 commits into
betafrom
wifi-info-ip-address
Feb 27, 2026
Merged

[wifi_info] Add IP address text sensor#58
TrevorSchirmer merged 3 commits into
betafrom
wifi-info-ip-address

Conversation

@bharvey88
Copy link
Copy Markdown
Contributor

@bharvey88 bharvey88 commented Feb 24, 2026

Version: 25.8.12.1

What does this implement/fix?

Adds the device's IP address as a diagnostic text sensor using the built-in ESPHome wifi_info platform. The sensor publishes the IP immediately on WiFi connect and updates if it changes — no polling required. It appears in Home Assistant under the device's diagnostic entities, making local access and debugging easier without needing to check the router.

Types of changes

  • Bugfix (fixed change that fixes an issue)
  • New feature (thanks!)
  • Breaking change (repair/feature that breaks existing functionality)
  • Dependency Update - Does not publish
  • Other - Does not publish
  • Website of github readme file update - Does not publish
  • Github workflows - Does not publish

Checklist / Checklijst:

  • The code change has been tested and works locally
  • The code change has not yet been tested

If user-visible functionality or configuration variables are added/modified:

  • Added/updated documentation for the web page

Summary by CodeRabbit

  • New Features
    • Added IP Address sensor—displays your WiFi connection's IP address alongside existing device information.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 24, 2026

Warning

Rate limit exceeded

@bharvey88 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 20 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 196c738 and 0bcb5b7.

📒 Files selected for processing (1)
  • Integrations/ESPHome/Core.yaml

Walkthrough

The pull request adds a new text_sensor configuration to an ESPHome YAML file that exposes the device's WiFi IP address. This introduces a wifi_ip public entity as an "IP Address" sensor using the wifi_info platform, without modifying existing functionality.

Changes

Cohort / File(s) Summary
ESPHome WiFi Sensor Configuration
Integrations/ESPHome/Core.yaml
Adds a new wifi_ip text sensor under the wifi_info platform with an ip_address field to expose the device's IP address alongside existing sensors.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A WiFi whisker twitches with glee,
IP address now for all to see,
Five little lines in YAML so neat,
Connection details, oh what a treat!
The network knows where we hop about! 🌐✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[wifi_info] Add IP address text sensor' is clear, specific, and directly describes the main change: adding an IP address text sensor using the wifi_info platform.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch wifi-info-ip-address

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Integrations/ESPHome/Core.yaml`:
- Around line 716-720: Add entity_category: "diagnostic" to the ip_address
sensor under the wifi_info platform so it is placed under the device's
diagnostic entities; locate the wifi_info platform block and the ip_address
sub-key (id: wifi_ip) and add the entity_category property (matching the
wifi_signal_db diagnostic pattern) and optionally add an icon line to match
other diagnostic sensors in this file.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be70ff5 and 196c738.

📒 Files selected for processing (1)
  • Integrations/ESPHome/Core.yaml

Comment thread Integrations/ESPHome/Core.yaml
@TrevorSchirmer TrevorSchirmer merged commit afa8570 into beta Feb 27, 2026
11 checks passed
@TrevorSchirmer TrevorSchirmer deleted the wifi-info-ip-address branch February 27, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants