Next: , Previous: , Up: Ariston Cloud API Reference   [Contents]


A.9 Metering (GET .../consSequencesApi8)

Used by this plugin.

GET {host}/api/v2/remote/reports/{gw}/consSequencesApi8\
  ?usages=Ch%2CDhw&hasSlp=False&umSys=si
Content-Type: application/json; charset=utf-8

{"useCache": false}

Despite being a GET, the official client (and this plugin) send a small JSON body. Query flags request central-heating and DHW usages, no SLP, SI units.

Response: a JSON array of series objects:

[
  { "k": 7, "p": 1, "v": [ /* numbers */ ] },
  { "k": 7, "p": 2, "v": [ /* … */ ] },
  { "k": 10, "p": 4, "v": [ /* … */ ] }
]
k

Consumption kind (see Metering Kind and Period Codes).

p

Period / bucket scheme.

v

Array of samples for that kind and period.

Aggregation performed by the plugin:

p = 1

Twenty-four 2-hour slots (~48h). Emits {prefix}_Last2h = last sample and {prefix}_Last48h = sum of all samples.

p = 2

Seven daily buckets. Emits {prefix}_Last7d = sum.

p = 4

Long-term buckets. Emits {prefix}_LongTerm = sum.

Unknown k values are ignored. Metering failures are logged; a prior cache may still be served.