Relatively new to Home Assistant and looking to create my own ‘standings’ dashboards. I know there’s already some out there, but I like learning how to do my own so that I can contribute to the community my own designs. Right now, I’m attempting to use flex-table-card to display NHL standings across all divisions, conference, and overall. The problem is… I can’t seem to figure out how to display the information, and I’m sure it’s something relatively silly.
The sensor itself is ‘sensor.nhl___division’ (so, sensor.nhl_east_atlantic_division, for example), and the modifications I made to pull the information into the sensor as a json table. The results from:
{{ state_attr('sensor.nhl_east_atlantic_division', 'standings' }}
returns
[
{
"place": 1,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/fla.png' height='20' /> Florida Panthers",
"games_played": 18,
"wins": 12,
"losses": 5,
"otl": 1,
"games_behind": "-",
"points": 25
},
{
"place": 2,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/tor.png' height='20' /> Toronto Maple Leafs",
"games_played": 19,
"wins": 11,
"losses": 6,
"otl": 2,
"games_behind": "1",
"points": 24
},
{
"place": 3,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/tb.png' height='20' /> Tampa Bay Lightning",
"games_played": 16,
"wins": 9,
"losses": 6,
"otl": 1,
"games_behind": "6",
"points": 19
},
{
"place": 4,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/bos.png' height='20' /> Boston Bruins",
"games_played": 19,
"wins": 8,
"losses": 8,
"otl": 3,
"games_behind": "6",
"points": 19
},
{
"place": 5,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/ott.png' height='20' /> Ottawa Senators",
"games_played": 17,
"wins": 8,
"losses": 8,
"otl": 1,
"games_behind": "8",
"points": 17
},
{
"place": 6,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/buf.png' height='20' /> Buffalo Sabres",
"games_played": 18,
"wins": 8,
"losses": 9,
"otl": 1,
"games_behind": "8",
"points": 17
},
{
"place": 7,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/det.png' height='20' /> Detroit Red Wings",
"games_played": 17,
"wins": 7,
"losses": 9,
"otl": 1,
"games_behind": "10",
"points": 15
},
{
"place": 8,
"team": "<img src='https://a.espncdn.com/i/teamlogos/nhl/500/mtl.png' height='20' /> Montreal Canadiens",
"games_played": 18,
"wins": 6,
"losses": 10,
"otl": 2,
"games_behind": "11",
"points": 14
}
]
Now, I have tried:
type: custom:flex-table-card
title: NHL Standings - East Atlantic Division
entities:
include: sensor.nhl_east_atlantic_division
columns:
- data: place
name: Place
- data: team
name: Team
- data: games_played
name: GP
- data: wins
name: W
- data: losses
name: L
- data: otl
name: OTL
- data: games_behind
name: GB
- data: points
name: PTS
and other variants for data, such as data: standings.x.<field>
or data: x.standings.<field>
or data: <x|standings>.<field>
all to no avail, leaving everything as undefined
.
I’m out of options to what I should be using, and would appreciate any help.