@@ -358,6 +358,9 @@ public static BaseCluster getCluster(long clusterId) {
358
358
if (clusterId == ContentAppObserver.ID) {
359
359
return new ContentAppObserver();
360
360
}
361
+ if (clusterId == ElectricalMeasurement.ID) {
362
+ return new ElectricalMeasurement();
363
+ }
361
364
if (clusterId == UnitTesting.ID) {
362
365
return new UnitTesting();
363
366
}
@@ -15876,6 +15879,253 @@ public long getCommandID(String name) throws IllegalArgumentException {
15876
15879
return Command.valueOf(name).getID();
15877
15880
}
15878
15881
}
15882
+ public static class ElectricalMeasurement implements BaseCluster {
15883
+ public static final long ID = 2820L;
15884
+ public long getID() {
15885
+ return ID;
15886
+ }
15887
+
15888
+ public enum Attribute {
15889
+ MeasurementType(0L),
15890
+ DcVoltage(256L),
15891
+ DcVoltageMin(257L),
15892
+ DcVoltageMax(258L),
15893
+ DcCurrent(259L),
15894
+ DcCurrentMin(260L),
15895
+ DcCurrentMax(261L),
15896
+ DcPower(262L),
15897
+ DcPowerMin(263L),
15898
+ DcPowerMax(264L),
15899
+ DcVoltageMultiplier(512L),
15900
+ DcVoltageDivisor(513L),
15901
+ DcCurrentMultiplier(514L),
15902
+ DcCurrentDivisor(515L),
15903
+ DcPowerMultiplier(516L),
15904
+ DcPowerDivisor(517L),
15905
+ AcFrequency(768L),
15906
+ AcFrequencyMin(769L),
15907
+ AcFrequencyMax(770L),
15908
+ NeutralCurrent(771L),
15909
+ TotalActivePower(772L),
15910
+ TotalReactivePower(773L),
15911
+ TotalApparentPower(774L),
15912
+ Measured1stHarmonicCurrent(775L),
15913
+ Measured3rdHarmonicCurrent(776L),
15914
+ Measured5thHarmonicCurrent(777L),
15915
+ Measured7thHarmonicCurrent(778L),
15916
+ Measured9thHarmonicCurrent(779L),
15917
+ Measured11thHarmonicCurrent(780L),
15918
+ MeasuredPhase1stHarmonicCurrent(781L),
15919
+ MeasuredPhase3rdHarmonicCurrent(782L),
15920
+ MeasuredPhase5thHarmonicCurrent(783L),
15921
+ MeasuredPhase7thHarmonicCurrent(784L),
15922
+ MeasuredPhase9thHarmonicCurrent(785L),
15923
+ MeasuredPhase11thHarmonicCurrent(786L),
15924
+ AcFrequencyMultiplier(1024L),
15925
+ AcFrequencyDivisor(1025L),
15926
+ PowerMultiplier(1026L),
15927
+ PowerDivisor(1027L),
15928
+ HarmonicCurrentMultiplier(1028L),
15929
+ PhaseHarmonicCurrentMultiplier(1029L),
15930
+ InstantaneousVoltage(1280L),
15931
+ InstantaneousLineCurrent(1281L),
15932
+ InstantaneousActiveCurrent(1282L),
15933
+ InstantaneousReactiveCurrent(1283L),
15934
+ InstantaneousPower(1284L),
15935
+ RmsVoltage(1285L),
15936
+ RmsVoltageMin(1286L),
15937
+ RmsVoltageMax(1287L),
15938
+ RmsCurrent(1288L),
15939
+ RmsCurrentMin(1289L),
15940
+ RmsCurrentMax(1290L),
15941
+ ActivePower(1291L),
15942
+ ActivePowerMin(1292L),
15943
+ ActivePowerMax(1293L),
15944
+ ReactivePower(1294L),
15945
+ ApparentPower(1295L),
15946
+ PowerFactor(1296L),
15947
+ AverageRmsVoltageMeasurementPeriod(1297L),
15948
+ AverageRmsUnderVoltageCounter(1299L),
15949
+ RmsExtremeOverVoltagePeriod(1300L),
15950
+ RmsExtremeUnderVoltagePeriod(1301L),
15951
+ RmsVoltageSagPeriod(1302L),
15952
+ RmsVoltageSwellPeriod(1303L),
15953
+ AcVoltageMultiplier(1536L),
15954
+ AcVoltageDivisor(1537L),
15955
+ AcCurrentMultiplier(1538L),
15956
+ AcCurrentDivisor(1539L),
15957
+ AcPowerMultiplier(1540L),
15958
+ AcPowerDivisor(1541L),
15959
+ OverloadAlarmsMask(1792L),
15960
+ VoltageOverload(1793L),
15961
+ CurrentOverload(1794L),
15962
+ AcOverloadAlarmsMask(2048L),
15963
+ AcVoltageOverload(2049L),
15964
+ AcCurrentOverload(2050L),
15965
+ AcActivePowerOverload(2051L),
15966
+ AcReactivePowerOverload(2052L),
15967
+ AverageRmsOverVoltage(2053L),
15968
+ AverageRmsUnderVoltage(2054L),
15969
+ RmsExtremeOverVoltage(2055L),
15970
+ RmsExtremeUnderVoltage(2056L),
15971
+ RmsVoltageSag(2057L),
15972
+ RmsVoltageSwell(2058L),
15973
+ LineCurrentPhaseB(2305L),
15974
+ ActiveCurrentPhaseB(2306L),
15975
+ ReactiveCurrentPhaseB(2307L),
15976
+ RmsVoltagePhaseB(2309L),
15977
+ RmsVoltageMinPhaseB(2310L),
15978
+ RmsVoltageMaxPhaseB(2311L),
15979
+ RmsCurrentPhaseB(2312L),
15980
+ RmsCurrentMinPhaseB(2313L),
15981
+ RmsCurrentMaxPhaseB(2314L),
15982
+ ActivePowerPhaseB(2315L),
15983
+ ActivePowerMinPhaseB(2316L),
15984
+ ActivePowerMaxPhaseB(2317L),
15985
+ ReactivePowerPhaseB(2318L),
15986
+ ApparentPowerPhaseB(2319L),
15987
+ PowerFactorPhaseB(2320L),
15988
+ AverageRmsVoltageMeasurementPeriodPhaseB(2321L),
15989
+ AverageRmsOverVoltageCounterPhaseB(2322L),
15990
+ AverageRmsUnderVoltageCounterPhaseB(2323L),
15991
+ RmsExtremeOverVoltagePeriodPhaseB(2324L),
15992
+ RmsExtremeUnderVoltagePeriodPhaseB(2325L),
15993
+ RmsVoltageSagPeriodPhaseB(2326L),
15994
+ RmsVoltageSwellPeriodPhaseB(2327L),
15995
+ LineCurrentPhaseC(2561L),
15996
+ ActiveCurrentPhaseC(2562L),
15997
+ ReactiveCurrentPhaseC(2563L),
15998
+ RmsVoltagePhaseC(2565L),
15999
+ RmsVoltageMinPhaseC(2566L),
16000
+ RmsVoltageMaxPhaseC(2567L),
16001
+ RmsCurrentPhaseC(2568L),
16002
+ RmsCurrentMinPhaseC(2569L),
16003
+ RmsCurrentMaxPhaseC(2570L),
16004
+ ActivePowerPhaseC(2571L),
16005
+ ActivePowerMinPhaseC(2572L),
16006
+ ActivePowerMaxPhaseC(2573L),
16007
+ ReactivePowerPhaseC(2574L),
16008
+ ApparentPowerPhaseC(2575L),
16009
+ PowerFactorPhaseC(2576L),
16010
+ AverageRmsVoltageMeasurementPeriodPhaseC(2577L),
16011
+ AverageRmsOverVoltageCounterPhaseC(2578L),
16012
+ AverageRmsUnderVoltageCounterPhaseC(2579L),
16013
+ RmsExtremeOverVoltagePeriodPhaseC(2580L),
16014
+ RmsExtremeUnderVoltagePeriodPhaseC(2581L),
16015
+ RmsVoltageSagPeriodPhaseC(2582L),
16016
+ RmsVoltageSwellPeriodPhaseC(2583L),
16017
+ GeneratedCommandList(65528L),
16018
+ AcceptedCommandList(65529L),
16019
+ EventList(65530L),
16020
+ AttributeList(65531L),
16021
+ FeatureMap(65532L),
16022
+ ClusterRevision(65533L),;
16023
+ private final long id;
16024
+ Attribute(long id) {
16025
+ this.id = id;
16026
+ }
16027
+
16028
+ public long getID() {
16029
+ return id;
16030
+ }
16031
+
16032
+ public static Attribute value(long id) throws NoSuchFieldError {
16033
+ for (Attribute attribute : Attribute.values()) {
16034
+ if (attribute.getID() == id) {
16035
+ return attribute;
16036
+ }
16037
+ }
16038
+ throw new NoSuchFieldError();
16039
+ }
16040
+ }
16041
+
16042
+ public enum Event {;
16043
+ private final long id;
16044
+ Event(long id) {
16045
+ this.id = id;
16046
+ }
16047
+
16048
+ public long getID() {
16049
+ return id;
16050
+ }
16051
+
16052
+ public static Event value(long id) throws NoSuchFieldError {
16053
+ for (Event event : Event.values()) {
16054
+ if (event.getID() == id) {
16055
+ return event;
16056
+ }
16057
+ }
16058
+ throw new NoSuchFieldError();
16059
+ }
16060
+ }
16061
+
16062
+ public enum Command {
16063
+ GetProfileInfoCommand(0L),
16064
+ GetMeasurementProfileCommand(1L),;
16065
+ private final long id;
16066
+ Command(long id) {
16067
+ this.id = id;
16068
+ }
16069
+
16070
+ public long getID() {
16071
+ return id;
16072
+ }
16073
+
16074
+ public static Command value(long id) throws NoSuchFieldError {
16075
+ for (Command command : Command.values()) {
16076
+ if (command.getID() == id) {
16077
+ return command;
16078
+ }
16079
+ }
16080
+ throw new NoSuchFieldError();
16081
+ }
16082
+ }public enum GetMeasurementProfileCommandCommandField {AttributeId(0),StartTime(1),NumberOfIntervals(2),;
16083
+ private final int id;
16084
+ GetMeasurementProfileCommandCommandField(int id) {
16085
+ this.id = id;
16086
+ }
16087
+
16088
+ public int getID() {
16089
+ return id;
16090
+ }
16091
+ public static GetMeasurementProfileCommandCommandField value(int id) throws NoSuchFieldError {
16092
+ for (GetMeasurementProfileCommandCommandField field : GetMeasurementProfileCommandCommandField.values()) {
16093
+ if (field.getID() == id) {
16094
+ return field;
16095
+ }
16096
+ }
16097
+ throw new NoSuchFieldError();
16098
+ }
16099
+ }@Override
16100
+ public String getAttributeName(long id) throws NoSuchFieldError {
16101
+ return Attribute.value(id).toString();
16102
+ }
16103
+
16104
+ @Override
16105
+ public String getEventName(long id) throws NoSuchFieldError {
16106
+ return Event.value(id).toString();
16107
+ }
16108
+
16109
+ @Override
16110
+ public String getCommandName(long id) throws NoSuchFieldError {
16111
+ return Command.value(id).toString();
16112
+ }
16113
+
16114
+ @Override
16115
+ public long getAttributeID(String name) throws IllegalArgumentException {
16116
+ return Attribute.valueOf(name).getID();
16117
+ }
16118
+
16119
+ @Override
16120
+ public long getEventID(String name) throws IllegalArgumentException {
16121
+ return Event.valueOf(name).getID();
16122
+ }
16123
+
16124
+ @Override
16125
+ public long getCommandID(String name) throws IllegalArgumentException {
16126
+ return Command.valueOf(name).getID();
16127
+ }
16128
+ }
15879
16129
public static class UnitTesting implements BaseCluster {
15880
16130
public static final long ID = 4294048773L;
15881
16131
public long getID() {
0 commit comments