Calling ESPhome experts

esphome:
  name: sonos_display_4_lines
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "bertybassett_2Ghz"
  password: "XXXXXXXXXX"

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "XXXXXXXXXX"

ota:
  password: "XXXXXXXXXX"

text_sensor:
  - platform: homeassistant
    id: sonos_volume
    entity_id: sensor.sonos_volume
    internal: true

  - platform: homeassistant    
    id: sonos_artist
    entity_id: sensor.sonos_artist
    internal: true

  - platform: homeassistant    
    id: sonos_album
    entity_id: sensor.sonos_album
    internal: true    

  - platform: homeassistant    
    id: sonos_track
    entity_id: sensor.sonos_track
    internal: true
 



i2c:
  sda: D2
  scl: D1

display:
  - platform: lcd_pcf8574
    dimensions: 20x4
    address: 0x27
    lambda: |-
    playing
      fflush(stdout);
      it.printf(0, 0, "Volume %s%%", id(sonos_volume).state.c_str());
      it.printf(0, 1, "Artist %s", id(sonos_artist).state.c_str());
      it.printf(0, 2, "Album  %s", id(sonos_album).state.c_str());
      it.printf(0, 3, "Track  %s", id(sonos_track).state.c_str());

This works but what I need is a simple way to scroll the text on screen? or is that not simple?

give this a try :wink:

2 Likes