Skip to content

Commit 4516d58

Browse files
authored
Update definitions.py
fixed PV voltage scales for 18kpv Signed-off-by: 12oclocker <73079144+12oclocker@users.noreply.github.com>
1 parent 17f5fa0 commit 4516d58

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎custom_components/eg4_inverter/definitions.py‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,25 +211,33 @@
211211
"key": "vpv1",
212212
"name": "PV1 Voltage",
213213
"unit": UnitOfElectricPotential.VOLT,
214-
"scale": 0.01, # if 2098 => 20.98, adjust if needed
214+
"scale": 0.1, # if 2098 means 209.8 scale is 0.1 #18kpv is 0.1 scale
215215
"icon": "mdi:solar-panel",
216216
},
217217
{
218218
"type": "sensor",
219219
"key": "vpv2",
220220
"name": "PV2 Voltage",
221221
"unit": UnitOfElectricPotential.VOLT,
222-
"scale": 0.01,
222+
"scale": 0.1, #18kpv is 0.1 scale
223223
"icon": "mdi:solar-panel",
224224
},
225225
{
226226
"type": "sensor",
227227
"key": "vpv3",
228228
"name": "PV3 Voltage",
229229
"unit": UnitOfElectricPotential.VOLT,
230-
"scale": 0.01,
230+
"scale": 0.1, #18kpv is 0.1 scale
231231
"icon": "mdi:solar-panel",
232232
},
233+
{
234+
"type": "sensor",
235+
"key": "vpv3",
236+
"name": "PV3 Voltage",
237+
"unit": UnitOfElectricPotential.VOLT,
238+
"scale": 0.1, #18kpv is 0.1 scale
239+
"icon": "mdi:solar-panel",
240+
},
233241
{
234242
"type": "sensor",
235243
"key": "ppv1",
@@ -383,12 +391,14 @@
383391
"key": "genVolt",
384392
"name": "Generator Voltage",
385393
"unit": UnitOfElectricPotential.VOLT,
394+
"scale": 0.1,
386395
},
387396
{
388397
"type": "sensor",
389398
"key": "genFreq",
390399
"name": "Generator Frequency",
391400
"unit": UnitOfFrequency.HERTZ,
401+
"scale": 0.1,
392402
},
393403
{
394404
"type": "sensor",

0 commit comments

Comments
 (0)