mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
DALY Modbus BMS: tests
This commit is contained in:
parent
f5d876e34f
commit
5083f841e3
6 changed files with 354 additions and 0 deletions
59
tests/components/daly_hkms_bms/test.esp32-ard.yaml
Normal file
59
tests/components/daly_hkms_bms/test.esp32-ard.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
59
tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml
Normal file
59
tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
59
tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml
Normal file
59
tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
59
tests/components/daly_hkms_bms/test.esp32-idf.yaml
Normal file
59
tests/components/daly_hkms_bms/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
59
tests/components/daly_hkms_bms/test.esp8266-ard.yaml
Normal file
59
tests/components/daly_hkms_bms/test.esp8266-ard.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
59
tests/components/daly_hkms_bms/test.rp2040-ard.yaml
Normal file
59
tests/components/daly_hkms_bms/test.rp2040-ard.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
|
||||||
|
daly_hkms_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_hkms_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
|
||||||
|
cell_1_voltage:
|
||||||
|
name: Cell 1 Voltage
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_hkms_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
Loading…
Reference in a new issue