Skip to content

Commit a45f1ef

Browse files
authored
feat: add measurment class for battery SoC for Energy Tab (#122)
Battery SOC sensor support build in HA function in Energy Tab.
1 parent b9f3aca commit a45f1ef

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎pv_inverter/packages/deye_hybrid_1p/battery.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ sensor:
108108
address: 184
109109
unit_of_measurement: "%"
110110
device_class: battery
111+
state_class: measurement
111112
accuracy_decimals: 0
112113
value_type: U_WORD
113114
icon: "mdi:battery"

‎pv_inverter/packages/deye_hybrid_3p/battery.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ sensor:
217217
register_type: holding
218218
address: 214
219219
unit_of_measurement: "%"
220+
device_class: battery
221+
state_class: measurement
220222
accuracy_decimals: 0
221223
value_type: U_WORD
222224
icon: "mdi:battery"

0 commit comments

Comments
 (0)