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;
17 import com.google.gson.annotations.SerializedName;
20 * Json model of senec home devices rebuilt by analyzing the api.
22 * @author Steven Schwarznau - Initial Contribution
24 public class SenecHomeResponse implements Serializable {
26 private static final long serialVersionUID = -2672622188872750438L;
28 public @SerializedName("PV1") SenecHomePower power = new SenecHomePower();
29 public @SerializedName("ENERGY") SenecHomeEnergy energy = new SenecHomeEnergy();
30 public @SerializedName("PM1OBJ1") SenecHomeGrid grid = new SenecHomeGrid();
31 public @SerializedName("BMS") SenecHomeBattery battery = new SenecHomeBattery();
32 public @SerializedName("TEMPMEASURE") SenecHomeTemperature temperature = new SenecHomeTemperature();
33 public @SerializedName("WALLBOX") SenecHomeWallbox wallbox = new SenecHomeWallbox();
36 public String toString() {
37 return "SenecHomeResponse [power=" + power + ", energy=" + energy + ", grid=" + grid + ", battery" + battery
38 + "temperature" + temperature + "wallbox" + wallbox + "]";