跳转到内容

RGBCT 灯光

rgbct 灯光平台根据 5 个 float 输出组件(每个通道一个)创建一个 RGBWT(色温 + 白色亮度) 灯光。

# 示例配置条目
light:
- platform: rgbct
name: "Livingroom Lights"
red: output_component1
green: output_component2
blue: output_component3
color_temperature: output_component4
white_brightness: output_component5
cold_white_color_temperature: 153 mireds
warm_white_color_temperature: 500 mireds
  • red(必选,ID):用于红色通道的 float Output 组件 的 id。

  • green(必选,ID):用于绿色通道的 float Output 组件 的 id。

  • blue(必选,ID):用于蓝色通道的 float Output 组件 的 id。

  • color_temperature(必选,ID):用于 色温通道的 float Output 组件 的 id。

  • white_brightness(必选,ID):用于白色 LED 亮度 的 float Output 组件 的 id。

  • cold_white_color_temperature(必选,float):此灯光支持的最冷色温。 以 mireds 表示时为最低值,或 以开尔文表示时为最高值。

  • warm_white_color_temperature(必选,float):此灯光支持的最暖色温。 以 mireds 表示时为最高值,或 以开尔文表示时为最低值。

  • color_interlock(可选,boolean):启用时,这将防止白色 LED 与 RGB LED 同时开启。更多信息参见 颜色互锁。默认为 false。

  • 来自 Light 的所有其他选项。