Hi all,
YAML sadly is something that manages to utterly confuse me. I have homeassistant happily running and would like to integrate a spotify control via ESPHome, as shown here Awesome Spotify Touch Control via ILI9341-Screen
However - for the life of me - i don’t get my sensor to work. I tried different variations, e.g.
sensor:
- platform: edl21
serial_port: /dev/ttyUSB0
name: Stromzaehler
esp32_media_player_current_title:
friendly_name: "Joe's current spotify title"
value_template: "{{ state_attr('media_player.spotify_joe','media_title') }}"
which doesn’t work, or e.g.
sensor:
- platform: edl21
serial_port: /dev/ttyUSB0
name: Stromzaehler
- platform: template
sensors:
esp32_media_player_current_title:
friendly_name: "Joe's current spotify title"
value_template: "{{ state_attr('media_player.spotify_joe','media_title') }}"
What am I doing wrong?