Last active
October 15, 2022 17:40
-
-
Save ByTheHugo/0a340e2fd4c02b35cd512f0aeec02140 to your computer and use it in GitHub Desktop.
Automatisation permettant l'affichage du titre en cours de lecture sur Android TV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
alias: "Synchronisation du titre casté sur l'enceinte du salon sur la TV" | |
trigger: | |
- platform: state | |
entity_id: media_player.spotify_thehugo | |
action: | |
- service: notify.android_tv | |
data: | |
title: "En cours de diffusion" | |
message: "{{ state_attr('media_player.spotify_thehugo', 'media_title') }} - {{ state_attr('media_player.spotify_thehugo', 'media_artist') }}" | |
data: | |
duration: 7 | |
position: "top-left" | |
fontsize: "medium" | |
transparency: "25%" | |
color: "green" | |
interrupt: 0 | |
icon: | |
url: "{{ state_attr('media_player.spotify_thehugo', 'entity_picture') }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment