Skip to content

Releases

Swiss Meteo 1.8.3

Choose a tag to compare

@prusuino prusuino released this 23 Nov 20:39
  • Fixed: the triggers stayed silent for what began during an outage. While MeteoSwiss cannot be reached the entities are unavailable, and Home Assistant ignores every change out of "unavailable". A warning that came into force, rain or frost that became expected, or strong wind that was forecast in that time switched its sensor from unavailable straight to on, and the trigger did not fire. All eleven triggers now compare with the state before the outage: something new fires, something that was already on does not fire a second time, and the "cleared" and "stopped" triggers fire only when the sensor was on before. New forecast fires after an outage when the run differs from the one before it.

Swiss Meteo 1.8.2

Choose a tag to compare

@prusuino prusuino released this 22 Nov 22:03
  • The traffic sensor keeps counting over a restart. "Today" meant since midnight or since the last restart of Home Assistant, whichever was later, so the figure was too low on a day with a restart. The count is now stored with the remembered file positions (written at most every quarter of an hour, and when Home Assistant stops) and continued after a restart; at midnight it starts at zero as before.
  • README: the snow stations of the SLF (snow depth, new snow, snow temperatures) are part of the sister integration Swiss Avalanche Bulletin; the list of related integrations now says so.

Swiss Meteo 1.8.1

Choose a tag to compare

@prusuino prusuino released this 22 Nov 21:39
  • The warnings no longer cost gigabytes. The warnings were read from MeteoAlarm's full JSON feed every ten minutes. That feed carries every alert in five languages with its polygon: 21 MB on a day with many warnings, sent uncompressed, about 3 GB a day, and the traffic sensor did not count it. The list of alerts in force is now read from MeteoAlarm's Atom feed (1.7 MB on the same day), only when its length changed and at least once an hour; the few alerts that cover your point are then read in full, once, for the texts and the level. The warnings shown are the same: both ways were compared for twenty places across Switzerland in four languages.
  • The traffic sensor counts every feed. Until now it showed what the forecast, the radar and a history import transferred. The station, the rain gauge, the pollen station, the warnings and Open-Meteo are counted now as well. It still starts at zero after a restart of Home Assistant.
  • The forecast is read at the place it stood last time. Until now every model run was searched for from scratch: about 2.5 MB for the hourly forecast and another 7 MB for the extended values, every hour, which is about 230 MB a day with both switched on (the README said "a few megabytes a day"). The integration now remembers where your point stands in each file, also over a restart, and reads the rows of the large files one block at a time with a window of 1 KB instead of 4 to 12 KB. Measured: 0.4 MB per run for the hourly forecast and another 0.8 MB for the extended values, about 30 MB a day with both. The values read are the same; both ways were compared on the live files for four places.
  • Honest figures. The README and the setup dialog now state what was measured, including 8 to 45 MB a day for the radar. The README also names MeteoAlarm as the one source besides the federal platform that is on by default, and counts six cards and the blueprints correctly.
  • Days say more without the hourly forecast. With the hourly forecast switched off, a day showed temperature and rain amount only. It now also has the rain probability, wind, gusts and sunshine: four series are read for this, as often as the daily values (well under 2 MB a day).
  • Small files come compressed. Station, rain gauge and pollen files are requested compressed (a station file is 4 KB instead of 16 KB).
  • Repairs notices for warnings and radar. A warning feed that cannot be read for an hour, or radar frames that stay away for half an hour, now raise a notice under Settings → Repairs, as the forecast, the stations, pollen and Open-Meteo already did. It disappears with the next successful read.
  • Diagnostics without your stations. The download already left out the coordinates and the place name. The abbreviations and names of the weather, precipitation and pollen stations and the altitude of the forecast point are redacted now too, since they give the area away just as well.
  • Fixed: radar and history import with files that do not exist yet. The open-data host answers 403, not 404, for a file that does not exist. The radar took that for a failure instead of reading the frame before the newest one (after a restart its entities could stay unavailable for five minutes), and a history import stopped at a decade for which the station has no file.
  • Fixed: a slow server during a history import. A request that timed out while importing the station history ended the action with an unexpected error instead of the translated "could not be read" message.
  • For contributors: a lint workflow (ruff) and a weekly smoke test that reads every source once with the integration's own readers (scripts/smoke_test.py), so that a change at MeteoSwiss, MeteoAlarm or Open-Meteo is noticed before a user reports it.

Swiss Meteo 1.8.0

Choose a tag to compare

@prusuino prusuino released this 21 Nov 11:19
  • Quality scale: Gold. Entity names, icons and error messages now come from Home Assistant's translation files instead of the integration's own code, in German, English, French and Italian. Entity ids, unique ids and history stay as they are, and the names read as before.
  • Icons come from the icon file. They look as before, and the warning level still shows the outlined icon while no warning is in force. The entities no longer carry an icon state attribute; a template or card that read it gets nothing now. An icon you set for an entity yourself stays.
  • Translated errors. When the station history cannot be imported, the error the action shows is translated like the other action errors; the errors of a failed read carry a translation as well.
  • README: troubleshooting. A new section lists what to check when a sensor is unknown, unavailable or missing.

Swiss Meteo 1.7.1

Choose a tag to compare

@prusuino prusuino released this 19 Nov 21:56
  • The Home Assistant Marketplace lists the integration under Weather & alerts → Forecasts. The repository is marked as made for Switzerland. Nothing changes in how the integration works.

Swiss Meteo 1.7.0

Choose a tag to compare

@prusuino prusuino released this 12 Nov 06:17
  • New: optional precipitation station. Besides its weather stations, MeteoSwiss runs about 140 automatic rain gauges at other places, so in some regions a gauge is closer than the next weather station. The setup, Reconfigure and the Configure dialog now offer a fourth choice, Precipitation station: with a gauge chosen, the measured precipitation comes from it, while temperature, wind, pressure and all other values still come from the weather station. The precipitation sensor keeps its entity id and names the gauge in its station and station_name attributes; the weather entity names it as precipitation_station.
  • Nothing changes unless you choose one. Existing entries keep the precipitation of their weather station. In a new setup a gauge is suggested only when it is nearer than the nearest weather station; "–" keeps the weather station's value.
  • Station history follows the choice. With a precipitation station, Import station history builds the precipitation total from the archive of that gauge; an entry with a precipitation station alone can import it too.
  • Repair notice and diagnostics for the new part. When the gauge could not be read for an hour a notice appears under Settings → Repairs; the diagnostics download lists the state of the precipitation read.
  • Fixed: forecast for points that are not a postal code. The forecast files list their points in more than one order and the reader knew only one of them. With a forecast point that is a station or a mountain spot, values could be missing — the precipitation amounts most of all — and in the worst case the setup did not finish while requests kept going to the open-data server. The reader now recognises the order of each file, reads a file of daily values whole when a point is listed out of order, and no longer loses the last day of the daily temperatures for the last points of the list. Forecast points that are a postal code were read correctly.
  • One read of a file has a request budget. Whatever a file looks like, a read ends after a fixed number of requests and the parameter is reported as not read, instead of asking the server again and again.

Swiss Meteo 1.6.0

Choose a tag to compare

@prusuino prusuino released this 11 Nov 08:04
88de298
  • New: optional air quality, UV index and pollen forecast from Open-Meteo. MeteoSwiss publishes none of the three as open data for a point. A new switch in the setup and in the Configure dialog — off by default — adds them from the free Open-Meteo air quality API: the European Air Quality Index with its band in words, PM10, PM2.5, nitrogen dioxide, ozone, the UV index with today's maximum, and a four-day pollen forecast for alder, birch, grass, mugwort, olive and ragweed. The values are modelled (Copernicus CAMS, about 11 km), not measured and not official MeteoSwiss data; they sit on a device of their own and every sensor says so in its attribution. The measured MeteoSwiss pollen sensors are unchanged.
  • What the option sends. One request an hour to Open-Meteo with the coordinates of the forecast point, rounded to two decimals. With the switch off, no request leaves for Open-Meteo. Switching it off again removes the device and its sensors.
  • Repair notice and diagnostics for the new part. When Open-Meteo could not be read for six hours in a row a notice appears under Settings → Repairs; the diagnostics download lists the state of the Open-Meteo read.
  • Parallel updates declared. All entity platforms set PARALLEL_UPDATES = 0 (the coordinators do the reading), which closes the parallel-updates rule of the quality scale.
  • User-Agent follows the release. The version in the request header is read from the manifest instead of being a fixed string.
  • Fixed: tomorrow's mean temperature showed today's. sensor.swiss_meteo_<id>_tomorrow_mean and its hours_in_forecast attribute were worked out for the running day. They now cover tomorrow.
  • Silver on the quality scale. The tests now cover 99 % of the integration — forecast, station, pollen, warnings, radar, history import, every entity platform, the actions, triggers and conditions, the config and options flow — and answer from memory, without network access. That closes the test-coverage rule, the last one open for Silver; the manifest declares silver and the test workflow fails when the coverage drops below 95 %.

Swiss Meteo 1.5.4

Choose a tag to compare

@prusuino prusuino released this 09 Nov 17:08
  • 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 #13678).

Swiss Meteo 1.5.3

Choose a tag to compare

@prusuino prusuino released this 09 Nov 12:07
  • Card hardening. Condition and basemap lookups match own table keys only, so an unexpected state or option can no longer break the card. Follow-up to the HACS review of Swiss Lottery by @frenck.

Swiss Meteo 1.5.2

Choose a tag to compare

@prusuino prusuino released this 09 Nov 11:41
  • Version on the service card. The integration's version now appears on its service card under Settings → Devices & services, where the entities are listed.