跳转到内容

色温灯

color_temperature 灯光平台从 2 个浮点输出组件创建一个色温灯。一个通道控制 LED 温度,另一个通道控制亮度。

# 配置示例
light:
- platform: color_temperature
name: "Livingroom Lights"
color_temperature: output_component1
brightness: output_component2
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
  • color_temperature (必需, ID): 用于色温的浮点输出组件的 ID。它返回一个 0 到 1 的浮点数,采用 mired 刻度。其中 0 对应冷白温度,1 对应暖白温度。

  • brightness (必需, ID): 用于亮度的浮点输出组件的 ID。它返回一个 0 到 1 的浮点数。

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

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

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