Skip to content

Commit

Permalink
feat: Add some missing sensors for sofar
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Sep 2, 2024
1 parent 1526a1d commit e0ce0a4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions custom_components/solarman/inverter_definitions/sofar_wifikit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,58 @@ parameters:
registers: [0x0211]
icon: "mdi:thermometer"

- name: Today Battery Charge
friendly_name: Today's Battery Charge
update_interval: 30
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.01
rule: 1
registers: [0x0224]
icon: "mdi:battery-plus"

- name: Today Battery Discharge
friendly_name: Today's Battery Discharge
update_interval: 30
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.01
rule: 1
registers: [0x0225]
icon: "mdi:battery-minus"

- name: "Total Battery Charge"
update_interval: 30
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 1
rule: 3
registers: [0x0227, 0x0226]
icon: "mdi:battery-plus"

- name: "Total Battery Discharge"
update_interval: 30
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 1
rule: 3
registers: [0x0229, 0x0228]
icon: "mdi:battery-minus"

- name: "Battery SOH"
update_interval: 300
class: ""
state_class: "measurement"
uom: "%"
scale: 1
rule: 1
registers: [0x0237]
icon: "mdi:battery-heart"

- name: "Battery Capacity"
class: ""
state_class: ""
Expand Down

0 comments on commit e0ce0a4

Please sign in to comment.