Files
esphome/tests/integration/fixtures/light_transition_interval_save.yaml
T
04da1827e3 [light] Add transition_state_publish_interval option to publish intermediate states during transitions (#11968)
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>
2026-09-24 14:48:46 +00:00

39 lines
845 B
YAML

esphome:
name: ltspi-save
host:
api:
logger:
preferences:
flash_write_interval: 0s # Flush to disk on every loop
output:
- platform: template
id: mono_output
type: float
write_action:
- logger.log:
format: "mono_output: %.2f"
args: [state]
light:
- platform: monochromatic
id: test_mono_light
name: "Test Mono Light"
output: mono_output
restore_mode: RESTORE_DEFAULT_OFF
default_transition_length: 1s
transition_state_publish_interval: 0.2s
button:
- platform: template
id: run_persistence_transition
name: "Run Persistence Transition"
on_press:
- lambda: |-
auto call = id(test_mono_light).turn_on();
call.set_brightness(1.0f);
call.set_transition_length(1000);
call.set_save(true);
call.perform();