Skip to content

Commit

Permalink
feat: Add SG0XXP3 Battery Shutdown-Restart-Low
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Jul 29, 2024
1 parent 0076c9f commit 0da625c
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 31 deletions.
15 changes: 0 additions & 15 deletions custom_components/solarman/inverter_definitions/deye_2mppt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002B]
isstr: true
lookup:
- key: 0
value: "OFF"
Expand All @@ -230,7 +229,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002E]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -245,7 +243,6 @@ parameters:
scale: 1
rule: 1
registers: [0x0031]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -262,7 +259,6 @@ parameters:
scale: 1
rule: 1
registers: [0x003B]
isstr: true
lookup:
- key: 0
value: "Standby"
Expand Down Expand Up @@ -310,7 +306,6 @@ parameters:
scale: 1
rule: 5
registers: [0x0003, 0x0004, 0x0005, 0x0006, 0x0007]
isstr: true

- name: "Hardware Version"
class: ""
Expand All @@ -329,7 +324,6 @@ parameters:
rule: 7
registers: [0x000D]
icon: "mdi:map-marker"
isstr: true

- name: "AC Version. Number"
class: ""
Expand All @@ -339,7 +333,6 @@ parameters:
rule: 7
registers: [0x000E]
icon: "mdi:map-marker"
isstr: true

- name: "Rated Power"
class: "energy"
Expand All @@ -359,7 +352,6 @@ parameters:
rule: 7
registers: [0x0012]
icon: "mdi:wrench"
isstr: true

- name: "Start-up Self-checking Time "
class: ""
Expand All @@ -378,7 +370,6 @@ parameters:
rule: 8
registers: [0x0016, 0x0017, 0x0018]
icon: "mdi:clock-time-three-outline"
isstr: true

- name: "Device Rated Power"
class: ""
Expand All @@ -387,7 +378,6 @@ parameters:
scale: 1
rule: 1
registers: [0x0008]
isstr: true
lookup:
- key: 1
value: "single-phase"
Expand All @@ -411,7 +401,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002F]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -435,7 +424,6 @@ parameters:
scale: 1
rule: 1
registers: [0x0036]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -453,7 +441,6 @@ parameters:
rule: 3
registers: [0x0067, 0x0068, 0x0069, 0x006a]
icon: "mdi:alert-octagon-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand All @@ -470,7 +457,6 @@ parameters:
rule: 1
registers: [0x0065, 0x0066]
icon: "mdi:information-slab-circle-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand Down Expand Up @@ -501,7 +487,6 @@ parameters:
rule: 6
registers: [0x0075, 0x0076]
icon: "mdi:message-alert-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand Down
17 changes: 1 addition & 16 deletions custom_components/solarman/inverter_definitions/deye_4mppt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002B]
isstr: true
lookup:
- key: 0
value: "OFF"
Expand All @@ -275,7 +274,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002E]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -290,7 +288,6 @@ parameters:
scale: 1
rule: 1
registers: [0x0031]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -308,7 +305,6 @@ parameters:
scale: 1
rule: 1
registers: [0x003B]
isstr: true
lookup:
- key: 0
value: "Stand-by"
Expand Down Expand Up @@ -359,7 +355,6 @@ parameters:
scale: 1
rule: 5
registers: [0x0003, 0x0004, 0x0005, 0x0006, 0x0007]
isstr: true

- name: "Hardware Version"
class: ""
Expand All @@ -378,7 +373,6 @@ parameters:
rule: 7
registers: [0x000D]
icon: "mdi:map-marker"
isstr: true

- name: "AC Version. Number"
class: ""
Expand All @@ -388,7 +382,6 @@ parameters:
rule: 7
registers: [0x000E]
icon: "mdi:map-marker"
isstr: true

- name: "Rated Power"
realtime:
Expand All @@ -408,7 +401,6 @@ parameters:
rule: 7
registers: [0x0012]
icon: "mdi:wrench"
isstr: true

- name: "Start-up Self-checking Time "
class: ""
Expand All @@ -427,7 +419,6 @@ parameters:
rule: 8
registers: [0x0016, 0x0017, 0x0018]
icon: "mdi:clock-time-three-outline"
isstr: true

- name: "Device Rated Power"
class: ""
Expand All @@ -436,7 +427,6 @@ parameters:
scale: 1
rule: 1
registers: [0x0008]
isstr: true
lookup:
- key: 1
value: "single-phase"
Expand All @@ -461,7 +451,6 @@ parameters:
scale: 1
rule: 1
registers: [0x002F]
isstr: true
lookup:
- key: 0
value: "Disabled"
Expand All @@ -487,15 +476,14 @@ parameters:
scale: 1
rule: 1
registers: [0x0036]
isstr: true
lookup:
- key: 0
value: "Disabled"
- key: 1
value: "Enabled"
icon: "mdi:factory"

- group: Alert
- group: Alert
items:
- name: "Fault information"
class: ""
Expand All @@ -505,7 +493,6 @@ parameters:
rule: 3
registers: [0x0067, 0x0068, 0x0069, 0x006a]
icon: "mdi:alert-octagon-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand All @@ -522,7 +509,6 @@ parameters:
rule: 1
registers: [0x0065, 0x0066]
icon: "mdi:information-slab-circle-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand Down Expand Up @@ -553,7 +539,6 @@ parameters:
rule: 6
registers: [0x0075, 0x0076]
icon: "mdi:message-alert-outline"
isstr: true
lookup:
- key: 0
value: "None"
Expand Down
121 changes: 121 additions & 0 deletions custom_components/solarman/inverter_definitions/deye_sg01hp3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,127 @@ parameters:
- key: 0x0002
value: No Battery

- name: Battery Resistance
update_interval: 300
class: ""
state_class: measurement
uom: ""
scale: 1
rule: 1
registers: [0x0071]
icon: mdi:battery
configurable:
range:
min: 0
max: 6000

- name: Battery Charging efficiency
update_interval: 300
class: ""
state_class: measurement
uom: "%"
scale: 0.1
rule: 1
registers: [0x0072]
icon: mdi:battery
configurable:
range:
min: 0
max: 100

- name: Battery Shutdown SOC
update_interval: 300
class: ""
state_class: measurement
uom: "%"
scale: 1
rule: 1
registers: [0x0073]
icon: mdi:battery
configurable:
range:
min: 0
max: 100

- name: Battery Restart SOC
update_interval: 300
class: ""
state_class: measurement
uom: "%"
scale: 1
rule: 1
registers: [0x0074]
icon: mdi:battery
configurable:
range:
min: 0
max: 100

- name: Battery Low SOC
update_interval: 300
class: ""
state_class: measurement
uom: "%"
scale: 1
rule: 1
registers: [0x0075]
icon: mdi:battery
configurable:
range:
min: 0
max: 100

- name: Battery Shutdown Voltage
update_interval: 300
class: "voltage"
state_class: measurement
uom: "V"
scale: 0.01
rule: 1
registers: [0x0076]
icon: mdi:battery
configurable:
min: 38
max: 61
step: 0.1
range:
min: 3800
max: 6100

- name: Battery Restart Voltage
update_interval: 300
class: "voltage"
state_class: measurement
uom: "V"
scale: 0.01
rule: 1
registers: [0x0077]
icon: mdi:battery
configurable:
min: 38
max: 61
step: 0.1
range:
min: 3800
max: 6100

- name: Battery Low Voltage
update_interval: 300
class: "voltage"
state_class: measurement
uom: "V"
scale: 0.01
rule: 1
registers: [0x0078]
icon: mdi:battery
configurable:
min: 38
max: 61
step: 0.1
range:
min: 3800
max: 6100

- name: "Battery Grid Charging Current"
update_interval: 300
class: "current"
Expand Down
Loading

0 comments on commit 0da625c

Please sign in to comment.