2 * Copyright (c) 2010-2020 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.senechome.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link SenecHomeBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Steven Schwarznau - Initial contribution
25 public class SenecHomeBindingConstants {
26 private static final String BINDING_ID = "senechome";
27 private static final String THING_BASE_ID = "senechome";
28 public static final ThingTypeUID THING_TYPE_SENEC_HOME_BATTERY = new ThingTypeUID(BINDING_ID, THING_BASE_ID);
30 public static final String CHANNEL_SENEC_POWER_LIMITATION = "powerLimitation";
31 public static final String CHANNEL_SENEC_POWER_LIMITATION_STATE = "powerLimitationState";
32 public static final String CHANNEL_SENEC_BATTERY_STATE = "batteryState";
33 public static final String CHANNEL_SENEC_BATTERY_STATE_VALUE = "batteryStateValue";
34 public static final String CHANNEL_SENEC_POWER_CONSUMPTION = "houseConsumption";
35 public static final String CHANNEL_SENEC_ENERGY_PRODUCTION = "energyProduction";
36 public static final String CHANNEL_SENEC_BATTERY_POWER = "batteryPower";
37 public static final String CHANNEL_SENEC_BATTERY_FUEL_CHARGE = "batteryFuelCharge";
38 public static final String CHANNEL_SENEC_GRID_POWER = "gridPower";
39 public static final String CHANNEL_SENEC_GRID_POWER_SUPPLY = "gridPowerSupply";
40 public static final String CHANNEL_SENEC_GRID_POWER_DRAW = "gridPowerDraw";
41 public static final String CHANNEL_SENEC_GRID_POWER_PH1 = "gridPowerPhase1";
42 public static final String CHANNEL_SENEC_GRID_POWER_PH2 = "gridPowerPhase2";
43 public static final String CHANNEL_SENEC_GRID_POWER_PH3 = "gridPowerPhase3";
44 public static final String CHANNEL_SENEC_GRID_CURRENT_PH1 = "gridCurrentPhase1";
45 public static final String CHANNEL_SENEC_GRID_CURRENT_PH2 = "gridCurrentPhase2";
46 public static final String CHANNEL_SENEC_GRID_CURRENT_PH3 = "gridCurrentPhase3";
47 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH1 = "gridVoltagePhase1";
48 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH2 = "gridVoltagePhase2";
49 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH3 = "gridVoltagePhase3";
50 public static final String CHANNEL_SENEC_GRID_FREQUENCY = "gridFrequency";
51 public static final String CHANNEL_SENEC_LIVE_BAT_CHARGE = "liveBatCharge";
52 public static final String CHANNEL_SENEC_LIVE_BAT_DISCHARGE = "liveBatDischarge";
53 public static final String CHANNEL_SENEC_LIVE_GRID_IMPORT = "liveGridImport";
54 public static final String CHANNEL_SENEC_LIVE_GRID_EXPORT = "liveGridExport";
55 public static final String CHANNEL_SENEC_BATTERY_VOLTAGE = "batteryVoltage";