]> git.basschouten.com Git - openhab-addons.git/blob
2e164ee8899f8208f9d673179cd978ea1dc1605a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.enphase.internal.dto;
14
15 /**
16  * Data class for Envoy production and consumption data from production.json api call.
17  *
18  * @author Hilbrand Bouwkamp - Initial contribution
19  */
20 public class ProductionJsonDTO {
21
22     public static class DataDTO {
23         public String type;
24         public int activeCount;
25         public float whLifetime;
26         public float whLastSevenDays;
27         public float whToday;
28         public float wNow;
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;
41     }
42
43     public DataDTO[] production;
44     public DataDTO[] consumption;
45 }