All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.joblo2213.sma.speedwire.protocol.measuringChannels.EnergyMeterChannels Maven / Gradle / Ivy

Go to download

SMA-Speedwire is an api for communicating with SMA products over Ethernet using the speedwire interface. It allows listening for exchanged data between your devices and logging meter readings.

There is a newer version: 1.0.2
Show newest version
package io.github.joblo2213.sma.speedwire.protocol.measuringChannels;


import tech.units.indriya.AbstractUnit;
import tech.units.indriya.unit.Units;

import javax.measure.MetricPrefix;
import javax.measure.Unit;
import javax.measure.quantity.Dimensionless;
import javax.measure.quantity.ElectricCurrent;
import javax.measure.quantity.ElectricPotential;
import javax.measure.quantity.Energy;
import javax.measure.quantity.Frequency;
import javax.measure.quantity.Power;
import javax.measure.quantity.Time;
import java.util.List;

/**
 * This interface provides a collection of all measuring channels supported by SMA Energy Meters and
 * SMA Sunny Home Manager (2.0), as well as the units of the measurements.
 */
public interface EnergyMeterChannels {

    /**
     * The Energy Meter provides power values in [0.1W]
     */
    Unit UNIT_POWER = Units.WATT.multiply(0.1);

    /**
     * The Energy Meter provides energy values in [Ws]
     */
    Unit UNIT_ENERGY = Units.WATT.multiply(Units.SECOND).asType(Energy.class);

    /**
     * The Energy Meter provides electric current values in [mA]
     */
    Unit UNIT_CURRENT = MetricPrefix.MILLI(Units.AMPERE);

    /**
     * The Energy Meter provides voltage values in [mV]
     */
    Unit UNIT_VOLTAGE = MetricPrefix.MILLI(Units.VOLT);

    /**
     * The Energy Meter provides power factor values [cos(φ)] without unit, multiplied by 0.001
     */
    Unit UNIT_FACTOR = AbstractUnit.ONE.multiply(0.001);

    /**
     * The Energy Meter provides time measurements in [ms]
     */
    Unit




© 2015 - 2024 Weber Informatics LLC | Privacy Policy