Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in
Sonos - HA: What's playing? shown on an AWTRIX display
Sonos - HA: What's playing?, as r2k runs it.

Sonos - HA: What's playing?

Shows current track from a Sonos Mediaplayer

AWTRIX NG Scripts AWTRIX NG
About this flow
Specifications
System AWTRIX NG Scripts
AWTRIX version AWTRIX NG
Topic Smarthome
Built by r2k
File RN4Vq32sTYGt.ax · 4.2 KB
Icons
Published 16 Aug 2026 · updated 16 Aug 2026
Downloads 38
Is this your flow?

If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.

Flow description

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

Community

Discussion 0

Ask a question, suggest a change or share how you use it.

No comments yet. Start the conversation.

More flows for AWTRIX NG Scripts or Smarthome

Something wrong with this flow? Report it.