跳转到内容

RGBCT 灯

rgbct 灯光平台从 5 个浮点输出组件创建一个 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): 用于红色通道的浮点输出组件的 ID。

  • green (必需, ID): 用于绿色通道的浮点输出组件的 ID。

  • blue (必需, ID): 用于蓝色通道的浮点输出组件的 ID。

  • color_temperature (必需, ID): 用于色温通道的浮点输出组件的 ID。

  • white_brightness (必需, ID): 用于白色 LED 亮度的浮点输出组件的 ID。

  • cold_white_color_temperature (必需, 浮点数): 此灯支持的最冷色温。以mireds表示时为最低值,以开尔文表示时为最高值。

  • warm_white_color_temperature (必需, 浮点数): 此灯支持的最暖色温。以mireds表示时为最高值,以开尔文表示时为最低值。

  • color_interlock (可选, 布尔值): 启用后,将防止白色 LED 与 RGB LED 同时点亮。更多信息请参见颜色互锁。默认为 false

  • 所有其他选项来自灯光组件