]> git.basschouten.com Git - openhab-addons.git/blob
a32ee50941ac738aeb16eb24e20dc1c75ea1f932
[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.senechome.internal.json;
14
15 import java.io.Serializable;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Json model of senec home devices: This sub model provides the current statistics by the inverter.
21  *
22  * @author Korbinian Probst - Initial Contribution
23  */
24 public class SenecHomeStatistics implements Serializable {
25
26     private static final long serialVersionUID = -7479338432170375451L;
27
28     /**
29      * total Wh charged to the battery
30      */
31     public @SerializedName("LIVE_BAT_CHARGE") String liveBatCharge;
32
33     /**
34      * total Wh discharged from the battery
35      */
36     public @SerializedName("LIVE_BAT_DISCHARGE") String liveBatDischarge;
37
38     /**
39      * total Wh imported from grid
40      */
41     public @SerializedName("LIVE_GRID_IMPORT") String liveGridImport;
42
43     /**
44      * total Wh supplied to the grid
45      */
46     public @SerializedName("LIVE_GRID_EXPORT") String liveGridExport;
47
48     @Override
49     public String toString() {
50         return "SenecHomeStatistics [liveBatCharge=" + liveBatCharge + ", liveBatDischarge= " + liveBatDischarge
51                 + ", liveGridImport= " + liveGridImport + ", liveGridExport= " + liveGridExport + "]";
52     }
53 }