Skip to content

Commit

Permalink
Add filter for Aal Elnet (openhab#15621)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
  • Loading branch information
jlaur authored and querdenker2k committed Oct 29, 2023
1 parent 420be28 commit d54d4a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@NonNullByDefault
public class DatahubTariffFilterFactory {

private static final String GLN_AAL_ELNET = "5790001095451";
private static final String GLN_CERIUS = "5790000705184";
private static final String GLN_DINEL = "5790000610099";
private static final String GLN_ELEKTRUS = "5790000836239";
Expand Down Expand Up @@ -71,6 +72,9 @@ public class DatahubTariffFilterFactory {

public static DatahubTariffFilter getNetTariffByGLN(String globalLocationNumber) {
switch (globalLocationNumber) {
case GLN_AAL_ELNET:
return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("AAL-NT-05")), Set.of(NOTE_NET_TARIFF_C_HOUR),
DateQueryParameter.of(DateQueryParameterType.START_OF_DAY));
case GLN_CERIUS:
return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("30TR_C_ET")), Set.of(NOTE_NET_TARIFF_C_HOUR));
case GLN_DINEL:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<description>Global Location Number of the grid company.</description>
<limitToOptions>false</limitToOptions>
<options>
<option value="5790001095451">Aal Elnet</option>
<option value="5790000705184">Cerius</option>
<option value="5790000610099">Dinel</option>
<option value="5790002502699">El-net Kongerslev</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ thing-type.config.energidataservice.service.energinetGLN.label = Energinet GLN
thing-type.config.energidataservice.service.energinetGLN.description = Global Location Number of Energinet.
thing-type.config.energidataservice.service.gridCompanyGLN.label = Grid Company GLN
thing-type.config.energidataservice.service.gridCompanyGLN.description = Global Location Number of the grid company.
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790001095451 = Aal Elnet
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000705184 = Cerius
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000610099 = Dinel
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790002502699 = El-net Kongerslev
Expand Down

0 comments on commit d54d4a0

Please sign in to comment.