-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp_speaker.yaml
72 lines (60 loc) · 1.21 KB
/
esp_speaker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
esphome:
name: esp_speaker
esp32:
board: wemos_d1_mini32
framework:
type: arduino
# Enable logging
logger:
# level: VERY_VERBOSE
# Enable Home Assistant API
api:
password: ""
ota:
platform: esphome
password: "speak"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
fast_connect: true
manual_ip:
static_ip: 10.0.8.24
subnet: 255.255.252.0
gateway: 10.0.8.1
dns1: 10.0.8.1
dns2: 1.1.1.1
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESPhome Speaker"
password: "Bz6wWFdn5ISY"
captive_portal:
i2s_audio:
i2s_lrclk_pin: GPIO27
i2s_bclk_pin: GPIO16
media_player:
- platform: i2s_audio
name: ESPHome Speaker
dac_type: external
mode: mono
i2s_dout_pin: GPIO25
mute_pin:
number: 17
inverted: true
#on_pause:
# button.press: device_restart
#on_idle:
# button.press: device_restart
button:
- platform: restart
name: "ESP-Speaker Restart"
id: device_restart
binary_sensor:
- platform: gpio
pin:
number: 18
inverted: true
mode: INPUT_PULLUP
name: "ESPHome Speaker Button"
filters:
- delayed_on: 10ms