esphome/tests/components/speaker/test.esp32-ard.yaml
Kevin Ahrendt bff0e81ed3
[speaker, i2s_audio] Support audio_dac component, mute actions, and improved logging (#7664)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-10-24 09:37:38 +13:00

26 lines
509 B
YAML

esphome:
on_boot:
then:
- speaker.mute_on:
- speaker.mute_off:
- if:
condition: speaker.is_stopped
then:
- speaker.play: [0, 1, 2, 3]
- speaker.volume_set: 0.9
- 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