]> git.basschouten.com Git - openhab-addons.git/blob
87fd844db47fe13c81451733144913722e528cf6
[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
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Json model of senec home devices: This sub model contains grid related power values.
21  *
22  * Section "PM1OBJ1" (Enfluri Netz Werte)
23  *
24  * @author Steven Schwarznau - Initial Contribution
25  */
26 public class SenecHomeGrid implements Serializable {
27
28     private static final long serialVersionUID = -7479338321370375451L;
29
30     /**
31      * grid value indicating the current power draw (for values larger zero) or supply (for negative values)
32      */
33     public @SerializedName("P_TOTAL") String currentGridValue;
34
35     /**
36      * grid voltage for each phase
37      */
38     public @SerializedName("U_AC") String[] currentGridVoltagePerPhase;
39
40     /**
41      * grid current for each phase
42      */
43     public @SerializedName("I_AC") String[] currentGridCurrentPerPhase;
44
45     /**
46      * grid power for each phase, draw (for values larger zero) or supply (for negative values)
47      */
48     public @SerializedName("P_AC") String[] currentGridPowerPerPhase;
49
50     /**
51      * grid frequency
52      */
53     public @SerializedName("FREQ") String currentGridFrequency;
54
55     @Override
56     public String toString() {
57         return "SenecHomeGrid [currentGridValue=" + currentGridValue + ", gridVoltagePerPhase= "
58                 + currentGridVoltagePerPhase + ", currentGridCurrentPerPhase= " + currentGridCurrentPerPhase
59                 + ", currentGridPowerPerPhase= " + currentGridPowerPerPhase + ", currentGridFrequency="
60                 + currentGridFrequency + "]";
61     }
62 }