Fix command_line binary sensor examples with correct payload values#41820
Merged
Conversation
|
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 |
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update suggested commands for binary sensor
Fix command_line binary sensor examples with correct payload values
Nov 17, 2025
frenck
approved these changes
Nov 17, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes broken binary sensor examples in the command_line integration documentation. The examples were returning "1" or "0" but relied on the default payload_on/payload_off values of "ON"/"OFF", causing them to fail silently.
Key changes:
- Added explicit
payload_on: "1"andpayload_off: "0"configuration to both binary sensor examples
c0ffeeca7
approved these changes
Nov 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
The binary sensor examples return
"1"or"0"but omitpayload_on/payload_offconfiguration. Since these default to"ON"and"OFF", the examples fail silently.Type of change
currentbranch).Additional information
Checklist
currentbranch.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.