Spotify Song Notification
Show the current artist and song title as a notification, when the song changes
About this flow
| System | Home Assistant |
|---|---|
| AWTRIX version | AWTRIX 3 |
| Topic | Smarthome |
| Built by | Zoker |
| File | YnpWxA0JOvJk.yaml · 0.6 KB |
| Icons | — |
| Published | 31 May 2023 |
| Downloads | 39 |
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
This Home Assistant automation will listen to changes on the spotify integration. As soon as a new song is played, the clock will display the artist and the title (e.g. Bon Jovi - Livin' on a Prayer). The automation uses icon 647 of the lametric icons.
YnpWxA0JOvJk.yaml
alias: Awtrix Notification Spotify
description: ""
trigger:
- platform: state
entity_id:
- media_player.spotify
attribute: media_title
condition:
- condition: not
conditions:
- condition: state
entity_id: media_player.spotify
state: idle
action:
- service: mqtt.publish
data:
topic: AwtrixLight/notify
payload: |-
{"icon": 647,
"repeat": 1,
"text": "{{states.media_player.spotify.attributes.media_artist}} - {{states.media_player.spotify.attributes.media_title}}"
}
mode: single
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More flows for Home Assistant or Smarthome
Something wrong with this flow? Report it.
Have an idea?
Sign in to ask questions and join the conversation.