I have a media player defined esphome and i am able to play music. The media player on the esphome integration displays ‘playing’ however I would like to have the title of the stream/song also available. Is this possible
The config of the media player on the ESP32
media_player:
- platform: i2s_audio
id: media_out
name: ESP Speaker
dac_type: external
i2s_audio_id: i2s_audio_bus
i2s_dout_pin: GPIO8
mode: stereo #mono
on_play:
- logger.log: "Playback started!"
- lambda: id(esp_speaker_phase) = ${music_player_playing_id};
- if:
condition:
switch.is_on: status_led
then:
- script.execute: control_led
on_pause:
- logger.log: "Playback paused!"
- lambda: id(esp_speaker_phase) = ${music_player_muted_id};
- if:
condition:
switch.is_on: status_led
then:
- script.execute: control_led
on_idle:
- logger.log: "Playback finished!"
- lambda: id(esp_speaker_phase) = ${music_player_idle_id};
- if:
condition:
switch.is_on: status_led
then:
- script.execute: control_led
State attributes
volume_level: 0.5
is_volume_muted: false
device_class: speaker
friendly_name: ESPeaker mini ESP Speaker
supported_features: 1200653