mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
36 lines
786 B
YAML
36 lines
786 B
YAML
esphome:
|
|
name: host-light-restore-state-test
|
|
host:
|
|
api: # Port will be automatically injected
|
|
logger:
|
|
level: DEBUG
|
|
|
|
output:
|
|
- platform: template
|
|
id: out_keep
|
|
type: float
|
|
write_action:
|
|
- lambda: ""
|
|
- platform: template
|
|
id: out_override
|
|
type: float
|
|
write_action:
|
|
- lambda: ""
|
|
|
|
light:
|
|
# restore_state: {} -- restore everything exactly as saved, no overrides
|
|
- platform: monochromatic
|
|
name: "Test Light Keep"
|
|
id: test_light_keep
|
|
output: out_keep
|
|
restore_state: {}
|
|
|
|
# restore_state: with explicit overrides -- these must win over whatever was saved
|
|
- platform: monochromatic
|
|
name: "Test Light Override"
|
|
id: test_light_override
|
|
output: out_override
|
|
restore_state:
|
|
state: INVERT
|
|
brightness: 100%
|