mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 08:41:59 +00:00
27 lines
505 B
YAML
27 lines
505 B
YAML
esphome:
|
|
name: light-automations-test
|
|
|
|
host:
|
|
api: # Port will be automatically injected
|
|
logger:
|
|
level: DEBUG
|
|
|
|
output:
|
|
- platform: template
|
|
id: test_output
|
|
type: binary
|
|
write_action:
|
|
- lambda: ""
|
|
|
|
light:
|
|
- platform: binary
|
|
id: test_light
|
|
name: "Test Light"
|
|
output: test_output
|
|
on_turn_on:
|
|
- logger.log: "TRIGGER: on_turn_on fired"
|
|
on_turn_off:
|
|
- logger.log: "TRIGGER: on_turn_off fired"
|
|
on_state:
|
|
- logger.log: "TRIGGER: on_state fired"
|