mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
24 lines
441 B
YAML
24 lines
441 B
YAML
esphome:
|
|
on_boot:
|
|
then:
|
|
- if:
|
|
condition: speaker.is_stopped
|
|
then:
|
|
- speaker.play: [0, 1, 2, 3]
|
|
- if:
|
|
condition: speaker.is_playing
|
|
then:
|
|
- speaker.finish:
|
|
- speaker.stop:
|
|
|
|
i2s_audio:
|
|
i2s_lrclk_pin: 16
|
|
i2s_bclk_pin: 17
|
|
i2s_mclk_pin: 15
|
|
|
|
speaker:
|
|
- platform: i2s_audio
|
|
id: speaker_id
|
|
dac_type: external
|
|
i2s_dout_pin: 13
|
|
mode: mono
|