feat: add Universal Remote Control support - #520
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
|
|
bluetoothbot
left a comment
There was a problem hiding this comment.
No blocking issues found.
|
Looks like pre-commit is failing |
9a4c644 to
8643677
Compare
Add support for the SwitchBot Universal Remote (Remote With Screen, WoRemoteWithScreen). The device advertises its battery level and charging state in the manufacturer specific data, and the battery level / charging state can also be queried over BLE via the basic info command. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Align with the official product name. Renames the device module, class, model enum, adv parser function, and all references/tests from remote_with_screen/RemoteWithScreen to universal_remote/ UniversalRemote. The model enum value becomes "WoUniversalRemote". Hardware byte-pattern identifiers are unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
d1ac8c4 to
a5596cd
Compare
Reproduced locally. Trips two hooks: Ran Fix: add newline, then Caveat: reviewed from diff, not a branch checkout — could not byte-check. |
|
|
bluetoothbot
left a comment
There was a problem hiding this comment.
Warning
Important issues found.
- Missing trailing newline — fails pre-commit (
end-of-file-fixer+ruff-format)
|
Addressed the remaining review feedback in 342593f:
Validation: all pre-commit hooks pass, the full local suite passes ( @bdraco ready for re-review when convenient. Thanks! |
Both confirmed resolved. Docstring now single-line plus bit-layout comment — matches AGENTS.md. Newline: diff shows no Six suggestions remain, none blocking. Highest value: rename Also: |
|
|
bluetoothbot
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
Bot left some suggestion, but still needs human review, and out of time. |
One item worth your eye before merge. |
PR Review — feat: add Universal Remote Control supportSolid, well-registered device addition — one byte-layout inconsistency in the device class is worth resolving before merge. Specific things done right:
What needs attention:
Not independently verifiable from here: the hardware byte offsets in the basic-info reply. The advertisement offsets, by contrast, have five in-repo precedents and are safe. 🟢 Suggestions
1. Key name `charging` diverges from `battery_charging` used by the two closest precedents (carried over — still open)
|
bluetoothbot
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
Summary
Add support for the SwitchBot Universal Remote Control.
This is a new model that exposes its battery level and charging state.
Details
Advertisement parsing
Device class
Note from SwitchBot team: This PR was developed by the official SwitchBot team and has been verified with real hardware testing. For questions, contact Discord @7eaves / GitHub @fankai777.