Skip to content

Commit 7f731a4

Browse files
committed
PR comments
1 parent d0f2bba commit 7f731a4

2 files changed

Lines changed: 4 additions & 107 deletions

File tree

custom_components/solis_modbus/sensors/solis_base_sensor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
# The mirrors are U16 on a 0.1 A scale, same as the setpoints they bound.
8686
BATTERY_CURRENT_MIRROR_MULTIPLIER = 0.1
8787

88+
# Grid TOU cut-off voltage: charge slots 1-6, then discharge slots 1-6.
89+
_TOU_CUTOFF_VOLTAGE_REGISTERS = (43710, 43717, 43724, 43731, 43738, 43745, 43752, 43759, 43766, 43773, 43780, 43787)
90+
8891
# Battery voltage setpoints. The protocol gives one range for LV banks and a much wider
8992
# one for HV: "Range:40—48 ... HV Series- Default:120; Range 100-999" (ESINV-33000ID, the
9093
# 33208-33211 read-side equivalents). The shipped literals cover the LV case only, which
@@ -94,8 +97,7 @@
9497
43017, # Equalizing Charge Voltage
9598
43020, # Overdischarge Voltage
9699
43021, # Forcecharge Voltage
97-
43710, 43717, 43724, 43731, 43738, 43745, # Grid TOU Charge cut off voltage, slots 1-6
98-
43752, 43759, 43766, 43773, 43780, 43787, # Grid TOU Discharge cut off voltage, slots 1-6
100+
*_TOU_CUTOFF_VOLTAGE_REGISTERS,
99101
}
100102

101103
# The upper bound of that HV range. The lower bound (100 V) is deliberately not applied:

test_async_blocking.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)