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.juicenet.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link JuiceNetBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Jeff James - Initial contribution
25 public class JuiceNetBindingConstants {
26 private static final String BINDING_ID = "juicenet";
28 // List of Bridge Type
29 public static final String BRIDGE = "account";
31 // List of all Device Types
32 public static final String DEVICE = "device";
34 // List of all Bridge Thing Type UIDs
35 public static final ThingTypeUID BRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID, BRIDGE);
37 // List of all Thing Type UIDs
38 public static final ThingTypeUID DEVICE_THING_TYPE = new ThingTypeUID(BINDING_ID, DEVICE);
40 // Device config parameter
41 public static final String PARAMETER_UNIT_ID = "unitID";
44 public static final String PROPERTY_NAME = "name";
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";
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";
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";