-
Notifications
You must be signed in to change notification settings - Fork 0
/
museproto.yaml
135 lines (122 loc) · 2.49 KB
/
museproto.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
substitutions:
name: "muse-proto"
friendly_name: "RaspiAudio Muse Proto"
wifi_ap_password: ""
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: true
project:
name: raspiaudio.muse-proto
version: "1.0"
min_version: 2023.5.3
esp32:
board: esp-wrover-kit
framework:
type: arduino
logger:
api:
ota:
dashboard_import:
package_import_url: github://esphome/media-players/raspiaudio-muse-proto.yaml@main
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
id: wifi_id
captive_portal:
improv_serial:
i2s_audio:
- i2s_lrclk_pin: GPIO25
i2s_bclk_pin: GPIO5
microphone:
- platform: i2s_audio
id: board_microphone
channel: left
i2s_din_pin: GPIO35
adc_type: external
pdm: false
media_player:
- platform: i2s_audio
id: media_out
name: None
dac_type: external
i2s_dout_pin: GPIO26
mode: mono
mute_pin:
number: GPIO21
inverted: true
voice_assistant:
microphone: board_microphone
media_player: media_out
on_start:
- light.turn_on:
id: board_led
blue: 100%
red: 0%
green: 0%
effect: none
on_tts_start:
- light.turn_on:
id: board_led
blue: 60%
red: 20%
green: 20%
effect: none
on_tts_end:
- light.turn_on:
id: board_led
blue: 60%
red: 20%
green: 20%
effect: pulse
on_end:
- light.turn_off: board_led
on_error:
- light.turn_on:
id: board_led
blue: 0%
red: 100%
green: 0%
effect: none
- delay: 1s
- light.turn_off: board_led
binary_sensor:
- platform: gpio
pin:
number: GPIO0
inverted: true
mode:
input: true
pullup: true
name: Action
on_multi_click:
- timing:
- ON FOR AT MOST 350ms
- OFF FOR AT LEAST 10ms
then:
- media_player.toggle: media_out
- timing:
- ON FOR AT LEAST 350ms
then:
- voice_assistant.start:
- timing:
- ON FOR AT LEAST 350ms
- OFF FOR AT LEAST 10ms
then:
- voice_assistant.stop:
light:
- platform: esp32_rmt_led_strip
id: board_led
name: None
disabled_by_default: true
pin: GPIO22
default_transition_length: 0s
chipset: WS2812
num_leds: 1
rgb_order: grb
rmt_channel: 0
effects:
- pulse:
transition_length: 250ms
update_interval: 250ms