I²S Audio Component with ESP32 Dev Kit V1

I²S Audio Component with ESP32 Dev Kit V1

esphome:
  name: "announce"
  friendly_name: Announce
  
esp32:
  board: esp32dev
  framework:
    type: arduino

logger:

api:

ota:
 - platform: esphome  

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: True    
  manual_ip:
    static_ip: 192.168.1.58
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.15    

captive_portal:

i2s_audio:  
  - id: i2s_out
    i2s_lrclk_pin: 26
    i2s_bclk_pin: 27
   
media_player:
  - platform: i2s_audio
    id: announce_media
    name: Announce
    dac_type: external
    i2s_audio_id: i2s_out
    i2s_dout_pin: 25
    mode: mono

sensor:
  - platform: dht
    id: dht_n      
    pin: GPIO18
    model: DHT22 
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"
    update_interval: 40s

button:
  - platform: restart
    name: "Restart Media"  

I am using MAX98357 with esp32 dev kit v1 for announcement. It was working fine before esphome update 2025.8.0. But after the update whenever homeassistant is rebooted, the announcements are not heard. I have to manually power off and power on the esp32, then it starts to work again I mean I can hear the announcements. This has started to happen after the update of esphome to 2025.8.0.

Kindly help how to fix this ?

Thanks in advance

ps: please find the log below

[13:20:12][I][app:200]: ESPHome version 2025.8.3 compiled on Sep  7 2025, 13:18:56
[13:20:12][C][wifi:661]: WiFi:
[13:20:12][C][wifi:444]:   Local MAC: 08:B6:1F:3B:73:D8
[13:20:12][C][wifi:449]:   SSID: [redacted]
[13:20:12][C][wifi:452]:   IP Address: 192.168.1.58
[13:20:12][C][wifi:456]:   BSSID: [redacted]
[13:20:12][C][wifi:456]:   Hostname: 'announce'
[13:20:12][C][wifi:456]:   Signal strength: -62 dB ▂▄▆█
[13:20:12][C][wifi:467]:   Channel: 9
[13:20:12][C][wifi:467]:   Subnet: 255.255.255.0
[13:20:12][C][wifi:467]:   Gateway: 192.168.1.1
[13:20:12][C][wifi:467]:   DNS1: 192.168.1.15
[13:20:12][C][wifi:467]:   DNS2: 0.0.0.0
[13:20:12][C][logger:252]: Logger:
[13:20:12][C][logger:252]:   Max Level: DEBUG
[13:20:12][C][logger:252]:   Initial Level: DEBUG
[13:20:12][C][logger:258]:   Log Baud Rate: 115200
[13:20:12][C][logger:258]:   Hardware UART: UART0
[13:20:12][C][logger:265]:   Task Log Buffer Size: 768
[13:20:12][C][dht:017]: DHT:
[13:20:12][C][dht:018]:   Pin: GPIO18
[13:20:12][C][dht:019]:   Model: DHT22 or equivalent
[13:20:12][C][dht:021]:   Internal pull-up: ON
[13:20:12][C][dht:022]:   Update Interval: 40.0s
[13:20:12][C][dht:023]:   Temperature 'AHT10 Temperature'
[13:20:12][C][dht:023]:     State Class: 'measurement'
[13:20:12][C][dht:023]:     Unit of Measurement: '°C'
[13:20:12][C][dht:023]:     Accuracy Decimals: 1
[13:20:12][C][dht:023]:     Device Class: 'temperature'
[13:20:12][C][dht:024]:   Humidity 'AHT10 Humidity'
[13:20:12][C][dht:024]:     State Class: 'measurement'
[13:20:12][C][dht:024]:     Unit of Measurement: '%'
[13:20:12][C][dht:024]:     Accuracy Decimals: 0
[13:20:12][C][dht:024]:     Device Class: 'humidity'
[13:20:12][C][restart.button:017]: Restart Button 'Restart Media'
[13:20:12][C][restart.button:017]:   Icon: 'mdi:restart'
[13:20:12][C][captive_portal:099]: Captive Portal:
[13:20:12][C][esphome.ota:075]: Over-The-Air updates:
[13:20:12][C][esphome.ota:075]:   Address: 192.168.1.58:3232
[13:20:12][C][esphome.ota:075]:   Version: 2
[13:20:12][C][safe_mode:018]: Safe Mode:
[13:20:12][C][safe_mode:019]:   Boot considered successful after 60 seconds
[13:20:12][C][safe_mode:019]:   Invoke after 10 boot attempts
[13:20:12][C][safe_mode:019]:   Remain for 300 seconds
[13:20:12][C][web_server.ota:224]: Web Server OTA
[13:20:12][C][api:205]: Server:
[13:20:12][C][api:205]:   Address: 192.168.1.58:6053
[13:20:12][C][api:215]:   Noise encryption: NO
[13:20:12][C][mdns:124]: mDNS:
[13:20:12][C][mdns:124]:   Hostname: Announcement
[13:20:12][C][audio:222]: Audio:
[13:20:12][C][audio:244]:   External DAC channels: 1
[13:20:12][C][audio:244]:   I2S DOUT Pin: 25
[13:20:12][D][api:144]: Accept 192.168.1.15
[13:20:12][D][api.connection:1341]: Home Assistant 2025.9.1 (192.168.1.15) connected
[13:20:48][D][dht:042]: Temperature 26.7°C Humidity 81.2%
[13:20:48][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:20:48][D][sensor:103]: 'AHT10 Humidity': Sending state 81.20000 % with 0 decimals of accuracy
[13:21:08][I][safe_mode:042]: Boot seems successful; resetting boot loop counter
[13:21:08][D][esp32.preferences:142]: Writing 2 items: 0 cached, 2 written, 0 failed
[13:21:08][W][component:423]: safe_mode took a long time for an operation (138 ms)
[13:21:08][W][component:424]: Components should block for at most 30 ms
[13:21:28][D][dht:042]: Temperature 26.7°C Humidity 81.2%
[13:21:28][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:21:28][D][sensor:103]: 'AHT10 Humidity': Sending state 81.20000 % with 0 decimals of accuracy
[13:22:08][D][dht:042]: Temperature 26.6°C Humidity 81.2%
[13:22:08][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:22:08][D][sensor:103]: 'AHT10 Humidity': Sending state 81.20000 % with 0 decimals of accuracy
[13:22:48][D][dht:042]: Temperature 26.6°C Humidity 81.2%
[13:22:48][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:22:48][D][sensor:103]: 'AHT10 Humidity': Sending state 81.20000 % with 0 decimals of accuracy
[13:23:28][D][dht:042]: Temperature 26.6°C Humidity 81.2%
[13:23:28][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:23:28][D][sensor:103]: 'AHT10 Humidity': Sending state 81.20000 % with 0 decimals of accuracy
[13:24:08][D][dht:042]: Temperature 26.7°C Humidity 81.3%
[13:24:08][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:24:08][D][sensor:103]: 'AHT10 Humidity': Sending state 81.30000 % with 0 decimals of accuracy
[13:24:48][D][dht:042]: Temperature 26.6°C Humidity 81.3%
[13:24:48][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:24:48][D][sensor:103]: 'AHT10 Humidity': Sending state 81.30000 % with 0 decimals of accuracy
[13:25:28][D][dht:042]: Temperature 26.6°C Humidity 81.3%
[13:25:28][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:25:28][D][sensor:103]: 'AHT10 Humidity': Sending state 81.30000 % with 0 decimals of accuracy
[13:26:08][D][dht:042]: Temperature 26.7°C Humidity 81.3%
[13:26:08][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:26:08][D][sensor:103]: 'AHT10 Humidity': Sending state 81.30000 % with 0 decimals of accuracy
[13:26:48][D][dht:042]: Temperature 26.7°C Humidity 81.3%
[13:26:48][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:26:48][D][sensor:103]: 'AHT10 Humidity': Sending state 81.30000 % with 0 decimals of accuracy
[13:27:28][D][dht:042]: Temperature 26.7°C Humidity 81.4%
[13:27:28][D][sensor:103]: 'AHT10 Temperature': Sending state 26.70000 °C with 1 decimals of accuracy
[13:27:28][D][sensor:103]: 'AHT10 Humidity': Sending state 81.40000 % with 0 decimals of accuracy
[13:28:08][D][dht:042]: Temperature 26.6°C Humidity 81.4%
[13:28:08][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:28:08][D][sensor:103]: 'AHT10 Humidity': Sending state 81.40000 % with 0 decimals of accuracy
[13:28:32][D][media_player:083]: 'Announce Media' - Setting
[13:28:32][D][media_player:090]:   Media URL: http://192.168.1.15:8123/api/tts_proxy/eVDjOFCseQOKdm30sHC2NQ.mp3
[13:28:32][D][media_player:096]:  Announcement: yes
[13:28:33][W][component:423]: i2s_audio.media_player took a long time for an operation (535 ms)
[13:28:33][W][component:424]: Components should block for at most 30 ms
[13:28:48][D][dht:042]: Temperature 26.6°C Humidity 81.4%
[13:28:48][D][sensor:103]: 'AHT10 Temperature': Sending state 26.60000 °C with 1 decimals of accuracy
[13:28:48][D][sensor:103]: 'AHT10 Humidity': Sending state 81.40000 % with 0 decimals of accuracy

1 post – 1 participant

Read full topic

HI-FI News

via Home Assistant Community – Latest topics https://ift.tt/45yLWx3

September 7, 2025 at 10:07AM