mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
[microphone] Add software mute and fix wrong type for automations (#8667)
This commit is contained in:
@@ -10,3 +10,11 @@ microphone:
|
||||
adc_type: external
|
||||
pdm: false
|
||||
mclk_multiple: 384
|
||||
on_data:
|
||||
- if:
|
||||
condition:
|
||||
- microphone.is_muted:
|
||||
then:
|
||||
- microphone.unmute:
|
||||
else:
|
||||
- microphone.mute:
|
||||
|
Reference in New Issue
Block a user