2 * Copyright (c) 2010-2022 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.fronius.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link FroniusBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Thomas Rokohl - Initial contribution
23 * @author Peter Schraffl - Added device status and error status channels
24 * @author Thomas Kordelle - Added inverter power, battery state of charge and PV solar yield
25 * @author Hannes Spenger - Added ohmpilot & meter power sum
28 public class FroniusBindingConstants {
30 private static final String BINDING_ID = "fronius";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_INVERTER = new ThingTypeUID(BINDING_ID, "powerinverter");
34 public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
35 public static final ThingTypeUID THING_TYPE_METER = new ThingTypeUID(BINDING_ID, "meter");
36 public static final ThingTypeUID THING_TYPE_OHMPILOT = new ThingTypeUID(BINDING_ID, "ohmpilot");
38 // List of all Channel ids
39 public static final String INVERTER_DATA_CHANNEL_DAY_ENERGY = "inverterdatachanneldayenergy";
40 public static final String INVERTER_DATA_CHANNEL_PAC = "inverterdatachannelpac";
41 public static final String INVERTER_DATA_CHANNEL_TOTAL = "inverterdatachanneltotal";
42 public static final String INVERTER_DATA_CHANNEL_YEAR = "inverterdatachannelyear";
43 public static final String INVERTER_DATA_CHANNEL_FAC = "inverterdatachannelfac";
44 public static final String INVERTER_DATA_CHANNEL_IAC = "inverterdatachanneliac";
45 public static final String INVERTER_DATA_CHANNEL_IDC = "inverterdatachannelidc";
46 public static final String INVERTER_DATA_CHANNEL_UAC = "inverterdatachanneluac";
47 public static final String INVERTER_DATA_CHANNEL_UDC = "inverterdatachanneludc";
48 public static final String INVERTER_DATA_CHANNEL_DEVICE_STATUS_ERROR_CODE = "inverterdatadevicestatuserrorcode";
49 public static final String INVERTER_DATA_CHANNEL_DEVICE_STATUS_STATUS_CODE = "inverterdatadevicestatusstatuscode";
50 public static final String POWER_FLOW_P_GRID = "powerflowchannelpgrid";
51 public static final String POWER_FLOW_P_LOAD = "powerflowchannelpload";
52 public static final String POWER_FLOW_P_AKKU = "powerflowchannelpakku";
53 public static final String POWER_FLOW_P_PV = "powerflowchannelppv";
54 public static final String METER_ENABLE = "enable";
55 public static final String METER_LOCATION = "location";
56 public static final String METER_CURRENT_AC_PHASE_1 = "currentacphase1";
57 public static final String METER_CURRENT_AC_PHASE_2 = "currentacphase2";
58 public static final String METER_CURRENT_AC_PHASE_3 = "currentacphase3";
59 public static final String METER_VOLTAGE_AC_PHASE_1 = "voltageacphase1";
60 public static final String METER_VOLTAGE_AC_PHASE_2 = "voltageacphase2";
61 public static final String METER_VOLTAGE_AC_PHASE_3 = "voltageacphase3";
62 public static final String METER_POWER_PHASE_1 = "powerrealphase1";
63 public static final String METER_POWER_PHASE_2 = "powerrealphase2";
64 public static final String METER_POWER_PHASE_3 = "powerrealphase3";
65 public static final String METER_POWER_SUM = "powerrealsum";
66 public static final String METER_POWER_FACTOR_PHASE_1 = "powerfactorphase1";
67 public static final String METER_POWER_FACTOR_PHASE_2 = "powerfactorphase2";
68 public static final String METER_POWER_FACTOR_PHASE_3 = "powerfactorphase3";
69 public static final String METER_ENERGY_REAL_SUM_CONSUMED = "energyrealsumconsumed";
70 public static final String METER_ENERGY_REAL_SUM_PRODUCED = "energyrealsumproduced";
71 public static final String OHMPILOT_POWER_REAL_SUM = "powerrealsum";
72 public static final String OHMPILOT_ENERGY_REAL_SUM_CONSUMED = "energyrealsumconsumed";
73 public static final String OHMPILOT_ENERGY_SENSOR_TEMPERATURE_CHANNEL_1 = "temperaturechannel1";
74 public static final String OHMPILOT_ERROR_CODE = "errorcode";
75 public static final String OHMPILOT_STATE_CODE = "statecode";
78 * part of POWERFLOW_REALTIME_DATA using Symo Gen24
81 * "Battery_Mode" : "normal",
84 * "SOC" : 95.199996948242188
88 public static final String POWER_FLOW_INVERTER_1_POWER = "powerflowinverter1power";
89 public static final String POWER_FLOW_INVERTER_1_SOC = "powerflowinverter1soc";
92 public static final String INVERTER_REALTIME_DATA_URL = "http://%IP%/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=%DEVICEID%&DataCollection=CommonInverterData";
93 public static final String POWERFLOW_REALTIME_DATA = "http://%IP%/solar_api/v1/GetPowerFlowRealtimeData.fcgi";
94 public static final String METER_REALTIME_DATA_URL = "http://%IP%/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=%DEVICEID%&DataCollection=MeterRealtimeData";
95 public static final String OHMPILOT_REALTIME_DATA_URL = "http://%IP%/solar_api/v1/GetOhmPilotRealtimeData.cgi?Scope=Device&DeviceId=%DEVICEID%";