Fix eNexus total current for Smartpack S (#14606)

* Fix eNexus divisor
Thanks to @loopodoopo, it looks like Smartpack S returns 1/10 Amps instead of Amps.
Set them separately

fixes #14414

* I did not wait for data to fully update :D
This commit is contained in:
Tony Murray
2022-11-09 11:07:08 -06:00
committed by GitHub
parent 524e0c097b
commit 3e6ad9006a
3 changed files with 27 additions and 8 deletions
@@ -316,6 +316,25 @@ modules:
group: Output
warn_limit: rectifiersCurrentMinorAlarmLevel
high_limit: rectifiersCurrentMajorAlarmLevel
skip_values:
-
device: hardware
op: '='
value: Smartpack S
- # Smartpack S returns 10ths of an amp
oid: rectifiersCurrent
value: rectifiersCurrentValue
num_oid: '.1.3.6.1.4.1.12148.10.5.2.5.{{ $index }}'
descr: System Output Current
index: 'current.{{ $index }}'
group: Output
divisor: 10
warn_limit: rectifiersCurrentMinorAlarmLevel
high_limit: rectifiersCurrentMajorAlarmLevel
skip_values:
- device: hardware
op: '!='
value: Smartpack S
-
oid: rectifierTable
value: rectifierOutputCurrentValue
+4 -4
View File
@@ -82,11 +82,11 @@
"sensor_type": "enexus",
"sensor_descr": "System Output Current",
"group": "Output",
"sensor_divisor": 1,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 4,
"sensor_limit": 5000,
"sensor_limit_warn": 4000,
"sensor_current": 0.4,
"sensor_limit": 500,
"sensor_limit_warn": 400,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
+4 -4
View File
@@ -82,11 +82,11 @@
"sensor_type": "enexus",
"sensor_descr": "System Output Current",
"group": "Output",
"sensor_divisor": 1,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 57,
"sensor_limit": 5000,
"sensor_limit_warn": 4000,
"sensor_current": 5.7,
"sensor_limit": 500,
"sensor_limit_warn": 400,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,