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.dto;
15 import java.io.Serializable;
17 import com.google.gson.annotations.SerializedName;
20 * Json model of senec home devices: This sub model contains values of current workload, i. e. current consumption and
25 * @author Steven Schwarznau - Initial Contribution
27 public class SenecHomeEnergy implements Serializable {
29 private static final long serialVersionUID = -5491226594672777034L;
32 * House power consumption (W).
34 public @SerializedName("GUI_HOUSE_POW") String housePowerConsumption;
37 * Total inverter power (W).
38 * Named "energyProduction" on channel/thing-type side.
40 public @SerializedName("GUI_INVERTER_POWER") String inverterPowerGeneration;
43 * Battery power in W (+values loading, -values unloading)
45 public @SerializedName("GUI_BAT_DATA_POWER") String batteryPower;
48 * Battery current (A).
50 public @SerializedName("GUI_BAT_DATA_CURRENT") String batteryCurrent;
53 * Battery voltage (V).
55 public @SerializedName("GUI_BAT_DATA_VOLTAGE") String batteryVoltage;
58 * Battery charge rate (%).
60 public @SerializedName("GUI_BAT_DATA_FUEL_CHARGE") String batteryFuelCharge;
63 * Encoded system state.
65 public @SerializedName("STAT_STATE") String systemState;
68 public String toString() {
69 return "SenecHomeEnergy [housePowerConsumption=" + housePowerConsumption + ", inverterPowerGeneration="
70 + inverterPowerGeneration + ", batteryPower=" + batteryPower + ", batteryVoltage=" + batteryVoltage
71 + ", batteryCurrent=" + batteryCurrent + ", batteryFuelCharge=" + batteryFuelCharge + ", systemState="