-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[WOL] Add source ip for magic packet #38717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 Walkthrough## Walkthrough
The documentation for the Wake on LAN integration was updated to introduce an optional parameter named `if`, which allows users to specify the IP address of the network interface used to send magic packets. This new parameter is now described in the integration's basic configuration, the service action data attributes, and the switch platform configuration schema. No changes were made to other parameters or the integration's logic.
## Changes
| File | Change Summary |
|----------------------------------------------|-----------------------------------------------------------------------------------------------|
| source/_integrations/wake_on_lan.markdown | Added documentation for the new optional `if` parameter in configuration, service, and schema. |
## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant User
participant HomeAssistant
participant NetworkInterface
User->>HomeAssistant: Configure wake_on_lan with optional 'if' (interface IP)
User->>HomeAssistant: Call send_magic_packet (with optional 'if')
HomeAssistant->>NetworkInterface: Send magic packet via specified interface (if provided)
NetworkInterface-->>HomeAssistant: Packet sent
HomeAssistant-->>User: Confirmation/Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
source/_integrations/wake_on_lan.markdown (3)
39-41
: Unify and clarify the basic config description.The description could be more precise and consistent with other sections. For example:
Interface IP address: - description: The IP address of the network adapter of HA instance to route the magic packet through. + description: The IP address of the Home Assistant instance’s network interface through which the magic packet is sent.
67-68
: Fix grammar and improve service table entry.“where magic packet is send” should be “where the magic packet is sent,” and the description can mirror the basic config. For example:
-| `if` | yes | Optional HA interface IP address where magic packet is send. | +| `if` | yes | Optional interface IP address of the Home Assistant instance through which the magic packet is sent. |🧰 Tools
🪛 LanguageTool
[grammar] ~67-~67: Consider using either the past participle “sent” or the present participle “sending” here.
Context: ...erface IP address where magic packet is send. | Sample action data: ```jso...(BEEN_PART_AGREEMENT)
133-136
: Align the YAML schema description with other sections.Use a unified phrasing and spell out “Home Assistant”:
if: - description: HA interface IP address where magic packet is routed. + description: The IP address of the Home Assistant instance’s network interface through which the magic packet is sent. required: false type: string
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/wake_on_lan.markdown
(3 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/wake_on_lan.markdown
[grammar] ~67-~67: Consider using either the past participle “sent” or the present participle “sending” here.
Context: ...erface IP address where magic packet is send. | Sample action data: ```jso...
(BEEN_PART_AGREEMENT)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
It seems that this PR is targeted against an incorrect branch since it has a parent PR on one of our codebases. Documentation that needs to be updated for an upcoming release should target the |
17bbba7
to
ce748f0
Compare
Thank you for contributing, @netmaxt3r 👍
|
I'm drafting this PR, as changes are needed. Please undraft it, once the changes have been implemented and the PR is ready for review again. |
ce748f0
to
df3d370
Compare
[ignore] restore deleted brach to reopen PR |
df3d370
to
92b7b53
Compare
92b7b53
to
3435b89
Compare
Proposed change
Add source ip option for wake_on_lan integration
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
Summary by CodeRabbit