mirror of
https://github.com/esphome/esphome.git
synced 2026-10-09 04:16:01 +00:00
Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
122 lines
2.7 KiB
YAML
122 lines
2.7 KiB
YAML
esphome:
|
|
name: ltspi
|
|
host:
|
|
api:
|
|
logger:
|
|
|
|
output:
|
|
# Monochromatic output
|
|
- platform: template
|
|
id: mono_output
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "mono_output: %.2f"
|
|
args: [state]
|
|
# RGB outputs
|
|
- platform: template
|
|
id: rgb_red
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "rgb_red: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: rgb_green
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "rgb_green: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: rgb_blue
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "rgb_blue: %.2f"
|
|
args: [state]
|
|
# CWWW outputs (using rgbww light for CT + cold/warm white coverage)
|
|
- platform: template
|
|
id: cwww_red
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "cwww_red: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: cwww_green
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "cwww_green: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: cwww_blue
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "cwww_blue: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: cwww_cold_white
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "cwww_cold_white: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: cwww_warm_white
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "cwww_warm_white: %.2f"
|
|
args: [state]
|
|
- platform: template
|
|
id: legacy_output
|
|
type: float
|
|
write_action:
|
|
- logger.log:
|
|
format: "legacy_output: %.2f"
|
|
args: [state]
|
|
|
|
light:
|
|
# Monochromatic light (brightness only)
|
|
- platform: monochromatic
|
|
id: test_mono_light
|
|
name: "Test Mono Light"
|
|
output: mono_output
|
|
default_transition_length: 1s
|
|
transition_state_publish_interval: 0.2s
|
|
|
|
# RGB light
|
|
- platform: rgb
|
|
id: test_rgb_light
|
|
name: "Test RGB Light"
|
|
red: rgb_red
|
|
green: rgb_green
|
|
blue: rgb_blue
|
|
default_transition_length: 1s
|
|
transition_state_publish_interval: 0.2s
|
|
|
|
# CWWW/CT-capable light
|
|
- platform: rgbww
|
|
id: test_cwww_light
|
|
name: "Test CWWW Light"
|
|
red: cwww_red
|
|
green: cwww_green
|
|
blue: cwww_blue
|
|
cold_white: cwww_cold_white
|
|
warm_white: cwww_warm_white
|
|
cold_white_color_temperature: 6500 K
|
|
warm_white_color_temperature: 2000 K
|
|
constant_brightness: true
|
|
default_transition_length: 1s
|
|
transition_state_publish_interval: 0.2s
|
|
|
|
# No interval: publishes only when a call starts
|
|
- platform: monochromatic
|
|
id: test_legacy_light
|
|
name: "Test Legacy Light"
|
|
output: legacy_output
|
|
default_transition_length: 1s
|