Refactor volume control: Add volume slider for speaker and adjust volume multiplier for improved audio management

This commit is contained in:
Joshua King
2026-03-01 18:33:23 -05:00
parent 8bb8f09f64
commit ee07fa4ff7

View File

@@ -16,7 +16,6 @@ esphome:
switch.is_off: mute
then:
- micro_wake_word.start:
esp32:
board: esp32-s3-devkitc-1
framework:
@@ -72,6 +71,23 @@ light:
move_interval: 100ms
scan_width: 1
number:
- platform: template
id: va_volume_percent
name: "VA Speaker Volume"
min_value: 10
max_value: 100
step: 5
unit_of_measurement: "%"
mode: slider
optimistic: true
restore_value: true
initial_value: 80
set_action:
- speaker.volume_set:
id: va_speaker
volume: !lambda "return x / 100.0f;"
switch:
- platform: template
id: mute
@@ -166,7 +182,7 @@ voice_assistant:
use_wake_word: false
noise_suppression_level: 2.0
auto_gain: 31dBFS
volume_multiplier: 4.0
volume_multiplier: 8.0
on_client_connected:
- if:
condition: