Media player does not play URL
local files play well
esphome:
name: bedroom-speaker
friendly_name: bedroom-speaker
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 10.0.1.110
gateway: 10.0.1.1
subnet: 255.255.255.0
ap:
ssid: "bedroom-speaker"
captive_portal:
web_server:
port: 80
version: 2
include_internal: true
ota: false
i2s_audio:
- id: i2s_in
i2s_lrclk_pin: GPIO26 #WS
i2s_bclk_pin: GPIO25 #SCK
mqtt:
broker: 10.0.1.111
username: mqtt
password: mqttt
media_player:
- platform: i2s_audio
name: "esp_speaker"
id: media_player_speaker
i2s_audio_id: i2s_in
dac_type: external
i2s_dout_pin: GPIO27 # DIN Pin of the MAX98357A Audio Amplifier
mode: mono
button:
- platform: template
name: Play Morrow
id: play_morrow_radio
entity_category: config
on_press:
- media_player.play_media:
media_url: 'http://stream.fr.morow.com:8080/morow_med.mp3'
21:30:02 [D] [media_player:066]
Media URL: http://stream.fr.morow.com:8080/morow_med.mp3
21:30:03 [W] [component:214]
Component i2s_audio.media_player took a long time for an operation (0.52 s).
21:30:03 [W] [component:214]
Component i2s_audio.media_player took a long time for an operation (0.52 s).
21:30:03 [W] [component:215]
Components should block for at most 20-30ms.
21:30:03 [W] [component:214]
Component i2s_audio.media_player took a long time for an operation (0.48 s).
21:30:03 [W] [component:215]
Components should block for at most 20-30ms.
21:30:03 [W] [component:215]
Components should block for at most 20-30ms.