]> git.basschouten.com Git - openhab-addons.git/blob
0aec35365fd9515c622bf641c536ffbf4cc5d6bc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.goecharger.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link GoEChargerBindingConstants} class defines common constants, which
20  * are used across the whole binding.
21  *
22  * @author Samuel Brucksch - Initial contribution
23  */
24 @NonNullByDefault
25 public class GoEChargerBindingConstants {
26
27     private static final String BINDING_ID = "goecharger";
28
29     // List of all Thing Type UIDs
30     public static final ThingTypeUID THING_TYPE_GOE = new ThingTypeUID(BINDING_ID, "goe");
31
32     // List of all Channel ids
33     public static final String MAX_CURRENT = "maxCurrent";
34     public static final String ACCESS_CONFIGURATION = "accessConfiguration";
35     public static final String PWM_SIGNAL = "pwmSignal";
36     public static final String ERROR = "error";
37     public static final String VOLTAGE_L1 = "voltageL1";
38     public static final String VOLTAGE_L2 = "voltageL2";
39     public static final String VOLTAGE_L3 = "voltageL3";
40     public static final String CURRENT_L1 = "currentL1";
41     public static final String CURRENT_L2 = "currentL2";
42     public static final String CURRENT_L3 = "currentL3";
43     public static final String POWER_L1 = "powerL1";
44     public static final String POWER_L2 = "powerL2";
45     public static final String POWER_L3 = "powerL3";
46     public static final String ALLOW_CHARGING = "allowCharging";
47     public static final String CABLE_ENCODING = "cableCurrent";
48     public static final String PHASES = "phases";
49     public static final String TEMPERATURE = "temperature";
50     public static final String SESSION_CHARGE_CONSUMPTION = "sessionChargedEnergy";
51     public static final String SESSION_CHARGE_CONSUMPTION_LIMIT = "sessionChargeEnergyLimit";
52     public static final String TOTAL_CONSUMPTION = "totalChargedEnergy";
53     public static final String FIRMWARE = "firmware";
54
55     public static final String API_URL = "http://%IP%/status";
56     public static final String MQTT_URL = "http://%IP%/mqtt?payload=%KEY%=%VALUE%";
57 }