]> git.basschouten.com Git - openhab-addons.git/blob
8843678b3189338dff02225fbb23c01e3039cc78
[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  * Senec wallbox specific data from "WALLBOX" section.
22  *
23  * @author Erwin Guib - Initial Contribution
24  */
25 public class SenecHomeWallbox implements Serializable {
26
27     private static final long serialVersionUID = -664163242812451235L;
28
29     /**
30      * Encoded wallbox state.
31      */
32     public @SerializedName("STATE") String[] state;
33
34     /**
35      * L1 Charging current per wallbox (A).
36      */
37     public @SerializedName("L1_CHARGING_CURRENT") String[] l1ChargingCurrent;
38
39     /**
40      * L2 Charging current per wallbox (A).
41      */
42     public @SerializedName("L2_CHARGING_CURRENT") String[] l2ChargingCurrent;
43
44     /**
45      * L3 Charging current per wallbox (A).
46      */
47     public @SerializedName("L3_CHARGING_CURRENT") String[] l3ChargingCurrent;
48
49     /**
50      * Charging power per wallbox (W).
51      */
52     public @SerializedName("APPARENT_CHARGING_POWER") String[] chargingPower;
53
54     @Override
55     public String toString() {
56         return "SenecWallbox{" + "l1ChargingCurrent=" + Arrays.toString(l1ChargingCurrent) + ", l2ChargingCurrent="
57                 + Arrays.toString(l2ChargingCurrent) + ", l3ChargingCurrent=" + Arrays.toString(l3ChargingCurrent)
58                 + '}';
59     }
60 }