]> git.basschouten.com Git - openhab-addons.git/blob
d71677c921bcf722f5832b1d51d27d0176323a5a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.fronius.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link FroniusBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Thomas Rokohl - Initial contribution
23  * @author Peter Schraffl - Added device status and error status channels
24  */
25 @NonNullByDefault
26 public class FroniusBindingConstants {
27
28     private static final String BINDING_ID = "fronius";
29
30     // List of all Thing Type UIDs
31     public static final ThingTypeUID THING_TYPE_INVERTER = new ThingTypeUID(BINDING_ID, "powerinverter");
32     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
33
34     // List of all Channel ids
35     public static final String InverterDataChannelDayEnergy = "inverterdatachanneldayenergy";
36     public static final String InverterDataChannelPac = "inverterdatachannelpac";
37     public static final String InverterDataChannelTotal = "inverterdatachanneltotal";
38     public static final String InverterDataChannelYear = "inverterdatachannelyear";
39     public static final String InverterDataChannelFac = "inverterdatachannelfac";
40     public static final String InverterDataChannelIac = "inverterdatachanneliac";
41     public static final String InverterDataChannelIdc = "inverterdatachannelidc";
42     public static final String InverterDataChannelUac = "inverterdatachanneluac";
43     public static final String InverterDataChannelUdc = "inverterdatachanneludc";
44     public static final String InverterDataChannelDeviceStatusErrorCode = "inverterdatadevicestatuserrorcode";
45     public static final String InverterDataChannelDeviceStatusStatusCode = "inverterdatadevicestatusstatuscode";
46     public static final String PowerFlowpGrid = "powerflowchannelpgrid";
47     public static final String PowerFlowpLoad = "powerflowchannelpload";
48     public static final String PowerFlowpAkku = "powerflowchannelpakku";
49
50     // List of all Urls
51     public static final String INVERTER_REALTIME_DATA_URL = "http://%IP%/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=%DEVICEID%&DataCollection=CommonInverterData";
52     public static final String POWERFLOW_REALTIME_DATA = "http://%IP%/solar_api/v1/GetPowerFlowRealtimeData.fcgi";
53 }