]> git.basschouten.com Git - openhab-addons.git/blob
b203670262405b58bc02af6cea7edf3be617674d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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 import java.util.Arrays;
17
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * Json model of senec home devices: This sub model provides the current power statistics by the inverter.
22  *
23  * Section "PV1" in Senec JSON.
24  *
25  * @author Steven Schwarznau - Initial Contribution
26  */
27 public class SenecHomePower implements Serializable {
28
29     private static final long serialVersionUID = -7092741166288342343L;
30
31     /**
32      * Power limitation (%).
33      */
34     public @SerializedName("POWER_RATIO") String powerLimitation;
35
36     /**
37      * Current DC current per MPP (A).
38      */
39     public @SerializedName("MPP_CUR") String[] currentPerMpp;
40
41     /**
42      * Current DC power per MPP (W)
43      */
44     public @SerializedName("MPP_POWER") String[] powerPerMpp;
45
46     /**
47      * Current DC tension per MPP (V).
48      */
49     public @SerializedName("MPP_VOL") String[] voltagePerMpp;
50
51     @Override
52     public String toString() {
53         return "SenecHomePower [powerLimitation=" + powerLimitation + ", mppCur=" + Arrays.toString(currentPerMpp)
54                 + ", mppPower=" + Arrays.toString(powerPerMpp) + ", mppVol=" + Arrays.toString(voltagePerMpp) + "]";
55     }
56 }