2 * Copyright (c) 2010-2020 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;
17 import com.google.gson.annotations.SerializedName;
20 * Json model of senec home devices: This sub model provides the current statistics by the inverter.
22 * @author Korbinian Probst - Initial Contribution
24 public class SenecHomeStatistics implements Serializable {
26 private static final long serialVersionUID = -7479338432170375451L;
29 * total Wh charged to the battery
31 public @SerializedName("LIVE_BAT_CHARGE") String liveBatCharge;
34 * total Wh discharged from the battery
36 public @SerializedName("LIVE_BAT_DISCHARGE") String liveBatDischarge;
39 * total Wh imported from grid
41 public @SerializedName("LIVE_GRID_IMPORT") String liveGridImport;
44 * total Wh supplied to the grid
46 public @SerializedName("LIVE_GRID_EXPORT") String liveGridExport;
49 public String toString() {
50 return "SenecHomeStatistics [liveBatCharge=" + liveBatCharge + ", liveBatDischarge= " + liveBatDischarge
51 + ", liveGridImport= " + liveGridImport + ", liveGridExport= " + liveGridExport + "]";