Add Speaker amplifier switch and removed click sound from substitutions
This commit is contained in:
@@ -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
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user