mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 23:40:25 +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>
39 lines
845 B
YAML
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();
|