Okay - so if You follow what @kbrown01 has you will need to make sure that your template.yaml file has the conferences. Make sure you grab his template.yaml from his github - at the top of this thread.
I moved the conferences from templates.yaml to my sensors because I ran into a limitation with Templates in college football. So I have moved away from templates.
So either use kevin’s template.yaml config or put the following in your sensor.yaml file.
I also put the leagues in their own yaml. So for NFL I have a nfl_sensors.yaml file in a sensors directory. You can see it in the thread above. Here is what I have for NFL in my nfl_sensors.yaml. You could problably put these in your senors.yaml but if you are going to follow a lot of sports it may become unruly.
##
## NFL Standings
##
- platform: rest
scan_interval: 604800
name: NFL Standings
unique_id: sensor.nfl_standings
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes:
- children
- platform: rest
scan_interval: 604800
name: NFL AFC East
unique_id: sensor.nfl_afc_east
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[0]['children'][0]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL AFC North
unique_id: sensor.nfl_afc_north
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[0]['children'][1]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL AFC South
unique_id: sensor.nfl_afc_south
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[0]['children'][2]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL AFC West
unique_id: sensor.nfl_afc_west
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[0]['children'][3]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL NFC East
unique_id: sensor.nfl_nfc_east
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[1]['children'][0]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL NFC North
unique_id: sensor.nfl_nfc_north
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[1]['children'][1]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL NFC South
unique_id: sensor.nfl_nfc_south
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[1]['children'][2]['standings']"
json_attributes:
- entries
- platform: rest
scan_interval: 604800
name: NFL NFC West
unique_id: sensor.nfl_nfc_west
resource: https://site.web.api.espn.com/apis/v2/sports/football/nfl/standings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes_path: "$.[1]['children'][3]['standings']"
json_attributes:
- entries
You need an entry for each conference