Hello,
I have a setup like this
hassio installed
mp3 files mounted from my nas to /media
external access with a proper duckdns https
a google cast installed and linked with home assistant
When I play a song I got this :
[media_player.kitchen](https://hassio.local:8123/developer-tools/state#)
playing volume_level: 10
is_volume_muted: false
media_content_id: https://xxx.duckdns.org:8123/media/local/a/Thebandbetter - Mylastsong.mp3?authSig=eyJ0eXA0NH0.k48znDA6Jr8lJYLx-CL7pADX577nJmxXu
media_duration: 270.445714
media_position: 163.625391
media_position_updated_at: 2020-12-22T07:05:55.633169+00:00
app_id: CC1AD845
app_name: Default Media Receiver
entity_picture_local: null
friendly_name: kitchen
supported_features: 152463
Is there a way to ‘capture’ the artist and the song as a variable ?
Also, I have installed the Genius Lyric via HACS:
on my configuration.yaml I have
genius_lyrics:
access_token: axxxxxxxxxxxxxxxxxxxxxxxb
entities:
- media_player.kitchen
type: conditional
conditions:
- entity: sensor.kitchen_lyrics
state: 'on'
card:
type: markdown
content: >-
## {{ states.sensor.kitchen_lyrics.attributes.media_artist }} - {{
states.sensor.kitchen_lyrics.attributes.media_title }}
{{ states.sensor.kitchen_lyrics.attributes.media_lyrics }}
but I got this results :
[sensor.kitchen_lyrics](https://hassio.local:8123/developer-tools/state#) off
media_artist: null
media_title: null
media_lyrics: null
friendly_name: kitchen Lyrics
Am I missing something ?
Thanks for your help