Skip to content

Add RGBICWW Ceiling Light commands#48

Open
Onero-testdev wants to merge 1 commit into
SeraphicCorp:mainfrom
Onero-testdev:feature/rgbicww-ceiling-light
Open

Add RGBICWW Ceiling Light commands#48
Onero-testdev wants to merge 1 commit into
SeraphicCorp:mainfrom
Onero-testdev:feature/rgbicww-ceiling-light

Conversation

@Onero-testdev
Copy link
Copy Markdown

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 RGBICWWCeilingLightCommands enum (and export):

Command Parameter
turnOnMainLight / turnOffMainLight
turnOnColorLight / turnOffColorLight
setMainLightBrightness 1–100
setMainLightColorTemp 2700–6500
setColorLightBrightness 1–100
setColorLightRGB "R:G:B"

The overall power commands (turnOn / turnOff / toggle) are already provided by CommonCommands.

These commands match the SwitchBot Cloud OpenAPI specification for the RGBICWW Ceiling Light and are consumed by the Home Assistant switchbot_cloud integration (a follow-up PR there will bump the dependency once this is released).

Testing

  • pytest — all tests pass (snapshots included).
  • ruff check clean on the added code.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant