Interface ElectricityMeter
- All Superinterfaces:
OpenemsComponent
- All Known Subinterfaces:
BoschBpts5HybridMeter
,FeneconDessGridMeter
,FeneconDessPvMeter
,FeneconMiniGridMeter
,FeneconMiniPvMeter
,FeneconProPvMeter
,GoodWeEmergencyPowerMeter
,GoodWeGridMeter
,IoShellyPlug
,KostalPikoGridMeter
,ManagedSymmetricPvInverter
,MeterAbbB23
,MeterArtemesAM2
,MeterBControlEM300
,MeterBgeTechDrt428M2
,MeterCarloGavazziEm300
,MeterDiscovergy
,MeterGridcon
,MeterJanitzaUmg511
,MeterJanitzaUmg604
,MeterJanitzaUmg96rme
,MeterKdk2puct
,MeterMicrocareSdm630
,MeterPlexlogDatalogger
,MeterPqplusUmd96
,MeterPqplusUmd97
,MeterSchneiderActi9Smartlink
,MeterSiemens
,MeterSmaShm20
,MeterSocomecSinglephase
,MeterSocomecThreephase
,MeterVirtualAdd
,MeterWeidmueller525
,MeterZiehlEfr4001Ip
,PhoenixContactMeter
,PvInverterCluster
,PvInverterFronius
,PvInverterKacoBlueplanet
,PvInverterKostal
,PvInverterSmaSunnyTripower
,PvInverterSolarlog
,SimulatorGridMeterActing
,SimulatorGridMeterReacting
,SimulatorNrcMeterActing
,SimulatorProductionMeterActing
,SimulatorPvInverter
,SinglePhaseMeter
,SocomecMeter
,SolarEdgeGridMeter
,SolarEdgePvInverter
,VirtualMeter
,VirtualSubtractMeter
- All Known Implementing Classes:
AbstractDummyElectricityMeter
,AbstractSocomecMeter
,AbstractSunSpecMeter
,AbstractSunSpecPvInverter
,BoschBpts5HybridMeterImpl
,DummyElectricityMeter
,DummyManagedSymmetricPvInverter
,DummySinglePhaseElectricityMeter
,FeneconDessGridMeterImpl
,FeneconDessPvMeterImpl
,FeneconMiniGridMeterImpl
,FeneconMiniPvMeterImpl
,FeneconProPvMeterImpl
,GoodWeEmergencyPowerMeterImpl
,GoodWeGridMeterImpl
,IoShellyPlugImpl
,KacoBlueplanetHybrid10GridMeterImpl
,KacoBlueplanetHybrid10PvInverterImpl
,KostalPikoGridMeterImpl
,MeterAbbB23Impl
,MeterArtemesAM2Impl
,MeterBControlEM300Impl
,MeterBgeTechDrt428M2Impl
,MeterCarloGavazziEm300Impl
,MeterDiscovergyImpl
,MeterGridconImpl
,MeterJanitzaUmg511Impl
,MeterJanitzaUmg604Impl
,MeterJanitzaUmg96rmeImpl
,MeterKdk2puctImpl
,MeterMicrocareSdm630Impl
,MeterPlexlogDataloggerImpl
,MeterPqplusUmd96Impl
,MeterPqplusUmd97Impl
,MeterSchneiderActi9SmartlinkImpl
,MeterSiemensImpl
,MeterSmaShm20Impl
,MeterSocomecSinglephaseImpl
,MeterSocomecThreephaseImpl
,MeterVirtualAddImpl
,MeterWeidmueller525Impl
,MeterZiehlEfr4001IpImpl
,PhoenixContactMeterImpl
,PvInverterClusterImpl
,PvInverterFroniusImpl
,PvInverterKacoBlueplanetImpl
,PvInverterKostalImpl
,PvInverterSmaSunnyTripowerImpl
,PvInverterSolarlogImpl
,SimulatorGridMeterActingImpl
,SimulatorGridMeterReactingImpl
,SimulatorNrcMeterActingImpl
,SimulatorProductionMeterActingImpl
,SimulatorPvInverterImpl
,SolarEdgeGridMeterImpl
,SolarEdgePvInverterImpl
,VirtualSubtractMeterImpl
Meaning of positive and negative values for Power and Current depends on the
MeterType
(via getMeterType()
):
MeterType.GRID
- positive: buy-from-grid
- negative: feed-to-grid
MeterType.PRODUCTION
- positive: production
- negative: (undefined)
MeterType.PRODUCTION_AND_CONSUMPTION
- positive: production
- negative: consumption
MeterType.CONSUMPTION_METERED
- positive: consumption
- negative: (undefined)
MeterType.CONSUMPTION_NOT_METERED
- positive: consumption
- negative: (undefined)
If values for all phases are equal (i.e. the measured device is 'symmetric'), consider using the helper methods:
calculateSumActivePowerFromPhases(ElectricityMeter)
calculateSumReactivePowerFromPhases(ElectricityMeter)
calculatePhasesFromActivePower(ElectricityMeter)
calculatePhasesFromReactivePower(ElectricityMeter)
calculateSumActiveProductionEnergyFromPhases(ElectricityMeter)
calculateAverageVoltageFromPhases(ElectricityMeter)
calculateSumCurrentFromPhases(ElectricityMeter)
If only ever L1, L2 or L3 can be set, implement the SinglePhaseMeter
Nature additionally and consider using its helper methods.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setActiveConsumptionEnergy
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
Channel.default void
_setActiveConsumptionEnergy
(Long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
Channel.default void
_setActiveConsumptionEnergyL1
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
Channel.default void
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
Channel.default void
_setActiveConsumptionEnergyL2
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
Channel.default void
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
Channel.default void
_setActiveConsumptionEnergyL3
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
Channel.default void
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
Channel.default void
_setActivePower
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER
Channel.default void
_setActivePower
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER
Channel.default void
_setActivePowerL1
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L1
Channel.default void
_setActivePowerL1
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L1
Channel.default void
_setActivePowerL2
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L2
Channel.default void
_setActivePowerL2
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L2
Channel.default void
_setActivePowerL3
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L3
Channel.default void
_setActivePowerL3
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L3
Channel.default void
_setActiveProductionEnergy
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
Channel.default void
_setActiveProductionEnergy
(Long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
Channel.default void
_setActiveProductionEnergyL1
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
Channel.default void
_setActiveProductionEnergyL1
(Long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
Channel.default void
_setActiveProductionEnergyL2
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
Channel.default void
_setActiveProductionEnergyL2
(Long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
Channel.default void
_setActiveProductionEnergyL3
(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
Channel.default void
_setActiveProductionEnergyL3
(Long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
Channel.default void
_setCurrent
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT
Channel.default void
_setCurrent
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT
Channel.default void
_setCurrentL1
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L1
Channel.default void
_setCurrentL1
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L1
Channel.default void
_setCurrentL2
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L2
Channel.default void
_setCurrentL2
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L2
Channel.default void
_setCurrentL3
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L3
Channel.default void
_setCurrentL3
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L3
Channel.default void
_setFrequency
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.FREQUENCY
Channel.default void
_setFrequency
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.FREQUENCY
Channel.default void
_setMaxActivePower
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MAX_ACTIVE_POWER
Channel.default void
_setMaxActivePower
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MAX_ACTIVE_POWER
Channel.default void
_setMinActivePower
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MIN_ACTIVE_POWER
Channel.default void
_setMinActivePower
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MIN_ACTIVE_POWER
Channel.default void
_setReactivePower
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER
Channel.default void
_setReactivePower
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER
Channel.default void
_setReactivePowerL1
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L1
Channel.default void
_setReactivePowerL1
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L1
Channel.default void
_setReactivePowerL2
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L2
Channel.default void
_setReactivePowerL2
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L2
Channel.default void
_setReactivePowerL3
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L3
Channel.default void
_setReactivePowerL3
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L3
Channel.default void
_setVoltage
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE
Channel.default void
_setVoltage
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE
Channel.default void
_setVoltageL1
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L1
Channel.default void
_setVoltageL1
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L1
Channel.default void
_setVoltageL2
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L2
Channel.default void
_setVoltageL2
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L2
Channel.default void
_setVoltageL3
(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L3
Channel.default void
_setVoltageL3
(Integer value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L3
Channel.static void
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.VOLTAGE
-Channel value as the average ofElectricityMeter.ChannelId.VOLTAGE_L1
,ElectricityMeter.ChannelId.VOLTAGE_L2
andElectricityMeter.ChannelId.VOLTAGE_L3
.static void
Initializes Channel listeners for a SymmetricElectricityMeter
.static void
Initializes Channel listeners for a SymmetricElectricityMeter
.static void
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.ACTIVE_POWER
-Channel value as the sum ofElectricityMeter.ChannelId.ACTIVE_POWER_L1
,ElectricityMeter.ChannelId.ACTIVE_POWER_L2
andElectricityMeter.ChannelId.ACTIVE_POWER_L3
.static void
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
-Channel value as the sum ofElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
,ElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
andElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
.static void
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.CURRENT
-Channel value as the sum ofElectricityMeter.ChannelId.CURRENT_L1
,ElectricityMeter.ChannelId.CURRENT_L2
andElectricityMeter.ChannelId.CURRENT_L3
.static void
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.REACTIVE_POWER
-Channel value as the sum ofElectricityMeter.ChannelId.REACTIVE_POWER_L1
,ElectricityMeter.ChannelId.REACTIVE_POWER_L2
andElectricityMeter.ChannelId.REACTIVE_POWER_L3
.Gets the Active Consumption Energy in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
.Gets the Active Consumption Energy on L1 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
.Gets the Active Consumption Energy on L2 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
.Gets the Active Consumption Energy on L3 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
.Gets the Active Power in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER
.Gets the Active Power on L1 in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L1
.Gets the Active Power on L2 in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L2
.Gets the Active Power on L3 in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L3
.Gets the Active Production Energy in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
.Gets the Active Production Energy on L1 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
.Gets the Active Production Energy on L2 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
.Gets the Active Production Energy on L3 in [Wh].default LongReadChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
.Gets the Current in [mA].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.CURRENT
.Gets the Current on L1 in [mA].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L1
.Gets the Current on L2 in [mA].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L2
.Gets the Current on L3 in [mA].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L3
.Gets the Frequency in [mHz].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.FREQUENCY
.Gets the Maximum Ever Active Power in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.MAX_ACTIVE_POWER
.Gets the type of this Meter.Gets the Minimum Ever Active Power in [W].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.MIN_ACTIVE_POWER
.static ModbusSlaveNatureTable
getModbusSlaveNatureTable
(AccessMode accessMode) Used for Modbus/TCP Api Controller.static ModbusSlaveNatureTable
Used for Modbus/TCP Api Controller.Gets the Reactive Power in [var].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER
.Gets the Reactive Power on L1 in [var].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L1
.Gets the Reactive Power on L2 in [var].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L2
.Gets the Reactive Power on L3 in [var].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L3
.Gets the Voltage in [mV].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE
.Gets the Voltage on L1 in [mV].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L1
.Gets the Voltage on L2 in [mV].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L2
.Gets the Voltage on L3 in [mV].default IntegerReadChannel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L3
.default boolean
Is this device actively managed by OpenEMS?.Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Method Details
-
getMeterType
MeterType getMeterType()Gets the type of this Meter.- Returns:
- the
MeterType
-
isManaged
default boolean isManaged()Is this device actively managed by OpenEMS?.If this is a normal electricity meter, return false.
If this is an actively managed device like a heat-pump or electric vehicle charging station, return true. The value will then get ignored for 'UnmanagedActivePower' prediction.
- Returns:
- true for managed, false for unmanaged devices.
-
getModbusSlaveNatureTable
Used for Modbus/TCP Api Controller. Provides a Modbus table for the Channels of this Component.- Parameters:
accessMode
- filters the Modbus-Records that should be shown- Returns:
- the
ModbusSlaveNatureTable
-
getModbusSlaveNatureTableWithoutIndividualPhases
static ModbusSlaveNatureTable getModbusSlaveNatureTableWithoutIndividualPhases(AccessMode accessMode) Used for Modbus/TCP Api Controller. Provides a Modbus table for the Channels of this Component - without individual phases.This method provides a way to stay compatible with previous SymmetricMeter implementations that did not support AsymmetricMeter. Do not use for new implementations!
- Parameters:
accessMode
- filters the Modbus-Records that should be shown- Returns:
- the
ModbusSlaveNatureTable
-
getMinActivePowerChannel
Gets the Channel forElectricityMeter.ChannelId.MIN_ACTIVE_POWER
.- Returns:
- the Channel
-
getMinActivePower
Gets the Minimum Ever Active Power in [W]. SeeElectricityMeter.ChannelId.MIN_ACTIVE_POWER
.- Returns:
- the Channel
Value
-
_setMinActivePower
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MIN_ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
_setMinActivePower
default void _setMinActivePower(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MIN_ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
getMaxActivePowerChannel
Gets the Channel forElectricityMeter.ChannelId.MAX_ACTIVE_POWER
.- Returns:
- the Channel
-
getMaxActivePower
Gets the Maximum Ever Active Power in [W]. SeeElectricityMeter.ChannelId.MAX_ACTIVE_POWER
.- Returns:
- the Channel
Value
-
_setMaxActivePower
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MAX_ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
_setMaxActivePower
default void _setMaxActivePower(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.MAX_ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
getActivePowerChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER
.- Returns:
- the Channel
-
getActivePower
Gets the Active Power in [W]. Negative values for Consumption (power that is 'leaving the system', e.g. feed-to-grid); positive for Production (power that is 'entering the system'). SeeElectricityMeter.ChannelId.ACTIVE_POWER
.- Returns:
- the Channel
Value
-
_setActivePower
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
_setActivePower
default void _setActivePower(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
getActivePowerL1Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L1
.- Returns:
- the Channel
-
getActivePowerL1
Gets the Active Power on L1 in [W]. Negative values for Consumption (power that is 'leaving the system', e.g. feed-to-grid); positive for Production (power that is 'entering the system'). SeeElectricityMeter.ChannelId.ACTIVE_POWER_L1
.- Returns:
- the Channel
Value
-
_setActivePowerL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L1
Channel.- Parameters:
value
- the next value
-
_setActivePowerL1
default void _setActivePowerL1(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L1
Channel.- Parameters:
value
- the next value
-
getActivePowerL2Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L2
.- Returns:
- the Channel
-
getActivePowerL2
Gets the Active Power on L2 in [W]. Negative values for Consumption (power that is 'leaving the system', e.g. feed-to-grid); positive for Production (power that is 'entering the system'). SeeElectricityMeter.ChannelId.ACTIVE_POWER_L2
.- Returns:
- the Channel
Value
-
_setActivePowerL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L2
Channel.- Parameters:
value
- the next value
-
_setActivePowerL2
default void _setActivePowerL2(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L2
Channel.- Parameters:
value
- the next value
-
getActivePowerL3Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_POWER_L3
.- Returns:
- the Channel
-
getActivePowerL3
Gets the Active Power on L3 in [W]. Negative values for Consumption (power that is 'leaving the system', e.g. feed-to-grid); positive for Production (power that is 'entering the system'). SeeElectricityMeter.ChannelId.ACTIVE_POWER_L3
.- Returns:
- the Channel
Value
-
_setActivePowerL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L3
Channel.- Parameters:
value
- the next value
-
_setActivePowerL3
default void _setActivePowerL3(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_POWER_L3
Channel.- Parameters:
value
- the next value
-
getReactivePowerChannel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER
.- Returns:
- the Channel
-
getReactivePower
Gets the Reactive Power in [var]. SeeElectricityMeter.ChannelId.REACTIVE_POWER
.- Returns:
- the Channel
Value
-
_setReactivePower
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
_setReactivePower
default void _setReactivePower(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER
Channel.- Parameters:
value
- the next value
-
getReactivePowerL1Channel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L1
.- Returns:
- the Channel
-
getReactivePowerL1
Gets the Reactive Power on L1 in [var]. SeeElectricityMeter.ChannelId.REACTIVE_POWER_L1
.- Returns:
- the Channel
Value
-
_setReactivePowerL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L1
Channel.- Parameters:
value
- the next value
-
_setReactivePowerL1
default void _setReactivePowerL1(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L1
Channel.- Parameters:
value
- the next value
-
getReactivePowerL2Channel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L2
.- Returns:
- the Channel
-
getReactivePowerL2
Gets the Reactive Power on L2 in [var]. SeeElectricityMeter.ChannelId.REACTIVE_POWER_L2
.- Returns:
- the Channel
Value
-
_setReactivePowerL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L2
Channel.- Parameters:
value
- the next value
-
_setReactivePowerL2
default void _setReactivePowerL2(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L2
Channel.- Parameters:
value
- the next value
-
getReactivePowerL3Channel
Gets the Channel forElectricityMeter.ChannelId.REACTIVE_POWER_L3
.- Returns:
- the Channel
-
getReactivePowerL3
Gets the Reactive Power on L3 in [var]. SeeElectricityMeter.ChannelId.REACTIVE_POWER_L3
.- Returns:
- the Channel
Value
-
_setReactivePowerL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L3
Channel.- Parameters:
value
- the next value
-
_setReactivePowerL3
default void _setReactivePowerL3(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.REACTIVE_POWER_L3
Channel.- Parameters:
value
- the next value
-
getVoltageChannel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE
.- Returns:
- the Channel
-
getVoltage
Gets the Voltage in [mV]. SeeElectricityMeter.ChannelId.VOLTAGE
.- Returns:
- the Channel
Value
-
_setVoltage
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE
Channel.- Parameters:
value
- the next value
-
_setVoltage
default void _setVoltage(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE
Channel.- Parameters:
value
- the next value
-
getVoltageL1Channel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L1
.- Returns:
- the Channel
-
getVoltageL1
Gets the Voltage on L1 in [mV]. SeeElectricityMeter.ChannelId.VOLTAGE_L1
.- Returns:
- the Channel
Value
-
_setVoltageL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L1
Channel.- Parameters:
value
- the next value
-
_setVoltageL1
default void _setVoltageL1(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L1
Channel.- Parameters:
value
- the next value
-
getVoltageL2Channel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L2
.- Returns:
- the Channel
-
getVoltageL2
Gets the Voltage on L2 in [mV]. SeeElectricityMeter.ChannelId.VOLTAGE_L2
.- Returns:
- the Channel
Value
-
_setVoltageL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L2
Channel.- Parameters:
value
- the next value
-
_setVoltageL2
default void _setVoltageL2(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L2
Channel.- Parameters:
value
- the next value
-
getVoltageL3Channel
Gets the Channel forElectricityMeter.ChannelId.VOLTAGE_L3
.- Returns:
- the Channel
-
getVoltageL3
Gets the Voltage on L3 in [mV]. SeeElectricityMeter.ChannelId.VOLTAGE_L3
.- Returns:
- the Channel
Value
-
_setVoltageL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L3
Channel.- Parameters:
value
- the next value
-
_setVoltageL3
default void _setVoltageL3(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.VOLTAGE_L3
Channel.- Parameters:
value
- the next value
-
getCurrentChannel
Gets the Channel forElectricityMeter.ChannelId.CURRENT
.- Returns:
- the Channel
-
getCurrent
Gets the Current in [mA]. SeeElectricityMeter.ChannelId.CURRENT
.- Returns:
- the Channel
Value
-
_setCurrent
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT
Channel.- Parameters:
value
- the next value
-
_setCurrent
default void _setCurrent(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT
Channel.- Parameters:
value
- the next value
-
getCurrentL1Channel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L1
.- Returns:
- the Channel
-
getCurrentL1
Gets the Current on L1 in [mA]. SeeElectricityMeter.ChannelId.CURRENT_L1
.- Returns:
- the Channel
Value
-
_setCurrentL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L1
Channel.- Parameters:
value
- the next value
-
_setCurrentL1
default void _setCurrentL1(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L1
Channel.- Parameters:
value
- the next value
-
getCurrentL2Channel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L2
.- Returns:
- the Channel
-
getCurrentL2
Gets the Current on L2 in [mA]. SeeElectricityMeter.ChannelId.CURRENT_L2
.- Returns:
- the Channel
Value
-
_setCurrentL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L2
Channel.- Parameters:
value
- the next value
-
_setCurrentL2
default void _setCurrentL2(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L2
Channel.- Parameters:
value
- the next value
-
getCurrentL3Channel
Gets the Channel forElectricityMeter.ChannelId.CURRENT_L3
.- Returns:
- the Channel
-
getCurrentL3
Gets the Current on L3 in [mA]. SeeElectricityMeter.ChannelId.CURRENT_L3
.- Returns:
- the Channel
Value
-
_setCurrentL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L3
Channel.- Parameters:
value
- the next value
-
_setCurrentL3
default void _setCurrentL3(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.CURRENT_L3
Channel.- Parameters:
value
- the next value
-
getFrequencyChannel
Gets the Channel forElectricityMeter.ChannelId.FREQUENCY
.- Returns:
- the Channel
-
getFrequency
Gets the Frequency in [mHz]. SeeElectricityMeter.ChannelId.FREQUENCY
.- Returns:
- the Channel
Value
-
_setFrequency
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.FREQUENCY
Channel.- Parameters:
value
- the next value
-
_setFrequency
default void _setFrequency(int value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.FREQUENCY
Channel.- Parameters:
value
- the next value
-
getActiveProductionEnergyChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
.- Returns:
- the Channel
-
getActiveProductionEnergy
Gets the Active Production Energy in [Wh]. This relates to positive ACTIVE_POWER. SeeElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
.- Returns:
- the Channel
Value
-
_setActiveProductionEnergy
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
Channel.- Parameters:
value
- the next value
-
_setActiveProductionEnergy
default void _setActiveProductionEnergy(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
Channel.- Parameters:
value
- the next value
-
getActiveProductionEnergyL1Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
.- Returns:
- the Channel
-
getActiveProductionEnergyL1
Gets the Active Production Energy on L1 in [Wh]. This relates to positive ACTIVE_POWER_L1. SeeElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
.- Returns:
- the Channel
Value
-
_setActiveProductionEnergyL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
Channel.- Parameters:
value
- the next value inLong
-
_setActiveProductionEnergyL1
default void _setActiveProductionEnergyL1(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
Channel.- Parameters:
value
- the next value inlong
-
getActiveProductionEnergyL2Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
.- Returns:
- the Channel
-
getActiveProductionEnergyL2
Gets the Active Production Energy on L2 in [Wh]. This relates to positive ACTIVE_POWER_L2. SeeElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
.- Returns:
- the Channel
Value
-
_setActiveProductionEnergyL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
Channel.- Parameters:
value
- the next value inLong
-
_setActiveProductionEnergyL2
default void _setActiveProductionEnergyL2(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
Channel.- Parameters:
value
- the next value inlong
-
getActiveProductionEnergyL3Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
.- Returns:
- the Channel
-
getActiveProductionEnergyL3
Gets the Active Production Energy on L3 in [Wh]. This relates to positive ACTIVE_POWER_L3. SeeElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
.- Returns:
- the Channel
Value
-
_setActiveProductionEnergyL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
Channel.- Parameters:
value
- the next value inLong
-
_setActiveProductionEnergyL3
default void _setActiveProductionEnergyL3(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
Channel.- Parameters:
value
- the next value inlong
-
getActiveConsumptionEnergyChannel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
.- Returns:
- the Channel
-
getActiveConsumptionEnergy
Gets the Active Consumption Energy in [Wh]. This relates to negative ACTIVE_POWER. SeeElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
.- Returns:
- the Channel
Value
-
_setActiveConsumptionEnergy
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
Channel.- Parameters:
value
- the next value
-
_setActiveConsumptionEnergy
default void _setActiveConsumptionEnergy(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY
Channel.- Parameters:
value
- the next value
-
getActiveConsumptionEnergyL1Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
.- Returns:
- the Channel
-
getActiveConsumptionEnergyL1
Gets the Active Consumption Energy on L1 in [Wh]. This relates to negative ACTIVE_POWER_L1. SeeElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
.- Returns:
- the Channel
Value
-
_setActiveConsumptionEnergyL1
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
Channel.- Parameters:
value
- the next value inLong
-
_setActiveConsumptionEnergyL1
default void _setActiveConsumptionEnergyL1(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L1
Channel.- Parameters:
value
- the next value inlong
-
getActiveConsumptionEnergyL2Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
.- Returns:
- the Channel
-
getActiveConsumptionEnergyL2
Gets the Active Consumption Energy on L2 in [Wh]. This relates to negative ACTIVE_POWER_L2. SeeElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
.- Returns:
- the Channel
Value
-
_setActiveConsumptionEnergyL2
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
Channel.- Parameters:
value
- the next value inLong
-
_setActiveConsumptionEnergyL2
default void _setActiveConsumptionEnergyL2(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L2
Channel.- Parameters:
value
- the next value inlong
-
getActiveConsumptionEnergyL3Channel
Gets the Channel forElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
.- Returns:
- the Channel
-
getActiveConsumptionEnergyL3
Gets the Active Consumption Energy on L3 in [Wh]. This relates to negative ACTIVE_POWER_L3. SeeElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
.- Returns:
- the Channel
Value
-
_setActiveConsumptionEnergyL3
Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
Channel.- Parameters:
value
- the next value inLong
-
_setActiveConsumptionEnergyL3
default void _setActiveConsumptionEnergyL3(long value) Internal method to set the 'nextValue' onElectricityMeter.ChannelId.ACTIVE_CONSUMPTION_ENERGY_L3
Channel.- Parameters:
value
- the next value inlong
-
calculateSumActivePowerFromPhases
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.ACTIVE_POWER
-Channel value as the sum ofElectricityMeter.ChannelId.ACTIVE_POWER_L1
,ElectricityMeter.ChannelId.ACTIVE_POWER_L2
andElectricityMeter.ChannelId.ACTIVE_POWER_L3
.- Parameters:
meter
- theElectricityMeter
-
calculateSumReactivePowerFromPhases
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.REACTIVE_POWER
-Channel value as the sum ofElectricityMeter.ChannelId.REACTIVE_POWER_L1
,ElectricityMeter.ChannelId.REACTIVE_POWER_L2
andElectricityMeter.ChannelId.REACTIVE_POWER_L3
.- Parameters:
meter
- theElectricityMeter
-
calculateSumCurrentFromPhases
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.CURRENT
-Channel value as the sum ofElectricityMeter.ChannelId.CURRENT_L1
,ElectricityMeter.ChannelId.CURRENT_L2
andElectricityMeter.ChannelId.CURRENT_L3
.- Parameters:
meter
- theElectricityMeter
-
calculateAverageVoltageFromPhases
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.VOLTAGE
-Channel value as the average ofElectricityMeter.ChannelId.VOLTAGE_L1
,ElectricityMeter.ChannelId.VOLTAGE_L2
andElectricityMeter.ChannelId.VOLTAGE_L3
.- Parameters:
meter
- theElectricityMeter
-
calculateSumActiveProductionEnergyFromPhases
Initializes Channel listeners to calculate theElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY
-Channel value as the sum ofElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L1
,ElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L2
andElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY_L3
.- Parameters:
meter
- theElectricityMeter
-
calculatePhasesFromActivePower
Initializes Channel listeners for a SymmetricElectricityMeter
.Calculate the
ElectricityMeter.ChannelId.ACTIVE_POWER_L1
,ElectricityMeter.ChannelId.ACTIVE_POWER_L2
andElectricityMeter.ChannelId.ACTIVE_POWER_L3
-Channels fromElectricityMeter.ChannelId.ACTIVE_POWER
by dividing by three.- Parameters:
meter
- theElectricityMeter
-
calculatePhasesFromReactivePower
Initializes Channel listeners for a SymmetricElectricityMeter
.Calculate the
ElectricityMeter.ChannelId.REACTIVE_POWER_L1
,ElectricityMeter.ChannelId.REACTIVE_POWER_L2
andElectricityMeter.ChannelId.REACTIVE_POWER_L3
-Channels fromElectricityMeter.ChannelId.REACTIVE_POWER
by dividing by three.- Parameters:
meter
- theElectricityMeter
-