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.json;
15 import java.io.Serializable;
16 import java.util.Arrays;
18 import com.google.gson.annotations.SerializedName;
21 * Json model of senec home devices: This sub model provides the current statistics by the inverter.
23 * Section "STATISTIC" in Senec JSON.
25 * @author Korbinian Probst - Initial Contribution
27 public class SenecHomeStatistics implements Serializable {
29 private static final long serialVersionUID = -1102310892637495823L;
32 * total Wh charged to the battery (kWh)
34 public @SerializedName("LIVE_BAT_CHARGE") String liveBatCharge;
37 * total Wh discharged from the battery (kWh)
39 public @SerializedName("LIVE_BAT_DISCHARGE") String liveBatDischarge;
42 * total Wh imported from grid (kWh)
44 public @SerializedName("LIVE_GRID_IMPORT") String liveGridImport;
47 * total Wh supplied to the grid (kWh)
49 public @SerializedName("LIVE_GRID_EXPORT") String liveGridExport;
52 * Total house consumption (kWh)
54 public @SerializedName("LIVE_HOUSE_CONS") String liveHouseConsumption;
57 * Total Wh produced (kWh)
59 public @SerializedName("LIVE_PV_GEN") String livePowerGenerator;
62 * Total Wh provided to Wallbox (Wh)
64 public @SerializedName("LIVE_WB_ENERGY") String[] liveWallboxEnergy;
67 public String toString() {
68 return "SenecHomeStatistics [liveBatCharge=" + liveBatCharge + ", liveBatDischarge=" + liveBatDischarge
69 + ", liveGridImport=" + liveGridImport + ", liveGridExport=" + liveGridExport
70 + ", liveHouseConsumption=" + liveHouseConsumption + ", livePowerGen=" + livePowerGenerator
71 + ", liveWallboxEnergy=" + Arrays.toString(liveWallboxEnergy) + "]";