I’ve been using a much older version of the ha-teamtracker-card. I made tweaks to the card to fit it on my dashboard, so I haven’t updated from HACS in a long time. I noticed the newest version of the card is much different with different with multiple files for in, pre, post, etc. Where mine only has ha-teamtracker-card.js
Recently my card stopped working and can’t figure out why. The newest version does work. I assume something broke the old version with an update. Does anyone have any advice to get the earliest version of this component with one js file working again?
in welche datei kommt der code ?
ist es eigendlich möglich das die partien automatisch neu erstellt werden nach einem spiel tag ?
habe eine tabbele drin die stimmt aber nicht das torverhältnis passt nicht und die punkte auch nicht
First of all thank you @vasqued2 and all others involved for this great project! Easy to integrate and to setup well documented.
One tiny thing that bothers me is that in case your team hasn’t any matches in the upcoming days and therefore tracker state is NOT_FOUND, the espn leaves the state attributes more or less null and the lovelace card just shows some minimal information and the (in my case ungly) league logo.
Of course there are several ways to keep the card from showing in this case (i.e. conditional card), but on my sports panel i wanted them to also show the information that there isn’t any game soon.
Anyway since the card only displays the espn ID and the league logo (at least for soccer) i decided to change the state attributes when the team_tracker state is NOT_FOUND.
I use python script Home Assistant Entities Script to change the attributes for league_logo to team logo and team_abbr to Team Name by automation each time the integration updates the tracker.
Just in case someone has a similar request maybe this information helps to achieve your goal.
automation:
- id: set_logo_tracker_vfl
alias: Tracker Logo VFL to VFL
mode: single
trigger:
- platform: state
entity_id:
- sensor.team_tracker_vfl
attribute: last_update
condition:
- condition: state
entity_id: sensor.team_tracker_vfl
state: NOT_FOUND
action:
- service: python_script.hass_entities
data:
action: set_state_attributes
entity_id: sensor.team_tracker_vfl
state: NOT_FOUND
attributes:
- league_logo: https://a.espncdn.com/combiner/i?img=/i/teamlogos/soccer/500/7013.png
- team_name: VFL
- team_abbr: VFL
When I download the earliest version from HACS (v0.62), I restart home assistant, clear cache, open and close browser. The teamtracker card does not load after.
If I use the newest version it works fine.
No problem if I can’t use the earlier version, I’ll find a work around
Am getting out of my depth here but would guess it’s an issue with your Resources settings for your Dashboards. In HA go to Settings > Dashboards then overflow/“three dots menu” and Resources and you’ll see what you’ve added already.
Probably the newest/latest card’s “resource” is in there as you’ve had this installed so the older version you’ve loaded doesn’t register…
Open to someone wiser than me inputting but think what you need to do is either…remove the existing resource entry, refresh and then re add it and refresh again (see Manual Install Instructions for card) OR edit the existing resource entry changing the reference after the ‘?’ so HA recognises a new/changed card…
I tried this add-in and wanted to add de eredivisie from The Netherlands but for some reason i keep getting NOT_FOUND. Anyone here that was able to add this succesfully??
It seems i was a bit to fast with my question as it works now.
What if I want all the matches listed for a league do I have to create entities for all clubs or could i specify this another way?
@jackw.27 The sensor and card must remain on the same MINOR version level. So if you are running the card on v0.6.x, you must use the sensor w/ v0.6.x too. If you bump up the sensor to version 0.7.x or higher, you will run into incompatibilities of some sort. Maybe you have gotten lucky up until this point because some incompatibilities only impact some sports, not all.
If you revert both the sensor and card to v0.6.x, you should be fine.
Also, one of the changes I made that split out the files was to improve compatibility with card-mod, which makes it a lot easier to change the size and other aspects of the card.
Take a look at this Wiki entry for examples. Hopefully you will be able to use card-mod to resize or make whatever changes you want to make w/o locking you into a specific version going forward.
Nice update. This is how I wanted it to work. Unfortunately, when the state is NOT_FOUND, the API doesn’t return a logo for the Team, only the League logo. So the only way to get around it is to hard-card the logo API like you did.
You have to create a sensor for each team. There are examples in this thread of multiple ways to filter out which cards to display so you only display the ones you want.
Do you want the Network (which only tells you something like its ESPN+) or are you thinking it would deliver to you the exact Network and if streamed the exact way to stream that exact channel?