]> git.basschouten.com Git - openhab-addons.git/blob
c3e451564fdbad1fd9d2ecd81c1b6be435905f2b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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 MAX_CURRENT_TEMPORARY = "maxCurrentTemp";
35     public static final String ACCESS_CONFIGURATION = "accessConfiguration";
36     public static final String PWM_SIGNAL = "pwmSignal";
37     public static final String ERROR = "error";
38     public static final String VOLTAGE_L1 = "voltageL1";
39     public static final String VOLTAGE_L2 = "voltageL2";
40     public static final String VOLTAGE_L3 = "voltageL3";
41     public static final String CURRENT_L1 = "currentL1";
42     public static final String CURRENT_L2 = "currentL2";
43     public static final String CURRENT_L3 = "currentL3";
44     public static final String POWER_L1 = "powerL1";
45     public static final String POWER_L2 = "powerL2";
46     public static final String POWER_L3 = "powerL3";
47     public static final String POWER_ALL = "powerAll";
48     public static final String TRANSACTION = "transaction";
49     public static final String ALLOW_CHARGING = "allowCharging";
50     public static final String CABLE_ENCODING = "cableCurrent";
51     public static final String PHASES = "phases";
52     public static final String TEMPERATURE_TYPE2_PORT = "temperatureType2Port";
53     public static final String TEMPERATURE_CIRCUIT_BOARD = "temperature";
54     public static final String SESSION_CHARGE_CONSUMPTION = "sessionChargedEnergy";
55     public static final String SESSION_CHARGE_CONSUMPTION_LIMIT = "sessionChargeEnergyLimit";
56     public static final String TOTAL_CONSUMPTION = "totalChargedEnergy";
57     public static final String FIRMWARE = "firmware";
58
59     public static final String API_URL = "http://%IP%/status";
60     public static final String MQTT_URL = "http://%IP%/mqtt?payload=%KEY%=%VALUE%";
61
62     // API v2 only
63     public static final String FORCE_STATE = "forceState";
64
65     public static final String API_URL_V2 = "http://%IP%/api/status";
66     public static final String SET_URL_V2 = "http://%IP%/api/set?%KEY%=%VALUE%";
67 }