Repository navigation
Releases
Releases · prusuino/ha_swiss_solar_forecast
Swiss Solar Forecast 0.7.0
- A measurement station's own shade no longer passes for cloud. A station's sensor can stand behind a tree or below a ridge: while the sun is hidden from it, it reports a fraction of the light under a cloudless sky. The correction of the hours just ahead then cut a sunny afternoon by up to half, the factors by the kind of sky learned a fault the weather model did not have, and with a yield meter the calibration made up for both in that part of the sky — which made grey afternoons too high. The integration now reads the station's own record of the year and learns in which part of the sky the sensor stands in the shade, from the sunny days in it; what the station measures there is left out. Fog is not taken for shade: a grey start of a day teaches nothing, and under fog the station is asked as before. No setting; it goes with the option Correction from a measurement station.
- Set right once. When the shade of a station is first known, the factors of the clear and the mixed sky and, with a meter, the calibration of the parts of the sky concerned are dropped and learned afresh. Everything else that was learned stays.
- New attributes on Station correction:
station_in_shadeandstation_shade. The diagnostics tell how much of the sky the shade takes, not where it lies. - Traffic. Once per station its record of the year (one request, up to 6 MB; in January and February also the last 2.4 MB of the earlier years), then once a day the rows added since (three requests, about 65 KB). README and SECURITY.md say so.
- Tests for the recognition of shade, the reading of the record and the coordinator.
Swiss Solar Forecast 0.6.1
- The Home Assistant Marketplace lists the integration under Energy → Solar & batteries and Weather & alerts → Forecasts. The repository is marked as made for Switzerland. Nothing changes in how the integration works.
- Licence. The source code is now under the GNU General Public License v3.0 (GPL-3.0). Versions up to and including 0.6.0 stay under the MIT License they were published with.
Swiss Solar Forecast 0.6.0
- Learns what the weather model gets wrong, by the kind of sky. The measurement station that corrects the hours just ahead now also teaches: every hour it has finished is set against the forecast as it stood three hours earlier and sorted by the sky the forecast expected — clear, mixed or grey. Once a kind of sky has six such hours, its factor corrects the forecast radiation of the coming hours with that sky, from where the correction of the last hour fades to the end of the forecast. Cautious by design: held near 1 while the hours are few, limited to 0.5–1.5, fading memory, weighted by the station's distance. For everyone with a station within 25 km: no meter, no setting, no extra traffic; it goes with the existing option Correction from a measurement station.
- New attributes on Station correction (
sky_factors,sky_hours,sky_samples,sky_last_sample) and on Energy today (sky_correction); the diagnostics carry the sums per sky and the sky of every hour, still without the station or the place. - Tests for the sorting, the learning, the factors and the coordinator.
Swiss Solar Forecast 0.5.0
- Low stratus. The hours the forecast sees under low stratus — a closed low cloud layer under an open sky, no precipitation, diffuse light — are recognised from the cloud layers of the MeteoSwiss local forecast. A new sensor, Low stratus today, shows how many of today's daylight hours lie under it, which ones, when it is expected to open and how many there are tomorrow. The forecast itself is not changed by it.
- Learned on their own. With a yield meter, hours under low stratus no longer go into the factors of the sky: they get one factor of their own, shown as attributes of Calibration factor and in the diagnostics, and the coming hours under low stratus are multiplied with it once it has evidence. What was learned so far stays as it is.
- Traffic. Two more parameter files (low and medium-high cloud cover) are read with every third model run and their series kept in between: about 370 requests and 0.6 MB a day more. README and SECURITY.md say so.
- Tests for the recognition, the learning and the reading.
Swiss Solar Forecast 0.4.2
- Fix: sensors of a plane that is gone no longer stay behind. After a reconfigure that removed a plane, left the plant with a single plane, or replaced a roof of the cadastre by a plane entered by hand, the sensors that no longer exist (
plane3_…, the per-plane sensors, Typical day (cadastre) and Forecast vs typical day) stayed in the entity list as unavailable. They are now removed when the entry loads; the sensors that remain keep their entity and their history. - One read of a file has a request budget. The reader of the forecast files is the one of Swiss Meteo 1.7.0: it recognises the order in which a file lists its points, and a read ends after a fixed number of requests with the parameter reported as not read, instead of asking the open-data server again and again. The values did not change — this integration reads postal-code points only, and those were read correctly.
- The run check is counted as it is. The check for a new run takes two HEAD requests instead of one in the few minutes after the full hour, while the run of that hour is not out yet. Requests today now counts them all, and README and SECURITY.md say so.
- Tests for the reader of the forecast files and for the clean-up of the entity registry.
Swiss Solar Forecast 0.4.1
- Fix: Reconfigure no longer drops the planes entered by hand. The list of planes showed the roofs of the cadastre only, and of the plant's own planes only those were ticked. A plane entered by hand — a garage, a ground-mounted row — was neither listed nor ticked, so it left the plant without a word when the forms were clicked through, and with a yield meter the calibration then learned against modules that were no longer in the forecast. The list now holds every plane the plant has, the ones entered by hand with their name, peak power and orientation, all of them ticked: leave a tick to keep the plane, remove it to remove the plane. If you have used Reconfigure on a plant with a plane entered by hand, check that the plane is still there (the entry's ⚙️ lists the planes) and add it again if not.
- Reconfigure keeps the order of the planes whatever the order of the ticks, with new planes after the existing ones, so
plane1,plane2, … stay the planes they were. It also keeps the planes when the cadastre does not answer, two planes on the same roof, and a plane's own inverter limit. - Names instead of signs. The list entries «✎» and «Σ» are now called Add a new plane by hand and Whole plant (inverter, yield meter, corrections), in all four languages, and the texts of the forms say what each choice does.
- One meter, one entry. The yield meter has to count exactly the modules of its entry; the field now says so. Naming a meter that already calibrates another entry is refused in the form, with the name of that entry — two entries on one meter would each learn from the yield of both.
Swiss Solar Forecast 0.4.0
- The hours that are over stay as they were. Every model run computes the whole day again, the morning included, so the day's total kept moving until the evening and could end far from what the day had brought. An hour that has ended now keeps the value it ended with. With a yield meter, the plant's energy of the day counts the finished hours with what the meter measured in them (attribute
measured_hours); the planes keep their forecast. - Station correction. While the sun is up, the global radiation the nearest MeteoSwiss measurement station (SwissMetNet, within 25 km and 300 m of height) received in the last hour is set against the forecast. The ratio corrects the running hour and, fading out, the next three. It works without a meter and without a setting; a new diagnostics sensor
…_station_correctionshows it, and a switch under Configure → Σ turns it off. Costs one small request in 15 minutes during daylight, up to 1 MB a day in summer. - The calibration learns by the sun's position instead of by the hour of the day: one factor per part of the sky (15° of direction, 10° of height). Shading learned in autumn keeps fitting in winter and spring, when the sun passes the same tree at another time. What was learned by the hour cannot be carried over: the learning starts anew with this version and needs its two to three weeks again.
- The yield meter is asked for at the setup, as an optional field of the first step. It remains an option that can be changed or removed later.
- Accuracy day by day in the diagnostics: measured energy, forecast and day-ahead forecast of the last 30 days, with the state of the station correction and of the finished hours. A new issue form, Forecast accuracy report, takes the file. Nothing is sent by the integration itself; the station's name is not part of the download.
- The attribute
hourlyof…_calibration_factornow lists today's hours; the factors per part of the sky are in the new attributesun_position.
Swiss Solar Forecast 0.3.1
- Fix: a plant that lies closer to a measurement station or a mountain point than to the centre of its postal code never loaded («has no global radiation for this point», the entry kept retrying). The list of forecast points names stations, mountain points and postal-code centres alike, but only the postal-code centres carry radiation, and the setup took the nearest point of any kind. It now takes the nearest one with radiation, and an entry that sits on a point without it moves over by itself at the next start — nothing to set up again.
- Docs: the README no longer suggests picking a mountain point, and no longer lists the snow model as missing.
Swiss Solar Forecast 0.3.0
- Snow on the modules. A covered module produces nothing, however bright the day. The integration now follows the snow from the forecast itself: precipitation that falls in the cold covers the modules (one millimetre of water, about a centimetre of fresh snow, covers them completely), the snow slides off when the modules warm up — the faster the steeper they stand — and melts with warm air and sun. The forecast of every plane is reduced by the share that is covered. New sensor Snow on the modules with the cover in percent, the figure per plane, the snow on the ground, the hour from which the modules are expected to be free and the energy the snow takes today. The state is kept from one model run to the next and across restarts. With a yield meter, modules that produce although the forecast shows them covered are set free at once. Switched on by default, also for existing plants; to switch it off use Configure → Σ. The thresholds are taken from the literature and are an estimate.
- Forecast accuracy. With a yield meter, two diagnostics sensors tell how well the forecast did over the last 7 and 30 days: the accuracy of the forecast that stood at the start of each day as the state, and as attributes the accuracy of the last forecast before each hour, the hourly accuracy, the bias, the number of days and the energy forecast and measured. Only days of which nearly every hour was counted enter the figures.
- Finer physics. The diffuse light is split into the bright ring around the sun and the rest of the sky (Hay & Davies) instead of an evenly bright sky; the module glass reflects light that falls in flat (Martin & Ruiz); the cell temperature follows the forecast wind (Faiman) instead of a fixed NOCT; behind terrain a plane loses the part of the sky the mountains hide, not only the direct beam; snow on the ground reflects more light onto steep planes. Clear days come out a little higher on planes that face the sun and lower on planes that face away; mornings, evenings and flat roofs a little lower.
- Two more parameters are read from the local forecast for this: precipitation and wind. A run without them still works; the snow sensor then shows unknown and the wind counts as a light breeze.
- The self-calibration leaves out the hours with snow on the modules: snow is no property of the plant.
- Less traffic, and the true figure. A model run cost about 2.4 MB, not the 300 KB the README named: the temperature file is grouped by timestamp instead of by point, so one point needs a read in each of its 200 blocks. The temperature series is now kept and read again every six hours only — the few hours a newer run adds at its end repeat the day before — while the other four files, about 160 KB together, are read with every run as before. That makes about 13 MB a day instead of 57 MB. The
…_runsensor shows what the last read cost, and the diagnostics download tells which run every series comes from. - Fix: reconfiguring a plant without typing the address again removed the address from the entry, and the device card showed the name of the forecast point instead. The address now stays for as long as the marker is left where it is; a marker moved elsewhere drops it, and a new search replaces it. Forecast, planes and entity IDs were not affected.
- Docs:
SECURITY.mdsays what the integration sends to the two federal services and what it stores. - The diagnostics download carries the snow as it is followed and the accuracy figures.
Swiss Solar Forecast 0.2.0
- Terrain horizon. The horizon of the place is read once from the swisstopo elevation model (five requests to the federal geo API, about 2 MB, kept afterwards): 37 directions from north-east over south to north-west, 25 km far. While the sun stands behind a mountain or a valley side, the direct beam of that part of the hour is left out and only the diffuse light counts. Switched on by default, also for existing plants after the update; to switch it off use Configure → Σ. New diagnostics sensor Terrain horizon with the highest angle and the whole profile. Bare terrain only: no trees, no buildings.
- Self-calibration against your own meter. Name the energy sensor of the plant under Configure → Σ, and every full hour the forecast is compared with what the meter counted. One factor per hour of the day is learned, with a fading memory of about two weeks, and applied to the coming days: shading by trees and buildings, soiling, lasting snow. New diagnostics sensor Calibration factor with the factor per hour, the number of learned hours and the energy of today without the calibration. Nothing changes without a meter.
- The energy sensor of today tells in its attributes whether the terrain horizon and the calibration are at work; the diagnostics download carries both in brief, with the name of the meter redacted.