Remember Media Player volume

This commit is contained in:
Edward Firmo
2025-07-31 10:26:37 +02:00
parent e53334ac18
commit 796eb7620c
5 changed files with 96 additions and 113 deletions

View File

@@ -33,4 +33,15 @@ script:
// Identify itself
ESP_LOGCONFIG(ESPHOME_PROJECT_NAME, " - Standard - Hardware - Audio");
switch:
- id: sw_enable_audio
name: Enable Audio
platform: gpio
pin:
number: GPIO26
inverted: true
restore_mode: RESTORE_DEFAULT_ON
internal: true
entity_category: config
...