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 power statistics by the inverter.
23 * Section "PV1" in Senec JSON.
25 * @author Steven Schwarznau - Initial Contribution
27 public class SenecHomePower implements Serializable {
29 private static final long serialVersionUID = -7092741166288342343L;
32 * Power limitation (%).
34 public @SerializedName("POWER_RATIO") String powerLimitation;
37 * Current DC current per MPP (A).
39 public @SerializedName("MPP_CUR") String[] currentPerMpp;
42 * Current DC power per MPP (W)
44 public @SerializedName("MPP_POWER") String[] powerPerMpp;
47 * Current DC tension per MPP (V).
49 public @SerializedName("MPP_VOL") String[] voltagePerMpp;
52 public String toString() {
53 return "SenecHomePower [powerLimitation=" + powerLimitation + ", mppCur=" + Arrays.toString(currentPerMpp)
54 + ", mppPower=" + Arrays.toString(powerPerMpp) + ", mppVol=" + Arrays.toString(voltagePerMpp) + "]";