mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
13 lines
366 B
YAML
13 lines
366 B
YAML
# capture, stop_capture and is_capturing on the external microphone.
|
|
button:
|
|
- platform: template
|
|
name: Microphone Capture
|
|
on_press:
|
|
- if:
|
|
condition:
|
|
microphone.is_capturing: mic_id_external
|
|
then:
|
|
- microphone.stop_capture: mic_id_external
|
|
else:
|
|
- microphone.capture: mic_id_external
|