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.solarlog.internal;
16 * The {@link SolarLogChannel} Enum defines common constants, which are
17 * used across the whole binding.
19 * @author Johann Richard - Initial contribution
21 public enum SolarLogChannel {
23 CHANNEL_LASTUPDATETIME("lastupdate", "100"),
24 CHANNEL_PAC("pac", "101"),
25 CHANNEL_PDC("pdc", "102"),
26 CHANNEL_UAC("uac", "103"),
27 CHANNEL_UDC("udc", "104"),
28 CHANNEL_YIELDDAY("yieldday", "105"),
29 CHANNEL_YIELDYESTERDAY("yieldyesterday", "106"),
30 CHANNEL_YIELDMONTH("yieldmonth", "107"),
31 CHANNEL_YIELDYEAR("yieldyear", "108"),
32 CHANNEL_YIELDTOTAL("yieldtotal", "109"),
33 CHANNEL_CONSPAC("conspac", "110"),
34 CHANNEL_CONSYIELDDAY("consyieldday", "111"),
35 CHANNEL_CONSYIELDYESTERDAY("consyieldyesterday", "112"),
36 CHANNEL_CONSYIELDMONTH("consyieldmonth", "113"),
37 CHANNEL_CONSYIELDYEAR("consyieldyear", "114"),
38 CHANNEL_CONSYIELDTOTAL("consyieldtotal", "115"),
39 CHANNEL_TOTALPOWER("totalpower", "116");
41 private final String id;
42 private final String index;
44 SolarLogChannel(String id, String index) {
49 public String getId() {
53 public String getIndex() {