]> git.basschouten.com Git - openhab-addons.git/blob
4d04301d4f8922d60a9dec3331580e2f2c6f44e7
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.solarlog.internal;
14
15 /**
16  * The {@link SolarLogChannel} Enum defines common constants, which are
17  * used across the whole binding.
18  *
19  * @author Johann Richard - Initial contribution
20  */
21 public enum SolarLogChannel {
22
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");
40
41     private final String id;
42     private final String index;
43
44     SolarLogChannel(String id, String index) {
45         this.id = id;
46         this.index = index;
47     }
48
49     public String getId() {
50         return id;
51     }
52
53     public String getIndex() {
54         return index;
55     }
56 }