From 7c11d21f825ec6bf2aa24f8acf1f339666661506 Mon Sep 17 00:00:00 2001 From: rand <63668759+rand12345@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:47:30 +0000 Subject: [PATCH] Update device classes for BMS sensors --- custom_components/HA-FoxESS-Modbus/modbusUSB.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom_components/HA-FoxESS-Modbus/modbusUSB.yaml b/custom_components/HA-FoxESS-Modbus/modbusUSB.yaml index b889c3b..dada867 100644 --- a/custom_components/HA-FoxESS-Modbus/modbusUSB.yaml +++ b/custom_components/HA-FoxESS-Modbus/modbusUSB.yaml @@ -303,21 +303,21 @@ scan_interval: 5 slave: 247 input_type: input - device_class: battery + device_class: voltage unit_of_measurement: "mV" - name: "BMS Cell mV Low" address: 11046 scan_interval: 5 slave: 247 input_type: input - device_class: battery + device_class: voltage unit_of_measurement: "mV" - name: "BMS Charge Rate" address: 11041 scan_interval: 30 slave: 247 input_type: input - device_class: battery + device_class: current unit_of_measurement: "A" scale: 0.1 - name: "BMS Discharge Rate" @@ -325,7 +325,7 @@ scan_interval: 30 slave: 247 input_type: input - device_class: battery + device_class: current unit_of_measurement: "A" scale: 0.1 - name: "BMS Cell Temp Low" @@ -356,7 +356,7 @@ slave: 247 input_type: input unit_of_measurement: "Ah" - device_class: power + device_class: energy - name: "BMS kWh Remaining" address: 11037 scan_interval: 60 @@ -364,7 +364,7 @@ input_type: input scale: 0.01 precision: 2 - device_class: battery + device_class: energy unit_of_measurement: "kWh" binary_sensors: