# consumption.json

> Gemessener Verbrauch: Zähler und Mengen je Zeitraum.

Quelle: https://bauzertifikate.de/docs/bzf/schemas/consumption · BZF 0.3.0 (https://github.com/bauzertifikate/bzf/tree/fe92cf4342f2e9140f14f66262c2f5a30a99be45) · Weitere Seiten: https://bauzertifikate.de/llms.txt

- **Status:** Entwurf
- **Klasse:** building – Gebäudedaten, Weitergabe nur mit Einwilligung des Eigentümers
- **Ablage:** `Daten/consumption/<id>.json`
- **$id:** `https://bauzertifikate.de/schema/bzf/1/consumption.json`
- **Schema laden:** [/schema/bzf/1/consumption.json](https://bauzertifikate.de/schema/bzf/1/consumption.json) (JSON Schema 2020-12)

## Beschreibung

Measured consumption of a building, `consumption/<id>.json`: its meters and the amounts read or billed per period, each with where it came from (a bill among the received files). It is what a consumption-based Energieausweis takes, what the EPBD's Annex V may show as metered consumption and its databases hold (Art. 22), and the logbook's operation and use. Consumption of a home tells about the people in it, so it is shared only with the owner's consent like every building document. This schema describes documents of schema version 1.x; a document of another major version is only required to say which.

## Das Dokument

Ein Dokument der Hauptversion 1 (`"schema": "1.x"`) hat die folgenden Felder, die des Typs [`consumption`](#consumption). Eine andere Hauptversion muss nur sagen, welche sie ist.

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `building` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The building it is of. |
| `meters` | Liste von [`meter`](#meter) | – |
| `periods` | Liste von [`period`](#period) | Amounts read or billed, oldest first. |
| `vacancy` | Liste von `object` | Periods the building or part of it stood empty, as a share of its area, which a consumption-based method corrects for. |
| `vacancy[].from` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `vacancy[].to` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `vacancy[].share` **Pflicht** | `number` | The share of the area that stood empty, as a fraction. (≥ 0, ≤ 1) |

## Typen

Die Typen dieses Schemas, auf die seine Felder verweisen.

### `consumption`

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `building` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The building it is of. |
| `meters` | Liste von [`meter`](#meter) | A meter, or a supply billed without one (oil by delivery, wood by the stere). |
| `periods` | Liste von [`period`](#period) | Amounts read or billed, oldest first. |
| `vacancy` | Liste von `object` | Periods the building or part of it stood empty, as a share of its area, which a consumption-based method corrects for. |
| `vacancy[].from` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `vacancy[].to` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `vacancy[].share` **Pflicht** | `number` | The share of the area that stood empty, as a fraction. (≥ 0, ≤ 1) |

### `meter`

A meter, or a supply billed without one (oil by delivery, wood by the stere).

| Feld | Typ | Beschreibung |
|---|---|---|
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `label` | `string` | Its number or name: "Gaszähler 7 GMT 123456". |
| `carrier` | [`carrier`](https://bauzertifikate.de/docs/bzf/schemas/common.md#carrier) | An energy carrier a system takes in or a meter measures. |
| `services` | Liste von [`service`](https://bauzertifikate.de/docs/bzf/schemas/common.md#service) | What its carrier is used for, where known. |
| `system` | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The meter in the building's systems, where it is one. |
| `serves` | Liste von [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The parts or spaces it measures; all of the building where absent. |

### `period`

An amount over a period: as read from the meter, as billed, or estimated.

| Feld | Typ | Beschreibung |
|---|---|---|
| `meter` | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `carrier` | [`carrier`](https://bauzertifikate.de/docs/bzf/schemas/common.md#carrier) | Where it has no meter, its carrier. |
| `from` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `to` **Pflicht** | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | A calendar date, ISO 8601. |
| `amount` **Pflicht** | `number` | (≥ 0) |
| `unit` **Pflicht** | eins von oder `string` | The unit the amount is in, as read or billed: kWh, MWh, m³, l, kg, t, rm (stacked cubic metres), srm (loose cubic metres). |
| `kind` | `string`, offen | Bekannte Werte: `reading`, `bill`, `estimate`; ein neuerer Wert ist gültig. Standard: `"bill"` |
| `source` | [`source`](https://bauzertifikate.de/docs/bzf/schemas/common.md#source) | Where it came from: the bill among the received files. |

## Lesen und prüfen

Die Beschreibungen stammen unverändert aus dem Schema und sind wie die Spezifikation englisch. Jedes Objekt lässt weitere Felder zu (`additionalProperties: true`): Programme bewahren Felder und Werte, die sie nicht kennen. Wie ein Dokument geprüft wird, steht im [Schnellstart](https://bauzertifikate.de/docs/bzf/schnellstart.md#pruefen).
