]> git.basschouten.com Git - openhab-addons.git/blob
39ae8df5b5d9f980e39ce2bd82374d3c4db91d0b
[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.modbus.sunspec.internal.dto;
14
15 import java.util.Optional;
16
17 /**
18  * Model for SunSpec compatible inverter data
19  *
20  * @author Nagy Attila Gabor - Initial contribution
21  *
22  */
23 public class InverterModelBlock {
24
25     /**
26      * Type of inverter (single phase, split phase, three phase)
27      */
28     public Integer phaseConfiguration;
29
30     /**
31      * Length of the block in 16bit words
32      */
33     public Integer length;
34
35     /**
36      * AC Total Current value
37      */
38     public Integer acCurrentTotal;
39
40     /**
41      * AC Phase A Current value
42      */
43     public Integer acCurrentPhaseA;
44
45     /**
46      * AC Phase B Current value
47      */
48     public Optional<Integer> acCurrentPhaseB;
49
50     /**
51      * AC Phase C Current value
52      */
53     public Optional<Integer> acCurrentPhaseC;
54
55     /**
56      * AC Current scale factor
57      */
58     public Short acCurrentSF;
59
60     /**
61      * AC Voltage Phase AB value
62      */
63     public Optional<Integer> acVoltageAB;
64
65     /**
66      * AC Voltage Phase BC value
67      */
68     public Optional<Integer> acVoltageBC;
69
70     /**
71      * AC Voltage Phase CA value
72      */
73     public Optional<Integer> acVoltageCA;
74
75     /**
76      * AC Voltage Phase A to N value
77      */
78     public Integer acVoltageAtoN;
79
80     /**
81      * AC Voltage Phase B to N value
82      */
83     public Optional<Integer> acVoltageBtoN;
84
85     /**
86      * AC Voltage Phase C to N value
87      */
88     public Optional<Integer> acVoltageCtoN;
89
90     /**
91      * AC Voltage scale factor
92      */
93     public Short acVoltageSF;
94
95     /**
96      * AC Power value
97      */
98     public Short acPower;
99
100     /**
101      * AC Power scale factor
102      */
103     public Short acPowerSF;
104
105     /**
106      * AC Frequency value
107      */
108     public Integer acFrequency;
109
110     /**
111      * AC Frequency scale factor
112      */
113     public Short acFrequencySF;
114
115     /**
116      * Apparent power
117      */
118     public Optional<Short> acApparentPower;
119
120     /**
121      * Apparent power scale factor
122      */
123     public Optional<Short> acApparentPowerSF;
124
125     /**
126      * Reactive power
127      */
128     public Optional<Short> acReactivePower;
129
130     /**
131      * Reactive power scale factor
132      */
133     public Optional<Short> acReactivePowerSF;
134
135     /**
136      * Power factor
137      */
138     public Optional<Short> acPowerFactor;
139
140     /**
141      * Power factor scale factor
142      */
143     public Optional<Short> acPowerFactorSF;
144
145     /**
146      * AC Lifetime Energy production
147      */
148     public Long acEnergyLifetime;
149
150     /**
151      * AC Lifetime Energy scale factor
152      */
153     public Short acEnergyLifetimeSF;
154
155     /**
156      * DC Current value
157      */
158     public Optional<Integer> dcCurrent;
159
160     /**
161      * DC Current scale factor
162      */
163     public Optional<Short> dcCurrentSF;
164
165     /**
166      * DC Voltage value
167      */
168     public Optional<Integer> dcVoltage;
169
170     /**
171      * DC Voltage scale factor
172      */
173     public Optional<Short> dcVoltageSF;
174
175     /**
176      * DC Power value
177      */
178     public Optional<Short> dcPower;
179
180     /**
181      * DC Power scale factor
182      */
183     public Optional<Short> dcPowerSF;
184
185     /**
186      * Cabinet temperature
187      */
188     public Short temperatureCabinet;
189
190     /**
191      * Heat sink temperature
192      */
193     public Optional<Short> temperatureHeatsink;
194
195     /**
196      * Transformer temperature
197      */
198     public Optional<Short> temperatureTransformer;
199
200     /**
201      * Other temperature
202      */
203     public Optional<Short> temperatureOther;
204
205     /**
206      * Heat sink temperature scale factor
207      */
208     public Short temperatureSF;
209
210     /**
211      * Current operating state
212      */
213     public Integer status;
214
215     /**
216      * Vendor defined operating state or error code
217      */
218     public Optional<Integer> statusVendor;
219 }