feat: add Circulator Fan Pro (W1160) support#508
Open
Onero-testdev wants to merge 3 commits into
Open
Conversation
Add the SwitchBot Circulator Fan Pro (W1160) as an encrypted BLE device: fan power/speed/preset-mode (direct/natural/sleep/hurricane), horizontal and vertical oscillation, and a two-level night light. State is parsed from the W1071-style advertisement (battery/fan-state swapped vs the legacy fan). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Member
|
Waiting for a PR for switchbot to add this |
Contributor
Author
|
@bdraco Hello, this account is being used by a developer from Switchbot. I don't quite understand what you mean by "Waiting for a PR for Switchbot to add this." I hope you can provide more information. Thanks! |
21 tasks
Contributor
Author
|
Opened the Home Assistant core PR that consumes this: home-assistant/core#173262 (adds the Circulator Fan Pro to the |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds support for the SwitchBot Circulator Fan Pro (W1160) as an encrypted BLE device.
The Pro shares the W1071 Modern Ceiling Fan advertisement layout (which differs from the legacy Circulator Fan — battery and the fan-state byte are swapped), and uses extended commands (
57 0F …) with a control-source byte for control.Features
Implementation
SwitchbotModel.CIRCULATOR_FAN_PRO(W1160000) + adv signaturesb"\x00\x11\xb3@"/b"\x01\x11\xb3@"process_circulator_fan_proadvertisement parserSwitchbotCirculatorFanProdevice (SwitchbotEncryptedDevice+SwitchbotFan)CirculatorFanProModeenum (mode 0x04 is hurricane, not the legacy baby)All command frames and advertisement parsing were verified against real W1160 hardware.
🤖 Generated with Claude Code