2 * Copyright (c) 2010-2023 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.enphase.internal.dto;
16 * Data class for Envoy production and consumption data from production.json api call.
18 * @author Hilbrand Bouwkamp - Initial contribution
20 public class ProductionJsonDTO {
22 public static class DataDTO {
24 public int activeCount;
25 public float whLifetime;
26 public float whLastSevenDays;
29 public float rmsCurrent;
30 public float rmsVoltage;
31 public float reactPwr;
32 public float apprntPwr;
33 public float pwrFactor;
34 public long readingTime;
35 public float varhLeadToday;
36 public float varhLagToday;
37 public float vahToday;
38 public float varhLeadLifetime;
39 public float varhLagLifetime;
40 public float vahLifetime;
43 public DataDTO[] production;
44 public DataDTO[] consumption;