2 * Copyright (c) 2010-2024 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 protected 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);
31 public static final String CHANNEL_SENEC_POWER_LIMITATION = "powerLimitation";
32 public static final String CHANNEL_SENEC_POWER_LIMITATION_STATE = "powerLimitationState";
33 public static final String CHANNEL_SENEC_CURRENT_MPP1 = "currentMpp1";
34 public static final String CHANNEL_SENEC_CURRENT_MPP2 = "currentMpp2";
35 public static final String CHANNEL_SENEC_CURRENT_MPP3 = "currentMpp3";
36 public static final String CHANNEL_SENEC_POWER_MPP1 = "powerMpp1";
37 public static final String CHANNEL_SENEC_POWER_MPP2 = "powerMpp2";
38 public static final String CHANNEL_SENEC_POWER_MPP3 = "powerMpp3";
39 public static final String CHANNEL_SENEC_VOLTAGE_MPP1 = "voltageMpp1";
40 public static final String CHANNEL_SENEC_VOLTAGE_MPP2 = "voltageMpp2";
41 public static final String CHANNEL_SENEC_VOLTAGE_MPP3 = "voltageMpp3";
44 public static final String CHANNEL_SENEC_SYSTEM_STATE = "systemState";
45 public static final String CHANNEL_SENEC_SYSTEM_STATE_VALUE = "systemStateValue";
46 public static final String CHANNEL_SENEC_POWER_CONSUMPTION = "houseConsumption";
47 public static final String CHANNEL_SENEC_ENERGY_PRODUCTION = "energyProduction";
48 public static final String CHANNEL_SENEC_BATTERY_POWER = "batteryPower";
49 public static final String CHANNEL_SENEC_BATTERY_FUEL_CHARGE = "batteryFuelCharge";
50 public static final String CHANNEL_SENEC_BATTERY_VOLTAGE = "batteryVoltage";
51 public static final String CHANNEL_SENEC_BATTERY_CURRENT = "batteryCurrent";
54 public static final String CHANNEL_SENEC_GRID_POWER = "gridPower";
55 public static final String CHANNEL_SENEC_GRID_POWER_SUPPLY = "gridPowerSupply";
56 public static final String CHANNEL_SENEC_GRID_POWER_DRAW = "gridPowerDraw";
57 public static final String CHANNEL_SENEC_GRID_POWER_PH1 = "gridPowerPhase1";
58 public static final String CHANNEL_SENEC_GRID_POWER_PH2 = "gridPowerPhase2";
59 public static final String CHANNEL_SENEC_GRID_POWER_PH3 = "gridPowerPhase3";
60 public static final String CHANNEL_SENEC_GRID_CURRENT_PH1 = "gridCurrentPhase1";
61 public static final String CHANNEL_SENEC_GRID_CURRENT_PH2 = "gridCurrentPhase2";
62 public static final String CHANNEL_SENEC_GRID_CURRENT_PH3 = "gridCurrentPhase3";
63 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH1 = "gridVoltagePhase1";
64 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH2 = "gridVoltagePhase2";
65 public static final String CHANNEL_SENEC_GRID_VOLTAGE_PH3 = "gridVoltagePhase3";
66 public static final String CHANNEL_SENEC_GRID_FREQUENCY = "gridFrequency";
69 public static final String CHANNEL_SENEC_CHARGED_ENERGY_PACK1 = "chargedEnergyPack1";
70 public static final String CHANNEL_SENEC_CHARGED_ENERGY_PACK2 = "chargedEnergyPack2";
71 public static final String CHANNEL_SENEC_CHARGED_ENERGY_PACK3 = "chargedEnergyPack3";
72 public static final String CHANNEL_SENEC_CHARGED_ENERGY_PACK4 = "chargedEnergyPack4";
73 public static final String CHANNEL_SENEC_DISCHARGED_ENERGY_PACK1 = "dischargedEnergyPack1";
74 public static final String CHANNEL_SENEC_DISCHARGED_ENERGY_PACK2 = "dischargedEnergyPack2";
75 public static final String CHANNEL_SENEC_DISCHARGED_ENERGY_PACK3 = "dischargedEnergyPack3";
76 public static final String CHANNEL_SENEC_DISCHARGED_ENERGY_PACK4 = "dischargedEnergyPack4";
77 public static final String CHANNEL_SENEC_CYCLES_PACK1 = "cyclesPack1";
78 public static final String CHANNEL_SENEC_CYCLES_PACK2 = "cyclesPack2";
79 public static final String CHANNEL_SENEC_CYCLES_PACK3 = "cyclesPack3";
80 public static final String CHANNEL_SENEC_CYCLES_PACK4 = "cyclesPack4";
81 public static final String CHANNEL_SENEC_CURRENT_PACK1 = "currentPack1";
82 public static final String CHANNEL_SENEC_CURRENT_PACK2 = "currentPack2";
83 public static final String CHANNEL_SENEC_CURRENT_PACK3 = "currentPack3";
84 public static final String CHANNEL_SENEC_CURRENT_PACK4 = "currentPack4";
85 public static final String CHANNEL_SENEC_VOLTAGE_PACK1 = "voltagePack1";
86 public static final String CHANNEL_SENEC_VOLTAGE_PACK2 = "voltagePack2";
87 public static final String CHANNEL_SENEC_VOLTAGE_PACK3 = "voltagePack3";
88 public static final String CHANNEL_SENEC_VOLTAGE_PACK4 = "voltagePack4";
89 public static final String CHANNEL_SENEC_MAX_CELL_VOLTAGE_PACK1 = "maxCellVoltagePack1";
90 public static final String CHANNEL_SENEC_MAX_CELL_VOLTAGE_PACK2 = "maxCellVoltagePack2";
91 public static final String CHANNEL_SENEC_MAX_CELL_VOLTAGE_PACK3 = "maxCellVoltagePack3";
92 public static final String CHANNEL_SENEC_MAX_CELL_VOLTAGE_PACK4 = "maxCellVoltagePack4";
93 public static final String CHANNEL_SENEC_MIN_CELL_VOLTAGE_PACK1 = "minCellVoltagePack1";
94 public static final String CHANNEL_SENEC_MIN_CELL_VOLTAGE_PACK2 = "minCellVoltagePack2";
95 public static final String CHANNEL_SENEC_MIN_CELL_VOLTAGE_PACK3 = "minCellVoltagePack3";
96 public static final String CHANNEL_SENEC_MIN_CELL_VOLTAGE_PACK4 = "minCellVoltagePack4";
98 // SenecHomeTemperature
99 public static final String CHANNEL_SENEC_BATTERY_TEMPERATURE = "batteryTemperature";
100 public static final String CHANNEL_SENEC_CASE_TEMPERATURE = "caseTemperature";
101 public static final String CHANNEL_SENEC_MCU_TEMPERATURE = "mcuTemperature";
104 public static final String CHANNEL_SENEC_WALLBOX1_STATE = "wallbox1State";
105 public static final String CHANNEL_SENEC_WALLBOX1_STATE_VALUE = "wallbox1StateValue";
106 public static final String CHANNEL_SENEC_WALLBOX1_CHARGING_CURRENT_PH1 = "wallbox1ChargingCurrentPhase1";
107 public static final String CHANNEL_SENEC_WALLBOX1_CHARGING_CURRENT_PH2 = "wallbox1ChargingCurrentPhase2";
108 public static final String CHANNEL_SENEC_WALLBOX1_CHARGING_CURRENT_PH3 = "wallbox1ChargingCurrentPhase3";
109 public static final String CHANNEL_SENEC_WALLBOX1_CHARGING_POWER = "wallbox1ChargingPower";