Spotify Song Notification
Show the current artist and song title as a notification, when the song changes
| System | Home Assistant |
|---|---|
| Firmware | AWTRIX 3 |
| Topic | Smarthome |
| Built by | Zoker |
| File | YnpWxA0JOvJk.yaml · 0.6 KB |
| Icons | — |
| Published | 31 May 2023 |
| Downloads | 5 |
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
More flows for Home Assistant or Smarthome
Something wrong with this flow? Report it.