|
| 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.modbus.kermi.internal; |
| 14 | + |
| 15 | +import org.eclipse.jdt.annotation.NonNullByDefault; |
| 16 | +import org.openhab.binding.modbus.ModbusBindingConstants; |
| 17 | +import org.openhab.core.thing.ThingTypeUID; |
| 18 | + |
| 19 | +/** |
| 20 | + * The {@link KermiBindingConstants} class defines common constants, which are |
| 21 | + * used across the whole binding. |
| 22 | + * |
| 23 | + * @author Kai Neuhaus - Initial contribution |
| 24 | + */ |
| 25 | +@NonNullByDefault |
| 26 | +public class KermiBindingConstants { |
| 27 | + |
| 28 | + public static final String STATE_AND_ALARM_READ_ERRORS = "Status And Alarm Modbus Read Errors"; |
| 29 | + public static final String STATE_READ_ERROR = "Information Modbus Read Error"; |
| 30 | + public static final String DATA_READ_ERROR = "Data Modbus Read Error"; |
| 31 | + static final String PV_READ_ERROR = "PV Modbus Read Error"; |
| 32 | + public static final String ALARM_GROUP = "xcenter-alarm"; |
| 33 | + public static final String STATE_GROUP = "xcenter-state"; |
| 34 | + public static final String ENERGY_SOURCE_GROUP = "xcenter-energy-source"; |
| 35 | + public static final String CHARGING_CIRCUIT_GROUP = "xcenter-charging-circuit"; |
| 36 | + public static final String POWER_GROUP = "xcenter-power"; |
| 37 | + public static final String WORKHOURS_GROUP = "xcenter-workhours"; |
| 38 | + public static final String PV_GROUP = "xcenter-pv-modulation"; |
| 39 | + private static final String BINDING_ID = ModbusBindingConstants.BINDING_ID; |
| 40 | + |
| 41 | + // Supported Thing Types |
| 42 | + public static final ThingTypeUID THING_TYPE_KERMI_XCENTER = new ThingTypeUID(BINDING_ID, "kermi-xcenter"); |
| 43 | + |
| 44 | + // Channels for State |
| 45 | + public static final String GLOBAL_STATE_ID_CHANNEL = "global-state-id"; |
| 46 | + |
| 47 | + // Alarm State |
| 48 | + public static final String ALARM_STATE_CHANNEL = "alarm-state"; |
| 49 | + |
| 50 | + // Energy Source |
| 51 | + public static final String FLOW_TEMPERATURE_CHANNEL = "flow-temperature"; |
| 52 | + public static final String RETURN_TEMPERATURE_CHANNEL = "return-temperature"; |
| 53 | + public static final String FLOW_SPEED_CHANNEL = "flow-speed"; |
| 54 | + |
| 55 | + // Charging Circuit |
| 56 | + public static final String EXIT_TEMPERATURE_CHANNEL = "exit-temperature"; |
| 57 | + public static final String INCOMING_TEMPERATURE_CHANNEL = "incoming-temperature"; |
| 58 | + public static final String TEMPERATURE_SENSOR_OUTSIDE_CHANNEL = "temperature-sensor-outside"; |
| 59 | + |
| 60 | + // Power |
| 61 | + public static final String COP_CHANNEL = "cop"; |
| 62 | + public static final String COP_HEATING_CHANNEL = "cop-heating"; |
| 63 | + public static final String COP_DRINKINGWATER_CHANNEL = "cop-drinkingwater"; |
| 64 | + public static final String COP_COOLING_CHANNEL = "cop-cooling"; |
| 65 | + |
| 66 | + public static final String POWER_CHANNEL = "power"; |
| 67 | + public static final String POWER_HEATING_CHANNEL = "power-heating"; |
| 68 | + public static final String POWER_DRINKINGWATER_CHANNEL = "power-drinkingwater"; |
| 69 | + public static final String POWER_COOLING_CHANNEL = "power-cooling"; |
| 70 | + |
| 71 | + public static final String ELECTRIC_POWER_CHANNEL = "electric-power"; |
| 72 | + public static final String ELECTRIC_POWER_HEATING_CHANNEL = "electric-power-heating"; |
| 73 | + public static final String ELECTRIC_POWER_DRINKINGWATER_CHANNEL = "electric-power-drinkingwater"; |
| 74 | + public static final String ELECTRIC_POWER_COOLING_CHANNEL = "electric-power-cooling"; |
| 75 | + |
| 76 | + // Work hours |
| 77 | + public static final String WORKHOURS_FAN_CHANNEL = "workhours-fan"; |
| 78 | + public static final String WORKHOURS_STORAGE_LOADING_PUMP_CHANNEL = "workhours-storage-loading-pump"; |
| 79 | + public static final String WORKHOURS_COMPRESSOR_CHANNEL = "workhours-compressor"; |
| 80 | + |
| 81 | + // PV |
| 82 | + public static final String PV_STATE_CHANNEL = "pv-state"; |
| 83 | + public static final String PV_POWER_CHANNEL = "pv-power"; |
| 84 | + public static final String PV_TARGET_TEMPERATURE_HEATING_CHANNEL = "pv-target-temperature-heating"; |
| 85 | + public static final String PV_TARGET_TEMPERATURE_DRINKINGWATER_CHANNEL = "pv-target-temperature-drinkingwater"; |
| 86 | +} |
0 commit comments