Note: skolmaten.se api key issue still not resolved, still only one week menu available via rss, sorry:
Skolmat custom component for the food menu in Swedish schools (and some other places)
This component is most probably only valid in Sweden. It leverages data from skolmaten.se, webmenu.foodit.se, menu.matildaplatform.com, mpi.mashie.com or meny.mateo.se to create entities from a configured data source (url).
From version 2.0, the integration exposes two entities per configured school:
- a sensor entity showing today's lunch
- a calendar entity showing lunch events for past and upcoming days (90 day event history kept)
The sensor attributes contain the full parsed menu data and are used by the calendar entity and the corresponding lovelace card.
Use the entities as you please or install the companion lovelace custom card to display the menu for today or for the week: https://github.com/Kaptensanders/skolmat-card
YAML configuration is no longer supported as of version 2.0.
- Install the integration with HACS
- Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add integration
- Search for Skolmat
- Enter:
- Name of the school
- Menu URL
- Optional lunch begin / end time for calendar events (or it will be a full day event)
For each configured school, the integration will create:
- One sensor entity
- One calendar entity
Both entities belong to the same device and share the same underlying menu data.
- Entity ID:
sensor.skolmat_<school> - State: today's available course(es)
- Attributes contain the full parsed menu data (used by skolmat-card)
- Entity ID:
calendar.skolmat_<school> - One event per day (lunch)
- All-day events by default
- Optional lunch begin / end time if configured
- Past events are kept for a limited time window
- Open https://skolmaten.se/ and follow the links to find your school.
- When you arrive at the page with this week's menu, copy the url
Example:
https://skolmaten.se/skutehagens-skolan
- Open https://webmenu.foodit.se/ and follow the links to find your school.
- When you arrive at the page with this week's menu, copy the url
Example:
https://webmenu.foodit.se/?r=6&m=617&p=883&c=10023&w=0&v=Week&l=undefined
- Open https://menu.matildaplatform.com/ and find your school using the search box.
- When you arrive at the page with this week's menu, copy the url
Example:
https://menu.matildaplatform.com/meals/week/63fc93fcccb95f5ce5711276_indianberget
NOTE: mashie.com has different subdomains like mpi, sodexo, and possibly more.
Example below is for mpi.mashie.com.
If the url to your weekly menu contains /public/app/ you should be fine. Otherwise, let me know.
- Open https://mpi.mashie.com/public/app and find your school using the search box
- When you arrive at the page where you can see the menu, copy the url
Example:
https://mpi.mashie.com/public/app/Laholms%20kommun/a326a379
- Open https://meny.mateo.se and find your school using the search box
- When you arrive at the page where you can see the menu, copy the url
Example:
https://meny.mateo.se/kavlinge-utbildning/91
