esp32-audio-dock: Louder-ESP32 "custom component" no longer supported in Home Assistant 2025.2

Will not validate or compile to update / install. Error below:

` INFO ESPHome 2025.2.1 INFO Reading configuration /config/esphome/esphome-web-5ffc84.yaml… Failed config

switch.custom: [source /config/esphome/esphome-web-5ffc84.yaml:60]

The “custom” component has been removed. Consider conversion to an external component. https://esphome.io/guides/contributing#a-note-about-custom-components. platform: custom lambda: auto tas5805 = new TAS5805(); App.register_component(tas5805); return {tas5805}; switches: name: Enable Amp `

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 28

Most upvoted comments

Based on the above, here is my tested and working config for Louder-ESP32 S3.

Remember to add your api: ota: wifi: etc

substitutions:
  devicename: louder-esp32-01
  long_devicename: "Louder ESP32"

esphome:
  name: "${devicename}"
  name_add_mac_suffix: false
  comment: "${long_devicename}"
  on_boot:
    priority: 800
    then:
    ## Set a volume limit just to be safe...
    - media_player.volume_set:
        id: louder_mediaplayer
        volume: 20%

external_components:
  - source: github://mrtoy-me/esphome-components-test@main
    components: [ tas5805m ]
    refresh: 0s


esp32:
  board: esp32-s3-devkitc-1
  variant: ESP32S3
  flash_size: 16MB
  framework:
    type: arduino


# Enable logging
logger:
  level: DEBUG
  

psram:
  mode: octal
  speed: 80MHz

audio_dac:
  - platform: tas5805m
    id: tas5805_dac
    enable_pin: GPIO33

switch:
  - platform: template
    name: "Enable ${long_devicename}"
    id: enable_louder
    optimistic: true
    turn_on_action:
      - lambda: !lambda |-
          id(tas5805_dac).set_deep_sleep_off();
    turn_off_action:
      - lambda: !lambda |-
          id(tas5805_dac).set_deep_sleep_on();

i2c:
  sda: GPIO8
  scl: GPIO9
  scan: True
  id: i2c_component

i2s_audio:
  i2s_lrclk_pin: GPIO15
  i2s_bclk_pin: GPIO14

interval:
  - interval: 1min
    then:
      - if:
          condition:
            - switch.is_on: enable_louder
            - for:
                time: 30s
                condition:
                  or:
                    - media_player.is_idle: louder_mediaplayer
                    - media_player.is_paused: louder_mediaplayer
          then:
            - switch.turn_off: enable_louder

media_player:
  - platform: i2s_audio
    name: "${long_devicename} mediaplayer"
    id: louder_mediaplayer
    dac_type: external
    i2s_dout_pin: GPIO16
    mode: stereo
    on_play:
      - switch.turn_on: enable_louder

Hey @admn-monkey @TommySharpNZ. Thanks for reporting. I’m working on this together with a few folks in the community. The test version is here:

substitutions:
  devicename: louder-esparagus-kantoor
  long_devicename: "Louder ESParagus kantoor"

esphome:
  name: "${devicename}"
  name_add_mac_suffix: false
  comment: "${long_devicename}"
  on_boot:
    priority: 250
    then:
    ## Set a volume limit just to be safe...
    - media_player.volume_set:
        id: louder_mediaplayer
        volume: 10%

esp32:
  board: mhetesp32minikit

wifi:
  ssid: !secret esphome_wifi_ssid
  password: !secret esphome_wifi_password
  ap:
    ssid: "$devicename Hotspot"
    password: !secret esphome_ap_password

captive_portal:
### Optional if you want ethernet (then remove all wifi config) ###
#ethernet:
#  type: W5500
#  clk_pin: GPIO18
#  mosi_pin: GPIO23
#  miso_pin: GPIO19
#  cs_pin: GPIO05
#  interrupt_pin: GPIO35
#  reset_pin: GPIO14

logger:
  level: DEBUG

api:
  encryption:
    key: !secret esphome_api_key

ota:
  platform: esphome
  password: !secret esphome_ota_password

psram:
  mode: octal
  speed: 80MHz

external_components:
  - source: github://mrtoy-me/esphome-components-test@main
    components: [ tas5805m ]
    refresh: 0s

i2c:
  id: i2c_component
  sda: GPIO21
  scl: GPIO27
  scan: True
  frequency: 400kHz
  timeout: 10ms

audio_dac:
  - platform: tas5805m
    id: tas5805_dac
    enable_pin: GPIO33

i2s_audio:
  i2s_lrclk_pin: GPIO25
  i2s_bclk_pin: GPIO26

media_player:
  - platform: i2s_audio
    name: "${long_devicename} mediaplayer"
    id: louder_mediaplayer
    dac_type: external
    i2s_dout_pin: GPIO22
    mode: stereo
    on_play:
      - switch.turn_on: enable_louder

switch:
  - platform: template
    name: "Enable ${long_devicename}"
    id: enable_louder
    optimistic: true
    turn_on_action:
      - lambda: !lambda |-
          id(tas5805_dac).set_deep_sleep_off();
    turn_off_action:
      - lambda: !lambda |-
          id(tas5805_dac).set_deep_sleep_on();

interval:
  - interval: 1min
    then:
      - if:
          condition:
            - switch.is_on: enable_louder
            - for:
                time: 30s
                condition:
                  or:
                    - media_player.is_idle: louder_mediaplayer
                    - media_player.is_paused: louder_mediaplayer
          then:
            - switch.turn_off: enable_louder

These are great news, so both versions work. Digital volume works for for me if you install the snapcast integration for Home Assistant. Just fun I added the ble_tracker and bluetooth_proxy to the config and it works even while playing audio over wifi.

Hi @anabolyc, I made a repo that allows compiling in the web builder for esphome:

https://github.com/c-MM/esphome-snapclient

I just tested it and it works on my espargus.