Add Speaker amplifier switch and removed click sound from substitutions

This commit is contained in:
Edward Firmo
2024-12-26 21:59:31 +01:00
parent f3b84e9d4e
commit 3cf6a11bc7
2 changed files with 35 additions and 16 deletions

View File

@@ -33,6 +33,10 @@ media_player:
i2s_comm_fmt: msb # Experimental - It was 'lsb' until v2024.12.12
dac_type: external
mode: mono
mute_pin:
number: GPIO26
inverted: true
allow_other_uses: true
script:
- id: !extend dump_config
@@ -48,4 +52,16 @@ script:
// Identify itself
ESP_LOGCONFIG("addon_media_player", "Add-on Media Player installed");
switch:
- id: sw_speaker_amplifier
name: Speaker - Amplifier
platform: gpio
pin:
number: GPIO26
inverted: true
allow_other_uses: true
restore_mode: RESTORE_DEFAULT_ON
internal: true
entity_category: config
...