diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..adde280 Binary files /dev/null and b/.DS_Store differ diff --git a/custom_components/bluetti_bt/bluetti_bt_lib/base_devices/ProtocolV1Device.py b/custom_components/bluetti_bt/bluetti_bt_lib/base_devices/ProtocolV1Device.py index 8160342..a8c4532 100644 --- a/custom_components/bluetti_bt/bluetti_bt_lib/base_devices/ProtocolV1Device.py +++ b/custom_components/bluetti_bt/bluetti_bt_lib/base_devices/ProtocolV1Device.py @@ -14,6 +14,8 @@ class ProtocolV1Device(BluettiDevice): # Device info self.struct.add_string_field("device_type", 10, 6) self.struct.add_sn_field("serial_number", 17) + self.struct.add_version_field('arm_version', 23) + self.struct.add_version_field('dsp_version', 25) # Power IO self.struct.add_uint_field("dc_input_power", 36) diff --git a/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py b/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py index db9707e..bcb4182 100644 --- a/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py +++ b/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py @@ -125,6 +125,14 @@ FIELD_ATTRIBUTES: dict[str, FieldAttributes] = { "ac_input_power": PowerFieldAttributes("AC Input Power"), "ac_output_power": PowerFieldAttributes("AC Output Power"), "dc_output_power": PowerFieldAttributes("DC Output Power"), + "dsp_version": FieldAttributes( + type=FieldType.NUMERIC, + name=f"DSP Version", + ), + "arm_version": FieldAttributes( + type=FieldType.NUMERIC, + name=f"ARM Version", + ), "power_generation": EnergyFieldAttributes("Total Power Generation"), "total_battery_percent": FieldAttributes( type=FieldType.NUMERIC,