Add RGBICWW Ceiling Light commands#48
Open
Onero-testdev wants to merge 1 commit into
Open
Conversation
Adds the RGBICWWCeilingLightCommands enum, exposing the cloud API commands for the RGBICWW Ceiling Light. The device exposes two independent sub-lights (main warm-white + color RGB), so both their on/off and parameter (brightness, color temperature, RGB) commands are included.
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 cloud command definitions for the SwitchBot RGBICWW Ceiling Light (
W1162000).The ceiling light exposes two independently controllable sub-lights — a main (warm-white) light and a color (RGB) light — so it needs its own command set beyond the generic on/off/toggle in
CommonCommands.What's included
New
RGBICWWCeilingLightCommandsenum (and export):turnOnMainLight/turnOffMainLightturnOnColorLight/turnOffColorLightsetMainLightBrightnesssetMainLightColorTempsetColorLightBrightnesssetColorLightRGB"R:G:B"The overall power commands (
turnOn/turnOff/toggle) are already provided byCommonCommands.These commands match the SwitchBot Cloud OpenAPI specification for the RGBICWW Ceiling Light and are consumed by the Home Assistant
switchbot_cloudintegration (a follow-up PR there will bump the dependency once this is released).Testing
pytest— all tests pass (snapshots included).ruff checkclean on the added code.