1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

Add support for Daly Smart BMS (#2156)

* Add support for Daly Smart BMS

* Fix clang-format and python lint

* Fix const declaration

* Add code owner

* Fix malloc with std::vector

* Fix with suggestions

* Revert "Fix with suggestions"

This reverts commit bc618f20cf.

* Fix last commit

* Fix Python Lint

* Fix typo

* Use std::vector instead pointer and fix loop

* Fix typo

* Add test configuration to test3.yaml

* Fix test3.yaml

* Fix uart in test3.yaml
This commit is contained in:
Silvio
2021-09-22 12:03:42 +02:00
committed by GitHub
parent 0929a0f8aa
commit ed593544d8
8 changed files with 616 additions and 0 deletions

View File

@@ -273,6 +273,37 @@ adalight:
sensor:
- platform: daly_bms
voltage:
name: "Battery Voltage"
current:
name: "Battery Current"
battery_level:
name: "Battery Level"
max_cell_voltage:
name: "Max Cell Voltage"
max_cell_voltage_number:
name: "Max Cell Voltage Number"
min_cell_voltage:
name: "Min Cell Voltage"
min_cell_voltage_number:
name: "Min Cell Voltage Number"
max_temperature:
name: "Max Temperature"
max_temperature_probe_number:
name: "Max Temperature Probe Number"
min_temperature:
name: "Min Temperature"
min_temperature_probe_number:
name: "Min Temperature Probe Number"
remaining_capacity:
name: "Remaining Capacity"
cells_number:
name: "Cells Number"
temperature_1:
name: "Temperature 1"
temperature_2:
name: "Temperature 2"
- platform: apds9960
type: proximity
name: APDS9960 Proximity
@@ -621,6 +652,11 @@ mpr121:
address: 0x5A
binary_sensor:
- platform: daly_bms
charging_mos_enabled:
name: "Charging MOS"
discharging_mos_enabled:
name: "Discharging MOS"
- platform: apds9960
direction: up
name: APDS9960 Up
@@ -701,6 +737,9 @@ status_led:
pin: GPIO2
text_sensor:
- platform: daly_bms
status:
name: "BMS Status"
- platform: version
name: 'ESPHome Version'
icon: mdi:icon
@@ -1219,3 +1258,8 @@ fingerprint_grow:
dsmr:
decryption_key: 00112233445566778899aabbccddeeff
uart_id: uart6
daly_bms:
update_interval: 20s
uart_id: uart1