59
59
'options_disabled' : ['interface' ],
60
60
61
61
'dependencies_module' : [
62
- ('pip-pypi' , 'rpi_power_monitor' , 'git+https://github.com/David00/rpi-power-monitor.git@192a99880bd576b2f3e7016b04d03f252ddaf99f' )
62
+ ('pip-pypi' , 'rpi_power_monitor' , 'git+https://github.com/David00/rpi-power-monitor` .git@192a99880bd576b2f3e7016b04d03f252ddaf99f' )
63
63
],
64
64
65
65
'custom_commands' : [
133
133
'name' : 'CT1 Calibration' ,
134
134
'phrase' : 'The calibration value for CT1'
135
135
},
136
+ {
137
+ 'id' : 'ct1_rating' ,
138
+ 'type' : 'float' ,
139
+ 'default_value' : 1.0 ,
140
+ 'required' : True ,
141
+ 'name' : 'CT1 Rating' ,
142
+ 'phrase' : 'The Amp rating for the CT1 clamp'
143
+ },
136
144
{
137
145
'id' : 'ct2_accuracy_calibration' ,
138
146
'type' : 'float' ,
141
149
'name' : 'CT2 Calibration' ,
142
150
'phrase' : 'The calibration value for CT2'
143
151
},
152
+ {
153
+ 'id' : 'ct2_rating' ,
154
+ 'type' : 'float' ,
155
+ 'default_value' : 100 ,
156
+ 'required' : True ,
157
+ 'name' : 'CT2 Rating' ,
158
+ 'phrase' : 'The Amp rating for the CT2 clamp'
159
+ },
144
160
{
145
161
'id' : 'ct3_accuracy_calibration' ,
146
162
'type' : 'float' ,
149
165
'name' : 'CT3 Calibration' ,
150
166
'phrase' : 'The calibration value for CT3'
151
167
},
168
+ {
169
+ 'id' : 'ct3_rating' ,
170
+ 'type' : 'float' ,
171
+ 'default_value' : 100 ,
172
+ 'required' : True ,
173
+ 'name' : 'CT3 Rating' ,
174
+ 'phrase' : 'The Amp rating for the CT3 clamp'
175
+ },
152
176
{
153
177
'id' : 'ct4_accuracy_calibration' ,
154
178
'type' : 'float' ,
157
181
'name' : 'CT4 Calibration' ,
158
182
'phrase' : 'The calibration value for CT4'
159
183
},
184
+ {
185
+ 'id' : 'ct4_rating' ,
186
+ 'type' : 'float' ,
187
+ 'default_value' : 100 ,
188
+ 'required' : True ,
189
+ 'name' : 'CT4 Rating' ,
190
+ 'phrase' : 'The Amp rating for the CT4 clamp'
191
+ },
160
192
{
161
193
'id' : 'ct5_accuracy_calibration' ,
162
194
'type' : 'float' ,
165
197
'name' : 'CT5 Calibration' ,
166
198
'phrase' : 'The calibration value for CT5'
167
199
},
200
+ {
201
+ 'id' : 'ct5_rating' ,
202
+ 'type' : 'float' ,
203
+ 'default_value' : 100 ,
204
+ 'required' : True ,
205
+ 'name' : 'CT5 Rating' ,
206
+ 'phrase' : 'The Amp rating for the CT5 clamp'
207
+ },
168
208
{
169
209
'id' : 'ct6_accuracy_calibration' ,
170
210
'type' : 'float' ,
173
213
'name' : 'CT6 Calibration' ,
174
214
'phrase' : 'The calibration value for CT6'
175
215
},
216
+ {
217
+ 'id' : 'ct6_rating' ,
218
+ 'type' : 'float' ,
219
+ 'default_value' : 100 ,
220
+ 'required' : True ,
221
+ 'name' : 'CT6 Rating' ,
222
+ 'phrase' : 'The Amp rating for the CT6 clamp'
223
+ },
176
224
{
177
225
'id' : 'ac_accuracy_calibration' ,
178
226
'type' : 'float' ,
@@ -202,6 +250,12 @@ def __init__(self, input_dev, testing=False):
202
250
self .ct4_accuracy_calibration = None
203
251
self .ct5_accuracy_calibration = None
204
252
self .ct6_accuracy_calibration = None
253
+ self .ct1_rating = None
254
+ self .ct2_rating = None
255
+ self .ct3_rating = None
256
+ self .ct4_rating = None
257
+ self .ct5_rating = None
258
+ self .ct6_rating = None
205
259
self .ac_accuracy_calibration = None
206
260
207
261
self .timer_kwh_measure = 0
@@ -261,7 +315,7 @@ def initialize(self):
261
315
'current_transformers' : {
262
316
'channel_1' : {
263
317
'name' : 'Channel 1' ,
264
- 'rating' : 100 ,
318
+ 'rating' : self . ct1_rating ,
265
319
'type' : 'consumption' ,
266
320
'two_pole' : False ,
267
321
'enabled' : self .is_enabled (0 ),
@@ -272,7 +326,7 @@ def initialize(self):
272
326
},
273
327
'channel_2' : {
274
328
'name' : 'Channel 2' ,
275
- 'rating' : 100 ,
329
+ 'rating' : self . ct2_rating ,
276
330
'type' : 'consumption' ,
277
331
'two_pole' : False ,
278
332
'enabled' : self .is_enabled (1 ),
@@ -283,7 +337,7 @@ def initialize(self):
283
337
},
284
338
'channel_3' : {
285
339
'name' : 'Channel 3' ,
286
- 'rating' : 100 ,
340
+ 'rating' : self . ct3_rating ,
287
341
'type' : 'consumption' ,
288
342
'two_pole' : False ,
289
343
'enabled' : self .is_enabled (2 ),
@@ -294,7 +348,7 @@ def initialize(self):
294
348
},
295
349
'channel_4' : {
296
350
'name' : 'Channel 4' ,
297
- 'rating' : 100 ,
351
+ 'rating' : self . ct4_rating ,
298
352
'type' : 'consumption' ,
299
353
'two_pole' : False ,
300
354
'enabled' : self .is_enabled (3 ),
@@ -305,7 +359,7 @@ def initialize(self):
305
359
},
306
360
'channel_5' : {
307
361
'name' : 'Channel 5' ,
308
- 'rating' : 100 ,
362
+ 'rating' : self . ct5_rating ,
309
363
'type' : 'consumption' ,
310
364
'two_pole' : False ,
311
365
'enabled' : self .is_enabled (4 ),
@@ -316,7 +370,7 @@ def initialize(self):
316
370
},
317
371
'channel_6' : {
318
372
'name' : 'Channel 6' ,
319
- 'rating' : 100 ,
373
+ 'rating' : self . ct6_rating ,
320
374
'type' : 'consumption' ,
321
375
'two_pole' : False ,
322
376
'enabled' : self .is_enabled (5 ),
0 commit comments