Updated Voice Assistant sattelites

This commit is contained in:
2025-01-06 09:12:47 +01:00
parent 373675be4f
commit 99007cda76
2 changed files with 254 additions and 56 deletions

View File

@@ -8,8 +8,9 @@ api:
key: !secret apikey
ota:
platform: esphome
password: !secret ota
- platform: esphome
id: ota_esphome
password: !secret ota
wifi:
ssid: Voltage-legacy
@@ -29,7 +30,7 @@ esphome:
project:
name: raspiaudio.muse-luxe
version: "1.0"
min_version: 2023.5.0
min_version: 2024.6.0
on_boot:
then:
- media_player.volume_set:
@@ -44,25 +45,25 @@ esp32:
logger:
i2c:
sda: GPIO18
scl: GPIO23
- id: i2c_bus
sda: GPIO18
scl: GPIO23
dashboard_import:
package_import_url: github://esphome/media-players/raspiaudio-muse-luxe.yaml@main
captive_portal:
improv_serial:
external_components:
- source: github://pr#3552 # DAC support https://github.com/esphome/esphome/pull/3552
- source: github://pr#3552 # DAC support https://github.com/esphome/esphome/pull/3552
components: [es8388]
refresh: 0s
es8388:
i2s_audio:
- i2s_lrclk_pin: GPIO25
- id: i2s_audio_bus
i2s_lrclk_pin: GPIO25
i2s_bclk_pin: GPIO5
media_player:
@@ -125,6 +126,7 @@ voice_assistant:
sensor:
- platform: adc
id: battery_sensor
pin: GPIO33
name: Battery
icon: "mdi:battery-outline"
@@ -137,12 +139,13 @@ sensor:
attenuation: 11db
raw: true
filters:
- multiply: 0.00173913 # 2300 -> 4, for attenuation 11db, based on Olivier's code
- multiply: 0.00173913 # 2300 -> 4, for attenuation 11db, based on Olivier's code
- exponential_moving_average:
alpha: 0.2
send_every: 2
- delta: 0.002
binary_sensor:
- platform: gpio
pin:
@@ -152,6 +155,7 @@ binary_sensor:
input: true
pullup: true
name: Volume Up
id: volume_up
on_click:
- media_player.volume_up: luxe_out
- platform: gpio
@@ -162,6 +166,7 @@ binary_sensor:
input: true
pullup: true
name: Volume Down
id: volume_down
on_click:
- media_player.volume_down: luxe_out
- platform: gpio
@@ -172,6 +177,7 @@ binary_sensor:
input: true
pullup: true
name: Action
id: action_button
on_multi_click:
- timing:
- ON FOR AT MOST 350ms
@@ -200,4 +206,13 @@ light:
effects:
- pulse:
transition_length: 250ms
update_interval: 250ms
update_interval: 250ms
button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
- platform: factory_reset
id: factory_reset_btn
name: Factory reset