Hello @23Phantom08 For troubleshooting, there are a number of things you should validate. These are in no particular order, but will all help ensure your code will display correctly.
In your configuration.yaml file. Make sure you include the sensor.yaml and template.yaml lines. A standard install would inlude the following, at minimum.
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include template.yaml
sensor: !include sensor.yaml
Within your sensor.yaml
##
## German Bundesliga
##
- platform: rest
scan_interval: 14400
name: german_bundesliga_standings
unique_id: sensor.german_bundesliga_standings
resource: https://site.web.api.espn.com/apis/v2/sports/soccer/ger.1/standings
value_template: "{{ now() }}"
json_attributes:
- children
Within our template.yaml
##
## German Bundesliga Table
##
- name: german_bundesliga
unique_id: sensor.german_bundesliga
state: "{{ now() }}"
attributes:
entries: >-
{{ state_attr('sensor.german_bundesliga_standings','children')[0]['standings']['entries'] }}
Install all necessary cards from HACS.
Teamtracker - GitHub - vasqued2/ha-teamtracker: Home Assistant integration that provides real-time scores in multiple professional (NBA, NFL, NHL, MLB, MLS, and more), college (NCAA), and international (soccer, golf, tennis, mma, racing) sports using ESPN APIs.
Flex-Table - GitHub - custom-cards/flex-table-card: Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept
Layout - GitHub - thomasloven/lovelace-layout-card: 🔹 Get more control over the placement of lovelace cards.
Mod - GitHub - thomasloven/lovelace-card-mod: 🔹 Add CSS styles to (almost) any lovelace card
Tabbed - GitHub - kinghat/tabbed-card: a custom card for home assistant that utilizes tabs to segregate individual cards.
Stack-in - GitHub - custom-cards/stack-in-card: đź› group multiple cards into one card without the borders
Decluttering - GitHub - custom-cards/decluttering-card: đź§ą Declutter your lovelace configuration with the help of this card
*Multiscrape if you use @kbrown01 's NHL schedule
Assuming you replaced my sensor name with yours, in the code I shared above and you still aren’t seeing anyting. Use the HA Developer Tools to check the state of your sensor " sensor.bundesliga_tabelle ". You should be seeing something come back like this:
- A note on my reference of “German” with Bundesliga. I used “english” for EFL, “french” for Ligue 1 etc… There is no intent behind my naming other than pointing towards a country or region for my own reference. I hope it’s obvious, but I don’t know who is reading and want to be clear.