Skip to content

Commit 6993336

Browse files
rusty-bitclaude
andcommitted
Name the SOC settings after what they actually do
Register 115 is the capacity cutoff and 117 only the low-battery warning level; while Time of Use is enabled neither sets the discharge floor, which comes from the active slot's TOU SOC (166-171). Reading a live inverter showed 117 holding the requested 20 % while all six TOU slots held 30 % and discharge stopped at 30 %. Entity IDs are unchanged, only the display names. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent ae12db0 commit 6993336

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog (personal fork)
22

3+
## 0.1.7
4+
- Change: "Battery Shutdown SOC" and "Battery Low SOC" are now named
5+
"Battery Shutdown SOC (cutoff)" (register 115) and "Battery Low SOC (warning)"
6+
(117), matching the protocol. Entity IDs are unchanged.
7+
Neither is the discharge floor while Time of Use is on: the inverter then stops
8+
at the active slot's TOU SOC (166-171). Confirmed on a live inverter, where 117
9+
held the requested 20 % while all six TOU slots held 30 % and discharge stopped
10+
at 30 %.
11+
312
## 0.1.6
413
- Cross-checked every control against the Deye Modbus RTU protocol (V117). That document
514
is the single-phase edition; the three-phase settings block sits **102 registers lower**

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ Rebadged units on the same platform (Sunsynk, etc.) will generally work too.
133133
|------|----------|
134134
| Switch | Inverter On/Off, Solar Sell (Export), Grid Charge Enable, Generator Charge Enable |
135135
| Select | Work Mode (Selling First / Zero Export To Load / Zero Export To CT) |
136+
> **SOC settings.** While Time of Use is enabled (register 146), the inverter discharges only to the active slot's **TOU SOC**, not to *Battery Low SOC (warning)* — that one is the warning level, and *Battery Shutdown SOC (cutoff)* is the real cutoff. The TOU SOC entities ship disabled; enable them to change the floor.
137+
136138
| Number | Max Sell Power, Max Grid Output Power, Active Power Regulation, Battery Max Charge/Discharge Current, Grid Charge Current, Battery Shutdown/Restart/Low SOC, Battery Capacity, Grid Voltage High/Low limits |
137139
| Time-of-use | 6 slots × Time / Power / SOC / Charge Source (Off / Grid / Generator / Grid+Generator) |
138140
| Advanced (fork) | SmartLoad Setup, GEN Connect To Grid Input, ARC Fault Detection, Gen/Grid Peak Shaving + power, Asymmetric Phase Feeding |

‎custom_components/deye_modbus/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"requirements": [
1717
"pymodbus>=3.5.0"
1818
],
19-
"version": "0.1.6"
19+
"version": "0.1.7"
2020
}

‎custom_components/deye_modbus/maps/sun_3ph_hybrid.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,11 @@ controls:
10941094
entity_category: config
10951095
enabled_default: false
10961096

1097+
# The names follow the protocol: 115 is the cutoff, 117 only the warning
1098+
# level. Neither is the discharge floor while Time of Use is enabled (146
1099+
# bit 0) - the floor is then the active slot's TOU SOC (166-171).
10971100
- type: number
1098-
name: Battery Shutdown SOC
1101+
name: Battery Shutdown SOC (cutoff)
10991102
unique_id: batt_shutdown_soc
11001103
group: Battery Setting
11011104
register_type: holding
@@ -1123,7 +1126,7 @@ controls:
11231126
entity_category: config
11241127

11251128
- type: number
1126-
name: Battery Low SOC
1129+
name: Battery Low SOC (warning)
11271130
unique_id: batt_low_soc
11281131
group: Battery Setting
11291132
register_type: holding

0 commit comments

Comments
 (0)