2 * Copyright (c) 2010-2021 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 power statistics by the inverter.
22 * @author Steven Schwarznau - Initial Contribution
24 public class SenecHomeGrid implements Serializable {
26 private static final long serialVersionUID = -7479338321370375451L;
29 * grid value indicating the current power draw (for values larger zero) or supply (for negative values)
31 public @SerializedName("P_TOTAL") String currentGridValue;
34 * grid voltage for each phase
36 public @SerializedName("U_AC") String[] currentGridVoltagePerPhase;
39 * grid current for each phase
41 public @SerializedName("I_AC") String[] currentGridCurrentPerPhase;
44 * grid power for each phase, draw (for values larger zero) or supply (for negative values)
46 public @SerializedName("P_AC") String[] currentGridPowerPerPhase;
51 public @SerializedName("FREQ") String currentGridFrequency;
54 public String toString() {
55 return "SenecHomeGrid [currentGridValue=" + currentGridValue + ", gridVoltagePerPhase= "
56 + currentGridVoltagePerPhase + ", currentGridCurrentPerPhase= " + currentGridCurrentPerPhase
57 + ", currentGridPowerPerPhase= " + currentGridPowerPerPhase + ", currentGridFrequency="
58 + currentGridFrequency + "]";