]> git.basschouten.com Git - openhab-addons.git/blob
053ab6379b26060c6be4a88a572b3cdf738e5318
[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.juicenet.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link JuiceNetBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Jeff James - Initial contribution
23  */
24 @NonNullByDefault
25 public class JuiceNetBindingConstants {
26     private static final String BINDING_ID = "juicenet";
27
28     // List of Bridge Type
29     public static final String BRIDGE = "account";
30
31     // List of all Device Types
32     public static final String DEVICE = "device";
33
34     // List of all Bridge Thing Type UIDs
35     public static final ThingTypeUID BRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID, BRIDGE);
36
37     // List of all Thing Type UIDs
38     public static final ThingTypeUID DEVICE_THING_TYPE = new ThingTypeUID(BINDING_ID, DEVICE);
39
40     // Device config parameter
41     public static final String PARAMETER_UNIT_ID = "unitID";
42
43     // Device properties
44     public static final String PROPERTY_NAME = "name";
45
46     // List of all Channel ids
47     public static final String CHANNEL_NAME = "name";
48     public static final String CHANNEL_CHARGING_STATE = "chargingState";
49     public static final String CHANNEL_STATE = "state";
50     public static final String CHANNEL_MESSAGE = "message";
51     public static final String CHANNEL_OVERRIDE = "override";
52     public static final String CHANNEL_CHARGING_TIME_LEFT = "chargingTimeLeft";
53     public static final String CHANNEL_PLUG_UNPLUG_TIME = "plugUnplugTime";
54     public static final String CHANNEL_TARGET_TIME = "targetTime";
55     public static final String CHANNEL_UNIT_TIME = "unitTime";
56     public static final String CHANNEL_TEMPERATURE = "temperature";
57     public static final String CHANNEL_CURRENT_LIMIT = "currentLimit";
58     public static final String CHANNEL_CURRENT = "current";
59     public static final String CHANNEL_VOLTAGE = "voltage";
60     public static final String CHANNEL_ENERGY = "energy";
61     public static final String CHANNEL_SAVINGS = "savings";
62     public static final String CHANNEL_POWER = "power";
63     public static final String CHANNEL_CHARGING_TIME = "chargingTime";
64     public static final String CHANNEL_ENERGY_AT_PLUGIN = "energyAtPlugin";
65     public static final String CHANNEL_ENERGY_TO_ADD = "energyToAdd";
66     public static final String CHANNEL_LIFETIME_ENERGY = "lifetimeEnergy";
67     public static final String CHANNEL_LIFETIME_SAVINGS = "lifetimeSavings";
68
69     public static final String CHANNEL_GAS_COST = "gasCost";
70     public static final String CHANNEL_FUEL_CONSUMPTION = "fuelConsumption";
71     public static final String CHANNEL_ECOST = "ecost";
72     public static final String CHANNEL_ENERGY_PER_MILE = "energyPerMile";
73
74     public static final String CHANNEL_CAR_DESCRIPTION = "carDescription";
75     public static final String CHANNEL_CAR_BATTERY_SIZE = "carBatterySize";
76     public static final String CHANNEL_CAR_BATTERY_RANGE = "carBatteryRange";
77     public static final String CHANNEL_CAR_CHARGING_RATE = "carChargingRate";
78 }