Skip to content
AWTRIX Flows
Submit flow
Sonos - HA: What's playing? shown on an AWTRIX display
Fig. 1 Sonos - HA: What's playing?, as r2k runs it.

Sonos - HA: What's playing?

Shows current track from a Sonos Mediaplayer

Specifications
System AWTRIX NG Scripts
Firmware AWTRIX NG
Topic Smarthome
Built by r2k
File RN4Vq32sTYGt.ax · 4.2 KB
Icons
Published 16 Aug 2026 · updated 16 Aug 2026
Downloads 2

Based on:
https://flows.blueforcer.de/flow/L7RQFN0Vptle

Purpose:
spotify_now_playing.ax displays the artist and title on AWTRIX as long as the configured media player entity in Home Assistant has the “playing” status.

The app only displays information if sufficient metadata is available:
Standard case: media_artist and media_title are set
Special case: media_artist is missing, but media_title already contains “Artist - Title” or “Artist ˗ Title”
If this information is missing, the app is skipped in the rotation.

Prerequisite:
The script requires the HAFlow from 10der: https://flows.blueforcer.de/flow/EuJbxQZhTQX9
A suitable media player entity must be present in Home Assistant, for example, media_player.spotify
If icons are to be displayed, the configured icon IDs must be available on AWTRIX

Settings:
ha_url: URL of your Home Assistant instance
ha_token: Long-lived access token from Home Assistant
entity: Spotify or media player entity
refresh_seconds: Polling interval
scroll_speed: Track playback speed
spotify_icon_id: Icon for Spotify playback, default 18207
airplay_icon_id: Icon for AirPlay playback
radio_icon_id: Icon for radio or other playback

Behavior:
Display only when state == playing
Output format: Artist - Title
Spotify is detected via source or media_content_id
AirPlay is detected via source == AirPlay
Everything else uses the radio icon
The text scrolls twice, and then AWTRIX returns to the app's normal rotation
Pressing the middle button (select / OK) triggers an immediate refresh

More flows for AWTRIX NG Scripts or Smarthome

Something wrong with this flow? Report it.