2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.iammeter.internal;
15 import javax.measure.Unit;
17 import org.openhab.core.library.unit.Units;
20 * The {@link IammeterWEM3080Channel} Enum defines common constants, which are
21 * used across the whole binding.
23 * @author Yang Bo - Initial contribution
25 public enum IammeterWEM3080Channel {
27 CHANNEL_VOLTAGE("voltage", Units.VOLT),
28 CHANNEL_CURRENT("current", Units.AMPERE),
29 CHANNEL_POWER("power", Units.WATT),
30 CHANNEL_IMPORTENERGY("importenergy", Units.KILOWATT_HOUR),
31 CHANNEL_EXPORTGRID("exportgrid", Units.KILOWATT_HOUR);
33 private final String id;
34 private final Unit<?> unit;
36 IammeterWEM3080Channel(String id, Unit<?> unit) {
41 public String getId() {
45 public Unit<?> getUnit() {