diff --git a/README.md b/README.md index 9482d13..e6dc1c8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ # hassio-bluetti-bt +[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration) +[![Validate with hassfest](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml) +[![HACS Action](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml) + Bluetti Integration for Home Assistant ## Disclaimer @@ -6,12 +10,15 @@ This integration is provided without any warranty or support by Bluetti (unfortu ## Installation To install this integration, you first need [HACS](https://hacs.xyz/) installed. +After the installation, you can use this button to install the integration: + +[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=Patrick762&repository=hassio-bluetti-bt&category=integration) ### Supported devices: - AC60 - AC180 (basic data) -- AC180P (basic data) +- AC180P (tested) - AC200L (untested) - AC200M - AC300 (tested) diff --git a/custom_components/bluetti_bt/bluetti_bt_lib/devices/ac180p.py b/custom_components/bluetti_bt/bluetti_bt_lib/devices/ac180p.py index e25d62e..7adc3df 100644 --- a/custom_components/bluetti_bt/bluetti_bt_lib/devices/ac180p.py +++ b/custom_components/bluetti_bt/bluetti_bt_lib/devices/ac180p.py @@ -22,7 +22,8 @@ class AC180P(ProtocolV2Device): # Controls (2000) self.struct.add_bool_field('ac_output_on_switch', 2011) self.struct.add_bool_field('dc_output_on_switch', 2012) - self.struct.add_bool_field('silent_charging_on', 2020) + self.struct.add_bool_field('silent_charging_on', 2020) # to be able to choose between normal and silent charging modes + self.struct.add_enum_field('charging_mode', 2020, ChargingMode) # can't be set from HA, custom switch needed self.struct.add_bool_field('power_lifting_on', 2021) # Controls (2200) 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 c490967..8b663df 100644 --- a/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py +++ b/custom_components/bluetti_bt/bluetti_bt_lib/field_attributes.py @@ -324,7 +324,7 @@ FIELD_ATTRIBUTES: dict[str, FieldAttributes] = { "silent_charging_on": FieldAttributes( type=FieldType.BOOL, setter=True, - name="Silet Charging", + name="Silent Charging", ), }