1. Measured
Solariance-API-V1
  • Getting Started
  • Authentication
  • Time and intervals
  • Data and resolution
  • Changelog
  • Use Solariance in Claude
  • Forecast
    • forecast/power
      GET
    • forecast/energy
      GET
    • forecast/temperature
      GET
    • forecast/export
      GET
    • forecast/correction-factors
      POST
    • forecast/market
      GET
  • System
    • system/list
      GET
    • system/view
      GET
    • system/create
      POST
    • system/update
      PUT
    • system/delete
      DELETE
    • system/forecast_status
      GET
  • User
    • user/view
      GET
    • user/update
      PUT
  • Measured
    • Measured irradiance (not live yet)
    • measured/irradiance/upload (not live yet)
      POST
    • measured/irradiance: read (not live yet)
      GET
    • measured/irradiance: erase (not live yet)
      DELETE
  • Portfolio
    • portfolio/schedule
      GET
    • portfolio/forecast
      GET
  • Schemas
    • IrradianceUploadRequest
    • IrradianceSeries
    • IrradianceValuePair
    • IrradianceSensor
    • IrradianceUploadResponse
    • IrradianceConflictResponse
    • IrradianceUploadData
    • IrradianceTotals
    • IrradianceSeriesResult
    • IrradianceRejection
    • IrradianceWarning
    • IrradiancePreview
    • IrradianceReadResponse
    • ErrorData
    • IrradianceSensorList
    • IrradianceSensorValues
    • IrradianceSensorView
    • IrradianceRow
    • IrradianceEraseResponse
    • ErrorResponse
Impressum
Datenschutz
  1. Measured

Measured irradiance (not live yet)

Not live yet. These routes are documented ahead of their release; each answers 404 until Solariance
opens it. An account also needs the irradiance feature (beta: on request)
and the measured-data opt-in.
Send the readings of your own irradiance sensor (a pyranometer, a silicon
reference cell in the module plane, or a weather station) to Solariance. The
AI forecast uses them for your own system only: to check the weather
forecast at your site, to learn how your roof answers the light, and to
correct the coming hours before your inverter's readings arrive. A sensor of
one system is never used for another system or another account.
Production is not sent here: it has its own route,
POST /v1/measured/production/upload.
RouteWhatToken permission
POST /v1/measured/irradiance/uploadSend values (?dry_run=1 to check only)Upload or ReadWrite
GET /v1/measured/irradianceList a system's sensors, or read one sensor's valuesReadOnly, Upload or ReadWrite
DELETE /v1/measured/irradianceErase a span, a sensor, or every sensor of a systemReadWrite

Before you start#

1.
Token. Send Authorization: Bearer <API token> with every request.
Create one in your account (Entwickler) as ReadOnly, ReadWrite or
Upload ("Lesen und Messdaten hochladen": send and read, never erase or
change a system), for example for a data logger or Home Assistant.
2.
Features. The account needs the measured-data feature and the
irradiance feature (beta: on request).
3.
Opt-in. Record the measured-data opt-in once:
PUT /v1/measured/settings with
{"opt_in": true, "policy_version": "YYYY-MM"} (the release of the
privacy notice you accept).
4.
Location. Your system needs its coordinates, or the values are not
checked against the sun (warning no_location).
Each route allows 120 requests an hour per account (the upload on its
own; reading and erasing share one budget).
All answers have the usual shape {"code": …, "message": "…", "data": {…}}.
data.reason is a stable code to branch on; message is for people and may
change.

Send values#

POST https://api.solariance.de/v1/measured/irradiance/upload
Content-Type: application/json. Add ?dry_run=1 (or true, yes, on)
to check a request without storing anything: the answer shows per series what
would be stored, with a preview of the first rows and the clear sky they were
checked against. A dry run does not count against the daily value limit.

Request#

{
  "unit": "W/m2",
  "interval_minutes": 5,
  "interval_label": "start",
  "series": [
    {
      "system_id": "PV1A2B3C4D5E",
      "sensor": {
        "id": "roof-south",
        "plane": "module",
        "tilt_deg": 30,
        "azimuth_deg": 180,
        "type": "reference_cell"
      },
      "values": [
        ["2026-11-18T10:00:00Z", 412.5],
        ["2026-11-18T10:05:00Z", 430.0]
      ]
    }
  ]
}
A horizontal sensor has no tilt or azimuth:
"sensor": {"id": "mast-horizontal", "plane": "horizontal", "type": "pyranometer"}
FieldRequiredMeaning
unityesW/m2 (also W/m², Wm-2, W m-2, W/m^2, any case). Lux is refused: an illuminance sensor does not measure irradiance
quantitynoOnly irradiance
interval_minutesyes1, 5, 10, 15 or 60. One-minute values are stored as five-minute means, and a five-minute mean needs all five
interval_labelyesstart: the value is the mean over the interval its time opens. end: the mean over the interval its time closes. instant: a sample at that moment
sourcenoha_sensor for an integration that re-sends its recent values: such values only fill gaps and never replace what is stored. Leave out for an upload of your own
series[]yesOne entry per system and sensor, 1 to 1,000. A system and sensor may appear once per request
series[].system_idyesOne of your systems
series[].sensor.idyesYour name for the sensor: 1 to 40 characters of A-Z a-z 0-9 . _ -, unique per system. Upper and lower case count as the same (Roof and roof are one sensor). Up to 8 sensors per system
series[].sensor.planeyeshorizontal, or module for a sensor in the plane of the modules. A module plane with tilt 0 is stored as horizontal
series[].sensor.tilt_degmodule plane0 to 90 degrees, kept to a tenth of a degree. Leave out for a horizontal sensor
series[].sensor.azimuth_degmodule plane0 to 360 degrees from north, clockwise: 90 east, 180 south, 270 west. Kept to a tenth of a degree. Leave out for a horizontal sensor
series[].sensor.typeyespyranometer, reference_cell, weather_station or other
series[].valuesyes[time, value] pairs, value in W/m2. Every time needs an offset: 2026-11-18T10:00:00Z or 2026-11-18T11:00:00+01:00
Limits: up to 1,000 series, 50,000 values and 10 MB per request; up to 8
sensors per system; up to 300,000 stored values per account and UTC day.

A sensor's position is fixed once it holds values#

A sensor that already holds values and is sent with another plane, tilt or
azimuth, or that switches between means (start/end) and samples
(instant), is refused with sensor_changed. If you move a sensor, give it a
new id, or erase its values first. Its type may change at any time.

Sending the same values again is safe#

Your own uploads replace the stored values they overlap. Values sent with
"source": "ha_sensor" only fill gaps and never replace what is stored
(counted as kept).

What is checked#

Every value is held against the clear sky at your system's place, in the
sensor's own plane, averaged over the value's interval. One refused value does
not stop the others.
CheckRefused as
Below -20 W/m2 or above 1,600 W/m2. Values from -20 to 0 W/m2 (a pyranometer's night offset) are stored as 0implausible_value
Above a × clear sky + b, or above the interval's ceiling (next table)above_clear_sky
More than 40 W/m2 while the sun is below the horizon for the whole interval: usually a time-zone errorlight_at_night
Off the interval's UTC grid (a 5-minute value must start at :00, :05, …)misaligned
Ends more than 5 minutes in the futurefuture_interval
Starts more than 400 days agotoo_old
Time unreadable / value not a numberinvalid_time / not_a_number
A 1-minute value whose five-minute block is incompleteincomplete_interval
IntervalRefused aboveCeiling (horizontal / module plane)
1 minute, and every instant sample1.6 × clear sky + 200 W/m21,600 / 1,600 W/m2
5 minutes1.45 × clear sky + 185 W/m21,450 / 1,550 W/m2
10 and 15 minutes1.3 × clear sky + 165 W/m21,350 / 1,450 W/m2
60 minutes1.3 × clear sky + 100 W/m21,250 / 1,350 W/m2
The limits leave room for cloud enhancement, which lifts real values well
above the clear sky for minutes at a time.
Three warnings refuse nothing:
no_location: the system has no coordinates, so the values were not checked against the sun;
lux_suspect: most values are far above any irradiance, as an illuminance sensor sent as W/m2 would be;
time_suspect: the day's light sits 40 minutes or more off the sun on at least two days. Check the time zone of the stamps and interval_label.

Answer#

{
  "code": 200,
  "message": "OK",
  "data": {
    "dry_run": false,
    "upload_id": "6f1c2a9e-3b4d-4e5f-8a7b-0c1d2e3f4a5b",
    "totals": {"series": 1, "values": 4, "stored": 2, "replaced": 1, "kept": 0, "rejected": 2},
    "series": [
      {
        "system_id": "PV1A2B3C4D5E",
        "sensor_id": "roof-south",
        "status": "stored",
        "minutes": 5,
        "averaging": "mean",
        "stored": 2,
        "replaced": 1,
        "kept": 0,
        "rejected": 2,
        "first_start_utc": "2026-11-18T10:00:00Z",
        "last_end_utc": "2026-11-18T10:10:00Z",
        "rejections": [
          {"time": "2026-11-18T10:10:00Z", "reason": "above_clear_sky"},
          {"time": "2026-11-18T17:00:00Z", "reason": "light_at_night"}
        ],
        "warnings": []
      }
    ]
  }
}
FieldMeaning
dry_runWhether this was a dry run
upload_idIdentifies the upload; null for a dry run or when nothing was stored
totalsseries and values sent; rows stored; stored rows replaced; values kept out (an ha_sensor value where a row was already there); values rejected. replaced and kept are null in a dry run
series[].statusstored, rejected (see reason, sometimes detail) or failed (storage_failed: send that series again)
series[].minutes, averagingThe grain stored (1-minute values are stored as 5) and mean or sample
series[].first_start_utc, last_end_utcThe stored span, UTC
series[].rejectionsThe refused values with their reason, at most 50 listed (rejected counts them all)
series[].warnings{code, detail}
series[].previewDry run only: grain, averaging, label, unit, span, accepted values, rows, and the first five rows with clear_sky_wm2
A series can be refused as a whole (series[].reason):
reasonMeaning
duplicate_intervalTwo values name the same interval
nothing_validNo value passed the checks
unknown_systemNot one of your systems
system_lockedThe system is paused by your plan
sensor_changedThe sensor holds values measured in another position or averaging: use a new id
too_many_sensorsA ninth sensor on the system: erase one first
storage_failedCould not be stored: send it again

Errors#

Statusdata.reasonWhat to do
400invalid_json, invalid_unit, invalid_quantity, invalid_interval, invalid_label, invalid_source, invalid_sensor, duplicate_series, timestamp_without_offset, too_many_values, too_many_seriesFix the request; detail says what. Nothing was stored
401token_missing, token_malformed, token_invalid, token_expired, session_revoked, account_deleted, verification_unavailable, entitlements_changedSend a valid token. For entitlements_changed, renew the token and retry once. A revoked API token answers without a reason
403feature_required (data.feature: measured_data or ai_irradiance)The feature is not part of your plan yet
403measured_opt_in_requiredRecord the opt-in first (PUT /v1/measured/settings)
403(none)The token's permission does not allow sending (ReadOnly)
409sensor_changedNo series was stored, and a sensor that holds values was sent with another position or averaging: use a new id. The body carries the whole answer. If other series were stored, the answer is a 200 and only that series says sensor_changed
413body_too_largeAt most 10 MB per request
415unsupported_media_typeSend Content-Type: application/json
429daily_value_capThe request would take the account past 300,000 stored values today (UTC); nothing of it was stored. Wait for Retry-After
429(none)120 requests an hour spent. Wait for Retry-After
500(none)Try again
503irradiance_uploads_offNot open yet, or paused (detail: schema_missing while Solariance is still setting it up). Try again later

Read your sensors#

GET https://api.solariance.de/v1/measured/irradiance?system_id=PV1A2B3C4D5E
Lists the system's sensors with their position, type, averaging and what each
holds:
{
  "code": 200,
  "message": "OK",
  "data": {
    "system_id": "PV1A2B3C4D5E",
    "sensors": [
      {
        "sensor_id": "roof-south",
        "plane": "module",
        "tilt_deg": 30.0,
        "azimuth_deg": 180.0,
        "type": "reference_cell",
        "averaging": "mean",
        "first_start_utc": "2026-11-02T06:45:00Z",
        "last_start_utc": "2026-11-18T10:05:00Z",
        "stored": 4210,
        "last_upload_utc": "2026-11-18T10:12:31Z"
      }
    ]
  }
}
GET https://api.solariance.de/v1/measured/irradiance?system_id=PV1A2B3C4D5E&sensor_id=roof-south&from=2026-11-12&to=2026-11-18
One sensor's stored values, at most 31 days (without from and to: the
last 7 days up to today). Days are in the system's own time zone; times are
UTC and name the start of each interval:
{
  "code": 200,
  "message": "OK",
  "data": {
    "system_id": "PV1A2B3C4D5E",
    "sensor": {"sensor_id": "roof-south", "plane": "module", "tilt_deg": 30.0, "azimuth_deg": 180.0,
               "type": "reference_cell", "averaging": "mean", "first_start_utc": "2026-11-02T06:45:00Z",
               "last_start_utc": "2026-11-18T10:05:00Z", "stored": 4210, "last_upload_utc": "2026-11-18T10:12:31Z"},
    "time_zone": "Europe/Berlin",
    "from": "2026-11-12",
    "to": "2026-11-18",
    "count": 2,
    "rows": [
      {"start_utc": "2026-11-18T10:00:00Z", "minutes": 5, "wm2": 412.5, "source": "api_upload"},
      {"start_utc": "2026-11-18T10:05:00Z", "minutes": 5, "wm2": 430.0, "source": "api_upload"}
    ]
  }
}
Reading needs the measured-data feature, not the irradiance feature: values
you stored stay readable, also on a paused system and while the upload is
closed.
Statusdata.reasonWhat to do
400invalid_range (data.max_days: 31)Send both from and to (YYYY-MM-DD) or neither; from not after to; at most 31 days
400invalid_system_idsystem_id was given twice with different values
400(none)system_id is missing
401as for the uploadSend a valid token
403not_ownerNot one of your systems
403feature_required (measured_data)The plan has no measured data
404unknown_sensor, unknown_systemNo sensor of that id on the system
429(none)120 requests an hour (shared with erasing) spent. Wait for Retry-After

Erase#

DELETE https://api.solariance.de/v1/measured/irradiance?system_id=PV1A2B3C4D5E&sensor_id=roof-south
ParametersWhat is erased
system_id, sensor_idThe sensor and all its values
system_id, sensor_id, from, toThe sensor's values on those days; the sensor stays
system_idEvery sensor of the system with all its values
system_id, from, toEvery sensor's values on those days; the sensors stay
{"code": 200, "message": "OK", "data": {"deleted_rows": 4210, "deleted_sensors": 1, "complete": true}}
Erasing is always allowed: it needs no feature and works on a paused system.
It needs a ReadWrite token. Days are in the system's time zone, at most 31
per request. One request erases for up to a minute: if complete is false,
send the same request again. A sensor without values may be sent with a new
position under its old id.
Withdrawing the measured-data opt-in with delete_data: true
(PUT /v1/measured/settings) erases your sensors too, as does deleting the
system or the account.
Errors as for reading, without feature_required; an Upload or ReadOnly
token is refused with a 403 without a reason.

Home Assistant#

From version 0.3.0, the Solariance integration for Home Assistant can send a
sensor of the class "irradiance" (W/m2) for you: pick it in the integration's
options and say how it is mounted. It sends with "source": "ha_sensor", so
it only fills gaps and never replaces values you uploaded yourself.
Modified at 2026-11-18 23:40:56
Previous
user/update
Next
measured/irradiance/upload (not live yet)
Built with