]> git.basschouten.com Git - openhab-addons.git/blob
e578e53fd9dc1113875ccfad53ace348b81197c5
[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 contains values of current workload, i. e. current consumption and
21  * battery charge.
22  *
23  * @author Steven Schwarznau - Initial Contribution
24  */
25 public class SenecHomeEnergy implements Serializable {
26
27     private static final long serialVersionUID = -6171687327416551070L;
28
29     public @SerializedName("GUI_HOUSE_POW") String homePowerConsumption;
30     public @SerializedName("GUI_INVERTER_POWER") String inverterPowerGeneration;
31     public @SerializedName("GUI_BAT_DATA_POWER") String batteryPower;
32     public @SerializedName("GUI_BAT_DATA_FUEL_CHARGE") String batteryFuelCharge;
33     public @SerializedName("STAT_STATE") String batteryState;
34     public @SerializedName("GUI_BAT_DATA_VOLTAGE") String batteryVoltage;
35
36     @Override
37     public String toString() {
38         return "SenecHomeEnergy [homePowerConsumption=" + homePowerConsumption + ", inverterPowerGeneration="
39                 + inverterPowerGeneration + ", batteryPower=" + batteryPower + ", batteryFuelCharge="
40                 + batteryFuelCharge + ", batteryState=" + batteryState + ", batteryVoltage" + batteryVoltage + "]";
41     }
42 }