Skip to content

Instantly share code, notes, and snippets.

@ByTheHugo
Last active October 15, 2022 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ByTheHugo/0a340e2fd4c02b35cd512f0aeec02140 to your computer and use it in GitHub Desktop.
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
---
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