mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 00:48:19 +01:00
f6848fe24d
* Initial changes to support testing of additional framework versions * Rename Arduino test files
42 lines
870 B
YAML
42 lines
870 B
YAML
esphome:
|
|
on_boot:
|
|
then:
|
|
- dfplayer.play: 5
|
|
- dfplayer.play:
|
|
file: 4
|
|
loop: true
|
|
- dfplayer.play_folder:
|
|
folder: 1
|
|
file: 3
|
|
- dfplayer.play_folder:
|
|
folder: 1
|
|
loop: true
|
|
- dfplayer.set_device:
|
|
device: TF_CARD
|
|
- dfplayer.set_volume: 5
|
|
- dfplayer.set_eq: ROCK
|
|
- dfplayer.play_next
|
|
- dfplayer.play_previous
|
|
- dfplayer.reset
|
|
- dfplayer.start
|
|
- dfplayer.pause
|
|
- dfplayer.stop
|
|
- dfplayer.random
|
|
- dfplayer.volume_up
|
|
- dfplayer.volume_down
|
|
- dfplayer.sleep
|
|
|
|
uart:
|
|
- id: uart_dfplayer
|
|
tx_pin: 4
|
|
rx_pin: 5
|
|
baud_rate: 9600
|
|
|
|
dfplayer:
|
|
on_finished_playback:
|
|
then:
|
|
if:
|
|
condition:
|
|
not: dfplayer.is_playing
|
|
then:
|
|
logger.log: Playback finished event
|