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 * Battery related data from section "BMS".
23 * @author Erwin Guib - Initial Contribution
25 public class SenecHomeBattery implements Serializable {
27 public static final long serialVersionUID = -2850415059107677832L;
30 * Total charged energy per battery pack (mWh).
32 public @SerializedName("CHARGED_ENERGY") String[] chargedEnergy;
35 * Total discharged energy per battery pack (mWh).
37 public @SerializedName("DISCHARGED_ENERGY") String[] dischargedEnergy;
40 * Number of load cycles per battery pack.
42 public @SerializedName("CYCLES") String[] cycles;
45 * Current per battery pack (A).
47 public @SerializedName("CURRENT") String[] current;
50 * Voltage per battery pack (V).
52 public @SerializedName("VOLTAGE") String[] voltage;
55 * Maximum cell voltage per battery pack (mV).
57 public @SerializedName("MAX_CELL_VOLTAGE") String[] maxCellVoltage;
60 * Minimum cell voltage per battery pack (mV).
62 public @SerializedName("MIN_CELL_VOLTAGE") String[] minCellVoltage;
65 public String toString() {
66 return "SenecHomeBattery{" + "chargedEnergy=" + Arrays.toString(chargedEnergy) + ", dischargedEnergy="
67 + Arrays.toString(dischargedEnergy) + ", cycles=" + Arrays.toString(cycles) + ", current="
68 + Arrays.toString(current) + ", voltage=" + Arrays.toString(voltage) + ", maxCellVoltage="
69 + Arrays.toString(maxCellVoltage) + ", minCellVoltage=" + Arrays.toString(minCellVoltage) + '}';