mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-10-10 16:36:36 +00:00
3.2 KiB
3.2 KiB
Measurement Configuration
:::{table} measurement :widths: 10 20 10 5 5 30 :align: left
| Name | Environment Variable | Type | Read-Only | Default | Description |
|---|---|---|---|---|---|
| channels | EOS_MEASUREMENT__CHANNELS |
dict[str, akkudoktoreos.measurement.measurement.MeasurementChannelSettings] |
rw |
required |
Typed raw measurement channels keyed by measurement key. |
| energy_context_seconds | EOS_MEASUREMENT__ENERGY_CONTEXT_SECONDS |
int |
rw |
86400 |
None |
| grid_export_emr_keys | EOS_MEASUREMENT__GRID_EXPORT_EMR_KEYS |
Optional[list[str]] |
rw |
None |
The keys of the measurements that are energy meter readings of energy export to grid [kWh]. |
| grid_import_emr_keys | EOS_MEASUREMENT__GRID_IMPORT_EMR_KEYS |
Optional[list[str]] |
rw |
None |
The keys of the measurements that are energy meter readings of energy import from grid [kWh]. |
| historic_hours | EOS_MEASUREMENT__HISTORIC_HOURS |
Optional[int] |
rw |
17520 |
Number of hours into the past for measurement data |
| household | EOS_MEASUREMENT__HOUSEHOLD |
Optional[akkudoktoreos.measurement.household.HouseholdSettings] |
rw |
None |
Optional household energy balance definition. |
| keys | list[str] |
ro |
N/A |
The keys of the measurements that can be stored. | |
| load_emr_keys | EOS_MEASUREMENT__LOAD_EMR_KEYS |
Optional[list[str]] |
rw |
None |
The keys of the measurements that are energy meter readings of a load [kWh]. |
| pv_production_emr_keys | EOS_MEASUREMENT__PV_PRODUCTION_EMR_KEYS |
Optional[list[str]] |
rw |
None |
The keys of the measurements that are PV production energy meter readings [kWh]. |
| ::: |
Example Input
{
"measurement": {
"historic_hours": 17520,
"channels": {},
"household": null,
"energy_context_seconds": 86400,
"load_emr_keys": [
"load0_emr"
],
"grid_export_emr_keys": [
"grid_export_emr"
],
"grid_import_emr_keys": [
"grid_import_emr"
],
"pv_production_emr_keys": [
"pv1_emr"
]
}
}
Example Output
{
"measurement": {
"historic_hours": 17520,
"channels": {},
"household": null,
"energy_context_seconds": 86400,
"load_emr_keys": [
"load0_emr"
],
"grid_export_emr_keys": [
"grid_export_emr"
],
"grid_import_emr_keys": [
"grid_import_emr"
],
"pv_production_emr_keys": [
"pv1_emr"
],
"keys": [
"grid_export_emr",
"grid_import_emr",
"load0_emr",
"pv1_emr"
]
}
}