From 5083f841e3ef9442b863ef03c316bfad59380502 Mon Sep 17 00:00:00 2001 From: patagona Date: Thu, 3 Oct 2024 20:50:11 +0200 Subject: [PATCH] DALY Modbus BMS: tests --- .../daly_hkms_bms/test.esp32-ard.yaml | 59 +++++++++++++++++++ .../daly_hkms_bms/test.esp32-c3-ard.yaml | 59 +++++++++++++++++++ .../daly_hkms_bms/test.esp32-c3-idf.yaml | 59 +++++++++++++++++++ .../daly_hkms_bms/test.esp32-idf.yaml | 59 +++++++++++++++++++ .../daly_hkms_bms/test.esp8266-ard.yaml | 59 +++++++++++++++++++ .../daly_hkms_bms/test.rp2040-ard.yaml | 59 +++++++++++++++++++ 6 files changed, 354 insertions(+) create mode 100644 tests/components/daly_hkms_bms/test.esp32-ard.yaml create mode 100644 tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml create mode 100644 tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml create mode 100644 tests/components/daly_hkms_bms/test.esp32-idf.yaml create mode 100644 tests/components/daly_hkms_bms/test.esp8266-ard.yaml create mode 100644 tests/components/daly_hkms_bms/test.rp2040-ard.yaml diff --git a/tests/components/daly_hkms_bms/test.esp32-ard.yaml b/tests/components/daly_hkms_bms/test.esp32-ard.yaml new file mode 100644 index 0000000000..52c3e91af6 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.esp32-ard.yaml @@ -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 diff --git a/tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml b/tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml new file mode 100644 index 0000000000..b94e100bf1 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.esp32-c3-ard.yaml @@ -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 diff --git a/tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml b/tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml new file mode 100644 index 0000000000..b94e100bf1 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.esp32-c3-idf.yaml @@ -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 diff --git a/tests/components/daly_hkms_bms/test.esp32-idf.yaml b/tests/components/daly_hkms_bms/test.esp32-idf.yaml new file mode 100644 index 0000000000..52c3e91af6 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.esp32-idf.yaml @@ -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 diff --git a/tests/components/daly_hkms_bms/test.esp8266-ard.yaml b/tests/components/daly_hkms_bms/test.esp8266-ard.yaml new file mode 100644 index 0000000000..b94e100bf1 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.esp8266-ard.yaml @@ -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 diff --git a/tests/components/daly_hkms_bms/test.rp2040-ard.yaml b/tests/components/daly_hkms_bms/test.rp2040-ard.yaml new file mode 100644 index 0000000000..b94e100bf1 --- /dev/null +++ b/tests/components/daly_hkms_bms/test.rp2040-ard.yaml @@ -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