Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107375

Grabbing individual items off a dict

$
0
0

Not sure i;'f i’m going about this the right way, but I’m making a card using paper buttons row to display all the favorite items on my Sonos using the sensor.sonos_favorites

what I’m trying to do is grab the individual names of the playlists and use them as the button names, the first hurdle i’m facing is that I can retrieve a list of all the items in the sensor, but i have no clue how to access them individually:

I would’ve thought it would be something along the lines of:

{{ states.sensor.sonos_favorites.attributes.items[0]}}

or somthing like that but nope… any ideas?

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>