]> git.basschouten.com Git - openhab-addons.git/blob
74151b3aecbc7851f6a3e318960e0d0b4423e9db
[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.solax.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link SolaxBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Konstantin Polihronov - Initial contribution
25  */
26 @NonNullByDefault
27 public class SolaxBindingConstants {
28
29     private static final String BINDING_ID = "solax";
30     private static final String THING_LOCAL_CONNECT_INVERTER_ID = "local-connect-inverter";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_LOCAL_CONNECT_INVERTER = new ThingTypeUID(BINDING_ID,
34             THING_LOCAL_CONNECT_INVERTER_ID);
35
36     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_LOCAL_CONNECT_INVERTER);
37
38     // List of properties
39     public static final String PROPERTY_INVERTER_TYPE = "inverterType";
40
41     // List of all Channel ids
42     public static final String INVERTER_OUTPUT_POWER = "inverter-output-power";
43     public static final String INVERTER_OUTPUT_CURRENT = "inverter-current";
44     public static final String INVERTER_OUTPUT_VOLTAGE = "inverter-voltage";
45     public static final String INVERTER_OUTPUT_FREQUENCY = "inverter-frequency";
46
47     public static final String INVERTER_PV1_POWER = "pv1-power";
48     public static final String INVERTER_PV1_VOLTAGE = "pv1-voltage";
49     public static final String INVERTER_PV1_CURRENT = "pv1-current";
50
51     public static final String INVERTER_PV2_POWER = "pv2-power";
52     public static final String INVERTER_PV2_VOLTAGE = "pv2-voltage";
53     public static final String INVERTER_PV2_CURRENT = "pv2-current";
54
55     public static final String INVERTER_PV_TOTAL_POWER = "pv-total-power";
56     public static final String INVERTER_PV_TOTAL_CURRENT = "pv-total-current";
57
58     public static final String BATTERY_POWER = "battery-power";
59     public static final String BATTERY_VOLTAGE = "battery-voltage";
60     public static final String BATTERY_CURRENT = "battery-current";
61     public static final String BATTERY_TEMPERATURE = "battery-temperature";
62     public static final String BATTERY_STATE_OF_CHARGE = "battery-level";
63
64     public static final String FEED_IN_POWER = "feed-in-power";
65
66     public static final String TIMESTAMP = "last-update-time";
67     public static final String RAW_DATA = "raw-data";
68
69     // I18N Keys
70     protected static final String I18N_KEY_OFFLINE_COMMUNICATION_ERROR_JSON_CANNOT_BE_RETRIEVED = "@text/offline.communication-error.json-cannot-be-retrieved";
71 }