A simple custom component to track the upcoming match from a dutch field hockey teams using the HockeyWeerelt api.
HACS → Integrations → 3 dots → Custom repositories → Put https://github.com/joosthoi1/hockey-team-tracker under ‘repository’ → Put Integration as category → Click add and it should show up so you can download it.
Add a team using the config flow at Settings > Devices & Services > Add integration > Hockey Team Tracker. Select a club which has a team you want to track. Select a team and optionally give a sensor name, if you want to select more teams from one club, click the checkmark.
I dont recommend manually adding a sensor, but it is possible with the following scheme:
sensor:
- platform: hockey_team_tracker
teams: | required
- team: N15163 | required
name: Goudse MHC D1 | required
competition: N12 | optional
- team: N10814
name: Goudse MHC H1
- team: N33801
name: Goudse MHC H2
The sensors it creates do an api call to https://publicaties.hockeyweerelt.nl/mc/teams/{team_id}/matches/upcoming?show_all=0 and sets the attributes to $.data[0] every 10 minutes.
Use a custom card to display the data for example.