-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Add docs for switch to device_id for LCN actions #35600
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. |
📝 WalkthroughWalkthroughThe pull request introduces updates to the LCN integration documentation for Home Assistant. It primarily involves replacing the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LCN
participant HomeAssistant
User->>HomeAssistant: Request action with device_id
HomeAssistant->>LCN: Execute action with device_id
LCN-->>HomeAssistant: Return action result
HomeAssistant-->>User: Provide action result
sequenceDiagram
participant User
participant LCN
participant HomeAssistant
User->>HomeAssistant: Request address_to_device_id with id, segment_id, type, host
HomeAssistant->>LCN: Fetch device_id for address
LCN-->>HomeAssistant: Return device_id
HomeAssistant-->>User: Provide device_id
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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
🧹 Outside diff range and nitpick comments (2)
source/_integrations/lcn.markdown (2)
434-434
: Minor grammatical fix neededChange "a LCN module" to "an LCN module" as words starting with 'L' are pronounced with a vowel sound.
-When actions are linked to a particular device, the device is identified by its `device_id`. This `device_id` is a unique identifier supplied by Home Assistant. To retrieve the `device_id` for a LCN module or group, you can use the [address_to_device_id](#action-address_to_device_id) action. +When actions are linked to a particular device, the device is identified by its `device_id`. This `device_id` is a unique identifier supplied by Home Assistant. To retrieve the `device_id` for an LCN module or group, you can use the [address_to_device_id](#action-address_to_device_id) action.🧰 Tools
🪛 LanguageTool
[misspelling] ~434-~434: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...istant. To retrieve thedevice_id
for a LCN module or group, you can use the [a...(EN_A_VS_AN)
448-449
: Standardize number range formattingFor consistency, standardize the formatting of number ranges by using a single dot or proper ellipsis:
-| `id` | No | Module or group id | 5..254 | -| `segment_id` | Yes | Segment id (default: 0) | (0, 5..128) | +| `id` | No | Module or group id | 5-254 | +| `segment_id` | Yes | Segment id (default: 0) | (0, 5-128) |And in the dyn_text section:
-| `row` | No | Text row 1..4 || +| `row` | No | Text row 1-4 ||Also applies to: 776-776
🧰 Tools
🪛 LanguageTool
[typographical] ~448-~448: Two consecutive dots
Context: ... | Module or group id | 5..254 | |segment_id
...(DOUBLE_PUNCTUATION)
[typographical] ~449-~449: Two consecutive dots
Context: ...egment id (default: 0) | (0, 5..128) | |type
...(DOUBLE_PUNCTUATION)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/lcn.markdown
(24 hunks)
🧰 Additional context used
🪛 Markdownlint
source/_integrations/lcn.markdown
112-112: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
131-131: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
🪛 LanguageTool
source/_integrations/lcn.markdown
[misspelling] ~434-~434: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...istant. To retrieve the device_id
for a LCN module or group, you can use the [a...
(EN_A_VS_AN)
[typographical] ~448-~448: Two consecutive dots
Context: ... | Module or group id | 5..254 | | segment_id
...
(DOUBLE_PUNCTUATION)
[typographical] ~449-~449: Two consecutive dots
Context: ...egment id (default: 0) | (0, 5..128) | | type
...
(DOUBLE_PUNCTUATION)
[typographical] ~776-~776: Two consecutive dots
Context: ... | No | Text row 1..4 || | text
...
(DOUBLE_PUNCTUATION)
🔇 Additional comments (1)
source/_integrations/lcn.markdown (1)
Line range hint 434-803
: Documentation updates look good!
The documentation successfully captures the transition from address
to device_id
parameter across all actions. The new address_to_device_id
action is well documented with clear examples, including both direct usage and response variable usage. The changes align perfectly with the PR objectives.
🧰 Tools
🪛 LanguageTool
[misspelling] ~434-~434: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...istant. To retrieve the device_id
for a LCN module or group, you can use the [a...
(EN_A_VS_AN)
[typographical] ~448-~448: Two consecutive dots
Context: ... | Module or group id | 5..254 | | segment_id
...
(DOUBLE_PUNCTUATION)
[typographical] ~449-~449: Two consecutive dots
Context: ...egment id (default: 0) | (0, 5..128) | | type
...
(DOUBLE_PUNCTUATION)
[typographical] ~496-~496: Two consecutive dots
Context: ... | Absolute brightness in percent | 0..100 | | transition
...
(DOUBLE_PUNCTUATION)
[typographical] ~497-~497: Two consecutive dots
Context: ... | Transition (ramp) time in seconds | 0..486 | Example: ```yaml ...
(DOUBLE_PUNCTUATION)
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
🧹 Outside diff range and nitpick comments (2)
source/_integrations/lcn.markdown (2)
112-112
: Fix list formatting.The list indentation and surrounding blank lines need to be adjusted to comply with markdown standards.
- - **Result**: The **Entities** tab opens, showing entities of the selected device. - - To apply custom filters, enable the filter option. + + - **Result**: The **Entities** tab opens, showing entities of the selected device. + - To apply custom filters, enable the filter option. +🧰 Tools
🪛 Markdownlint
112-112: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines(MD032, blanks-around-lists)
131-131
: Fix list formatting.Add blank lines around the list item for better readability and markdown compliance.
+ - **Result**: This removes the entity from the list and from Home Assistant. +🧰 Tools
🪛 Markdownlint
131-131: null
Lists should be surrounded by blank lines(MD032, blanks-around-lists)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (1)
Gemfile.lock
is excluded by!**/*.lock
📒 Files selected for processing (1)
source/_integrations/lcn.markdown
(24 hunks)
🧰 Additional context used
🪛 Markdownlint
source/_integrations/lcn.markdown
112-112: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
131-131: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
🔇 Additional comments (3)
source/_integrations/lcn.markdown (3)
434-435
: LGTM: Clear introduction to device_id usage.
The explanation of device_id
and its relationship to the new address_to_device_id
action is well documented.
436-487
: LGTM: Well-structured documentation for the new action.
The address_to_device_id
action is thoroughly documented with:
- Clear description of purpose
- Complete parameter list with descriptions
- Example usage including template syntax
- Response format
Line range hint 492-803
: LGTM: Consistent parameter updates across all actions.
The transition from address
to device_id
parameter has been consistently applied across all actions. Each action maintains clear documentation of parameters, their optionality, and example usage.
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.
Thank you, @alengwenus 👍
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
🧹 Outside diff range and nitpick comments (1)
source/_integrations/lcn.markdown (1)
112-112
: Fix markdown list formatting.Please fix the following markdown formatting issues:
- Add proper indentation (2 spaces) for the unordered list at line 112
- Add blank lines before and after the lists at lines 112 and 131
Also applies to: 131-131
🧰 Tools
🪛 Markdownlint
112-112: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines(MD032, blanks-around-lists)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/lcn.markdown
(24 hunks)
🧰 Additional context used
🪛 Markdownlint
source/_integrations/lcn.markdown
112-112: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
131-131: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
🔇 Additional comments (2)
source/_integrations/lcn.markdown (2)
434-487
: LGTM! Well-documented new action.
The new address_to_device_id
action is thoroughly documented with clear parameter descriptions, value ranges, and practical examples including template usage.
Line range hint 492-803
: LGTM! Consistent parameter updates across all actions.
The transition from address
to device_id
has been implemented consistently across all actions, with clear parameter descriptions and updated examples.
dc97ab6
to
f533ebd
Compare
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
🧹 Outside diff range and nitpick comments (1)
source/_integrations/lcn.markdown (1)
112-112
: Fix list indentation and spacing.The unordered list items should:
- Have consistent indentation (2 spaces)
- Be surrounded by blank lines for better readability
Apply this formatting:
- - **Result**: The **Entities** tab opens, showing entities of the selected device. - - To apply custom filters, enable the filter option. + + - **Result**: The **Entities** tab opens, showing entities of the selected device. + - To apply custom filters, enable the filter option. +🧰 Tools
🪛 Markdownlint
112-112: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines(MD032, blanks-around-lists)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/lcn.markdown
(24 hunks)
🧰 Additional context used
🪛 Markdownlint
source/_integrations/lcn.markdown
112-112: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
112-112: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
131-131: null
Lists should be surrounded by blank lines
(MD032, blanks-around-lists)
🔇 Additional comments (3)
source/_integrations/lcn.markdown (3)
434-435
: LGTM: Clear explanation of device_id parameter.
The documentation clearly explains the transition from address
to device_id
and provides context about the identifier being supplied by Home Assistant.
Line range hint 440-751
: LGTM: Consistent parameter documentation across actions.
The documentation for all actions has been updated consistently to:
- Replace
address
withdevice_id
- Maintain consistent parameter table formatting
- Provide clear descriptions and value ranges
Line range hint 1-800
: LGTM: Well-structured and comprehensive documentation.
The documentation:
- Maintains clear structure and organization
- Provides helpful examples for each action
- Uses consistent formatting and descriptions
- Includes comprehensive information about parameters and their values
Proposed change
Documentation for the parameter change from ´address
to
device_id` for LCN actions.Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
New Features
address_to_device_id
for obtainingdevice_id
from LCN modules or group addresses.Documentation
address
withdevice_id
for multiple actions, enhancing device identification.