From ee07fa4ff74bb831f61a41e347ff892b29efdfdc Mon Sep 17 00:00:00 2001 From: Joshua King Date: Sun, 1 Mar 2026 18:33:23 -0500 Subject: [PATCH] Refactor volume control: Add volume slider for speaker and adjust volume multiplier for improved audio management --- esphome/voice-assistant-1.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/esphome/voice-assistant-1.yaml b/esphome/voice-assistant-1.yaml index 1f43d28..7c428d7 100644 --- a/esphome/voice-assistant-1.yaml +++ b/esphome/voice-assistant-1.yaml @@ -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: