Closed nutsofamily closed 11 months ago
With the update i did change and removed id to team abbrev.
But to actually get the scores to show up is states to replace nhl.sensore with device id??
This is my old config.
platform: nhl_api team_abbrev: mtl name: "NHL Montreal Canadiens" scan_interval: 30
platform: nhl_api team_abbrev: tor name: "NHL Maple Leafs" scan_interval: 30
platform: nhl_api team_abbrev: van name: "NHL Vancouver Canucks" scan_interval: 30
platform: nhl_api team_abbrev: wpg name: "NHL Winnipeg Jets" scan_interval: 30
platform: nhl_api team_abbrev: cgy name: "NHL Calgary Flames" scan_interval: 30
platform: nhl_api team_abbrev: edm name: "NHL Edmonton Oilers" scan_interval: 30
platform: template sensors: nhl_edm_away_team: entity_picture_template: "{{ states.sensor.nhl_edm.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_edm.attributes.away_name }}" value_template: "{{ states.sensor.nhl_edm.attributes.away_score }}" nhl_edmonton_oilers_home_team: entity_picture_template: "{{ states.sensor.nhl_edm.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_edm.attributes.home_name }}" value_template: "{{ states.sensor.nhl_edm.attributes.home_score }}"
platform: template sensors: nhl_maple_leafs_away_team: entity_picture_template: "{{ states.sensor.nhl_tor.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_tor.attributes.away_name }}" value_template: "{{ states.sensor.nhl_tor.attributes.away_score }}" nhl_maple_leafs_home_team: entity_picture_template: "{{ states.sensor.nhl_tor.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_tor.attributes.home_name }}" value_template: "{{ states.sensor.nhl_tor.attributes.home_score }}"
platform: template sensors: nhl_calgary_flames_away_team: entity_picture_template: "{{ states.sensor.nhl_cgy.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_cgy.attributes.away_name }}" value_template: "{{ states.sensor.nhl_calgary_flames.attributes.away_score }}" nhl_calgary_flames_home_team: entity_picture_template: "{{ states.sensor.nhl_cgy.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_cgy.attributes.home_name }}" value_template: "{{ states.sensor.nhl_cgy.attributes.home_score }}"
nhl_montreal_canadiens_away_team: entity_picture_template: "{{ states.sensor.nhl_mtl.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_mtl.attributes.away_name }}" value_template: "{{ states.sensor.nhl_mtl.attributes.away_score }}" nhl_montreal_canadiens_home_team: entity_picture_template: "{{ states.sensor.nhl_mtl.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_mtl.attributes.home_name }}" value_template: "{{ states.sensor.nhl_mtl.attributes.home_score }}"
nhl_vancouver_canucks_away_team: entity_picture_template: "{{ states.sensor.nhl_van.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_van.attributes.away_name }}" value_template: "{{ states.sensor.nhl_van.away_score }}" nhl_vancouver_canucks_home_team: entity_picture_template: "{{ states.sensor.nhl_van.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_van.attributes.home_name }}" value_template: "{{ states.sensor.nhl_van.attributes.home_score }}"
nhl_winnipeg_jets_away_team: entity_picture_template: "{{ states.sensor.nhl_wpg.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_wpg.attributes.away_name }}" value_template: "{{ states.sensor.nhl_wpg.attributes.away_score }}" nhl_winnipeg_jets_home_team: entity_picture_template: "{{ states.sensor.nhl_wpg.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_wpg.attributes.home_name }}" value_template: "{{ states.sensor.nhl_wpg.attributes.home_score }}"
Additional context Add any other context about the problem here.
Your sensors' entity IDs are based on the name you defined. Are you sure they are called for example sensor.nhl_mtl and not sensor.nhl_montreal_canadiens?
sensor.nhl_mtl
sensor.nhl_montreal_canadiens
Closing as no response received.
With the update i did change and removed id to team abbrev.
But to actually get the scores to show up is states to replace nhl.sensore with device id??
This is my old config.
platform: nhl_api team_abbrev: mtl name: "NHL Montreal Canadiens" scan_interval: 30
platform: nhl_api team_abbrev: tor
name: "NHL Maple Leafs" scan_interval: 30
platform: nhl_api team_abbrev: van
name: "NHL Vancouver Canucks" scan_interval: 30
platform: nhl_api team_abbrev: wpg name: "NHL Winnipeg Jets" scan_interval: 30
platform: nhl_api team_abbrev: cgy name: "NHL Calgary Flames" scan_interval: 30
platform: nhl_api team_abbrev: edm name: "NHL Edmonton Oilers" scan_interval: 30
platform: template sensors: nhl_edm_away_team: entity_picture_template: "{{ states.sensor.nhl_edm.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_edm.attributes.away_name }}" value_template: "{{ states.sensor.nhl_edm.attributes.away_score }}" nhl_edmonton_oilers_home_team: entity_picture_template: "{{ states.sensor.nhl_edm.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_edm.attributes.home_name }}" value_template: "{{ states.sensor.nhl_edm.attributes.home_score }}"
platform: template sensors: nhl_maple_leafs_away_team: entity_picture_template: "{{ states.sensor.nhl_tor.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_tor.attributes.away_name }}" value_template: "{{ states.sensor.nhl_tor.attributes.away_score }}" nhl_maple_leafs_home_team: entity_picture_template: "{{ states.sensor.nhl_tor.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_tor.attributes.home_name }}" value_template: "{{ states.sensor.nhl_tor.attributes.home_score }}"
platform: template sensors: nhl_calgary_flames_away_team: entity_picture_template: "{{ states.sensor.nhl_cgy.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_cgy.attributes.away_name }}" value_template: "{{ states.sensor.nhl_calgary_flames.attributes.away_score }}" nhl_calgary_flames_home_team: entity_picture_template: "{{ states.sensor.nhl_cgy.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_cgy.attributes.home_name }}" value_template: "{{ states.sensor.nhl_cgy.attributes.home_score }}"
nhl_montreal_canadiens_away_team: entity_picture_template: "{{ states.sensor.nhl_mtl.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_mtl.attributes.away_name }}" value_template: "{{ states.sensor.nhl_mtl.attributes.away_score }}" nhl_montreal_canadiens_home_team: entity_picture_template: "{{ states.sensor.nhl_mtl.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_mtl.attributes.home_name }}" value_template: "{{ states.sensor.nhl_mtl.attributes.home_score }}"
nhl_vancouver_canucks_away_team: entity_picture_template: "{{ states.sensor.nhl_van.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_van.attributes.away_name }}" value_template: "{{ states.sensor.nhl_van.away_score }}" nhl_vancouver_canucks_home_team: entity_picture_template: "{{ states.sensor.nhl_van.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_van.attributes.home_name }}" value_template: "{{ states.sensor.nhl_van.attributes.home_score }}"
nhl_winnipeg_jets_away_team: entity_picture_template: "{{ states.sensor.nhl_wpg.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_wpg.attributes.away_name }}" value_template: "{{ states.sensor.nhl_wpg.attributes.away_score }}" nhl_winnipeg_jets_home_team: entity_picture_template: "{{ states.sensor.nhl_wpg.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_wpg.attributes.home_name }}" value_template: "{{ states.sensor.nhl_wpg.attributes.home_score }}"
Additional context Add any other context about the problem here.