Repository navigation
Releases
Releases · prusuino/ha_swiss_lottery
Swiss Lottery 0.5.5
- Fixed: no results since Swisslos rebuilt its website. The block with the latest draw of all three games is gone from the page footer, so every refresh failed with swisslos.ch page not understood and the entities were unavailable. The integration now reads each game's own winning-numbers page: numbers, prize tables, extra games and jackpots from the results on the page, the closing time of the next draw from the page header.
- One request per hour and game instead of one for all three; only the games you added are asked for.
- The repair notice said the entities keep their last values while the page cannot be read. They are unavailable, and the notice says so now.
- Tests for the parser against the three pages as published.
Swiss Lottery 0.5.4
- Fixed: a draw published during an outage did not fire the triggers. While Swisslos cannot be reached the entities are unavailable, and Home Assistant ignores every change out of "unavailable". A new draw, or a win, that appeared when the data came back did not fire Draw published and Ticket won. Both triggers now compare with the state before the outage; a draw that only reappears does not fire again.
- Tests for the triggers with real automations.
Swiss Lottery 0.5.3
- Listed in the Marketplace default catalog. The README now leads with the Marketplace/HACS search and keeps the custom-repository steps as a fallback, as suggested by @frenck in the HACS review (hacs/default #13449).
Swiss Lottery 0.5.2
- Card hardening. The card escapes every attribute value it renders: the badge class of the bonus balls, the bonus kind (only
lucky,starsanddreamare accepted) and the match counts of a ticket, which are coerced to numbers. Found in the HACS review by @frenck (hacs/default #13449). - Version on the service card. The integration's version now appears on its service card under Settings → Devices & services, where the entities are listed.
Swiss Lottery 0.5.1
- Maintenance. The integration now keeps its per-entry data in the config entry's runtime data, as the Home Assistant quality scale asks, and declares the bronze tier in its manifest. The README gained a removal section. A test suite (ticket parser, draw evaluation, config flow) runs on every push. No change to entities or configuration.
Swiss Lottery 0.5.0
- New: repair notices. A notice under Settings → Repairs when swisslos.ch has not answered for three refreshes in a row, and another when the results page could not be read three times in a row, which means the page changed and the integration needs an update. Both clear themselves with the next successful refresh. In all four languages.
v0.4.1
- Fixed: the diagnostics download could contain private values. The entry's unique id went out unredacted: depending on the integration it holds the coordinates of the entry or, for a VKF entry of Swiss Hail Protection, the device serial. The text of the last error could also repeat a request URL. The unique id, the entry title and the entry's name and location fields are now redacted, and only the type of the last error is reported. If you have shared a diagnostics file from the previous version, consider it exposed.
v0.4.0
- New: diagnostics download. The entry menu under Settings → Devices & services offers Download diagnostics: the entry's configuration, what was last fetched and the current state of its entities, with coordinates, credentials and other personal values redacted and long lists cut. Attach it to an issue report.
v0.3.0
- New: triggers and conditions in the automation editor (Home Assistant 2026.10 / 2026.11 or newer). A ticket has won, A draw was published and Jackpot crossed a threshold (an amount in CHF or a CHF entity) appear in the trigger list, A ticket has won and No ticket has won in the condition list, in all four languages. Each targets the integration's own entities; the usual for and behaviour options apply. On older versions the entries are simply not offered.
- New: a blueprint, notify on a winning ticket. One-click import from the README: picks the win sensors of your games and your phone, and sends game, draw date and every winning ticket with rank and prize; an action field takes your own steps with the text as
{{ message }}.
v0.2.0
- New: a dashboard strategy. The card file now also registers
custom:swiss-lottery, a recipe Home Assistant renders in the browser: one section per game with the Swiss Lottery card, the win sensor and the closing time of the next draw, generated live from your config entries — nothing is written into your dashboard configuration. The resource you registered for the card is all it needs. Pick Swiss Lottery under Settings → Dashboards → + Add dashboard, or fill a single view of your own dashboard with it;titleandmax_columnscan be set understrategy:. The README has the details.