Skip to content
Updated Sep 14, 2026 by Pablo Coufal · Owner: analysisactiveenumconfluence-migration Edit on GitHub

Enum - PrimarySource ​

Key: enum.primarySource

Identifies the energy medium or fuel type flowing through a gauge. Used as the secondary dimension in calorific value and emission factor lookups alongside GaugeMedium (previously alongside a HeatingPower medium enum, which was retired). Carried over from EM2 where these values were integer constants on the HeatingPower entity. Stored as an integer in the database.

The integer values correspond to the EM2 database constants (GaugeType::SOURCE_*). In EM3, primarySource is stored as the integer value directly (smallint), matching EM2 for migration compatibility. The integer is not an internal ID — it is the canonical application-layer value.

Translation note: the source Confluence page gives most descriptions only as Czech fuel/source names. The English translations below are supplied during migration and should be double-checked against the source page.

Values ​

Integer valueConstant nameDescription
1generalGeneral / unspecified energy source.
2biomassBiomass (general) — cs: Biomasa (obecná).
3biogasBiogas — cs: Bioplyn.
4landfillBiogasLandfill biogas — cs: Bioplyn skládkový.
5solarSolar — cs: Solár.
6otherRenewablesOther renewable energy sources — cs: Jiné OZE.
7otherNonRenewablesOther non-renewable energy sources — cs: Jiné neOZE.
8biomassPelletsBiomass — pellets — cs: Biomasa — pelety.
9biomassStrawBiomass — straw — cs: Biomasa — sláma.
10biomassWoodChipsBiomass — wood chips — cs: Biomasa — štěpka.
11blackCoalBlack (hard) coal — cs: Černé uhlí.
12brownCoalBrown coal (lignite) — cs: Hnědé uhlí.
13cokeCoke — cs: Koks.
14lfoLight fuel oil (LFO) — cs: LTO (lehký topný olej).
15hfoHeavy fuel oil (HFO) — cs: TTO (těžký topný olej).
16dieselMotor diesel fuel (stationary/heating use) — cs: Motorová nafta.
17naturalGasNatural gas — cs: Zemní plyn.
18otherOther (unspecified) — cs: Jiné (nespecifikováno).
19biomassBriquettesBiomass — briquettes — cs: Biomasa — brikety.
20biomassWoodBiomass — wood — cs: Biomasa — dřevo.
21electricityElectricity — cs: Elektřina.
22gasolinePetrol / gasoline — cs: Benzín.
23oilDiesel (vehicle fuel) — cs: Nafta (pohonné hmoty).
24petroleumGasLPG — cs: LPG.
25cngLngCNG / LNG — cs: CNG / LNG.
26bioOilBiodiesel — cs: Bionafta.
27coldWaterCold water — cs: Studená voda.
28hotWaterHot water — cs: Teplá voda.

References ​

  • heatingPower.primarySource (and other calorific/emission-factor entities' .primarySource)
  • calorificValue.primarySource, defaultCalorificValue.primarySource