mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 12:15:33 +01:00
Add some components to the new testing framework (D) (#6175)
This commit is contained in:
parent
5ef1bab23e
commit
2948d87a66
43
tests/components/dac7678/test.esp32-c3-idf.yaml
Normal file
43
tests/components/dac7678/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
43
tests/components/dac7678/test.esp32-c3.yaml
Normal file
43
tests/components/dac7678/test.esp32-c3.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
43
tests/components/dac7678/test.esp32-idf.yaml
Normal file
43
tests/components/dac7678/test.esp32-idf.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
43
tests/components/dac7678/test.esp32.yaml
Normal file
43
tests/components/dac7678/test.esp32.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
43
tests/components/dac7678/test.esp8266.yaml
Normal file
43
tests/components/dac7678/test.esp8266.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
43
tests/components/dac7678/test.rp2040.yaml
Normal file
43
tests/components/dac7678/test.rp2040.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
12
tests/components/daikin/test.esp32.yaml
Normal file
12
tests/components/daikin/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: daikin
|
||||||
|
horizontal_default: middle
|
||||||
|
vertical_default: middle
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
12
tests/components/daikin/test.esp8266.yaml
Normal file
12
tests/components/daikin/test.esp8266.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 5
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: daikin
|
||||||
|
horizontal_default: middle
|
||||||
|
vertical_default: middle
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
7
tests/components/daikin_brc/test.esp32-c3-idf.yaml
Normal file
7
tests/components/daikin_brc/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
7
tests/components/daikin_brc/test.esp32-c3.yaml
Normal file
7
tests/components/daikin_brc/test.esp32-c3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
7
tests/components/daikin_brc/test.esp32-idf.yaml
Normal file
7
tests/components/daikin_brc/test.esp32-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
7
tests/components/daikin_brc/test.esp32.yaml
Normal file
7
tests/components/daikin_brc/test.esp32.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
7
tests/components/daikin_brc/test.esp8266.yaml
Normal file
7
tests/components/daikin_brc/test.esp8266.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 5
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
11
tests/components/dallas/test.esp32-c3-idf.yaml
Normal file
11
tests/components/dallas/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
11
tests/components/dallas/test.esp32-c3.yaml
Normal file
11
tests/components/dallas/test.esp32-c3.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
11
tests/components/dallas/test.esp32-idf.yaml
Normal file
11
tests/components/dallas/test.esp32-idf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
11
tests/components/dallas/test.esp32.yaml
Normal file
11
tests/components/dallas/test.esp32.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
11
tests/components/dallas/test.esp8266.yaml
Normal file
11
tests/components/dallas/test.esp8266.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
11
tests/components/dallas/test.rp2040.yaml
Normal file
11
tests/components/dallas/test.rp2040.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
dallas:
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x1C0000031EDD2A28
|
||||||
|
name: Dallas Temperature
|
||||||
|
resolution: 9
|
||||||
|
- platform: dallas
|
||||||
|
index: 1
|
||||||
|
name: Dallas Temperature
|
55
tests/components/daly_bms/test.esp32-c3-idf.yaml
Normal file
55
tests/components/daly_bms/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
55
tests/components/daly_bms/test.esp32-c3.yaml
Normal file
55
tests/components/daly_bms/test.esp32-c3.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
55
tests/components/daly_bms/test.esp32-idf.yaml
Normal file
55
tests/components/daly_bms/test.esp32-idf.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
55
tests/components/daly_bms/test.esp32.yaml
Normal file
55
tests/components/daly_bms/test.esp32.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
55
tests/components/daly_bms/test.esp8266.yaml
Normal file
55
tests/components/daly_bms/test.esp8266.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
55
tests/components/daly_bms/test.rp2040.yaml
Normal file
55
tests/components/daly_bms/test.rp2040.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
1
tests/components/debug/test.esp32-c3-idf.yaml
Normal file
1
tests/components/debug/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
1
tests/components/debug/test.esp32-c3.yaml
Normal file
1
tests/components/debug/test.esp32-c3.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
1
tests/components/debug/test.esp32-idf.yaml
Normal file
1
tests/components/debug/test.esp32-idf.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
1
tests/components/debug/test.esp32.yaml
Normal file
1
tests/components/debug/test.esp32.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
1
tests/components/debug/test.esp8266.yaml
Normal file
1
tests/components/debug/test.esp8266.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
1
tests/components/debug/test.rp2040.yaml
Normal file
1
tests/components/debug/test.rp2040.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
debug:
|
14
tests/components/deep_sleep/test.esp32-c3-idf.yaml
Normal file
14
tests/components/deep_sleep/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
||||||
|
|
||||||
|
deep_sleep:
|
||||||
|
run_duration:
|
||||||
|
default: 10s
|
||||||
|
gpio_wakeup_reason: 30s
|
||||||
|
sleep_duration: 50s
|
||||||
|
wakeup_pin: 4
|
||||||
|
wakeup_pin_mode: INVERT_WAKEUP
|
14
tests/components/deep_sleep/test.esp32-c3.yaml
Normal file
14
tests/components/deep_sleep/test.esp32-c3.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
||||||
|
|
||||||
|
deep_sleep:
|
||||||
|
run_duration:
|
||||||
|
default: 10s
|
||||||
|
gpio_wakeup_reason: 30s
|
||||||
|
sleep_duration: 50s
|
||||||
|
wakeup_pin: 4
|
||||||
|
wakeup_pin_mode: INVERT_WAKEUP
|
14
tests/components/deep_sleep/test.esp32-idf.yaml
Normal file
14
tests/components/deep_sleep/test.esp32-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
||||||
|
|
||||||
|
deep_sleep:
|
||||||
|
run_duration:
|
||||||
|
default: 10s
|
||||||
|
gpio_wakeup_reason: 30s
|
||||||
|
sleep_duration: 50s
|
||||||
|
wakeup_pin: 4
|
||||||
|
wakeup_pin_mode: INVERT_WAKEUP
|
14
tests/components/deep_sleep/test.esp32.yaml
Normal file
14
tests/components/deep_sleep/test.esp32.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
||||||
|
|
||||||
|
deep_sleep:
|
||||||
|
run_duration:
|
||||||
|
default: 10s
|
||||||
|
gpio_wakeup_reason: 30s
|
||||||
|
sleep_duration: 50s
|
||||||
|
wakeup_pin: 4
|
||||||
|
wakeup_pin_mode: INVERT_WAKEUP
|
10
tests/components/deep_sleep/test.esp8266.yaml
Normal file
10
tests/components/deep_sleep/test.esp8266.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
||||||
|
|
||||||
|
deep_sleep:
|
||||||
|
run_duration: 10s
|
||||||
|
sleep_duration: 50s
|
7
tests/components/delonghi/test.esp32-c3-idf.yaml
Normal file
7
tests/components/delonghi/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
7
tests/components/delonghi/test.esp32-c3.yaml
Normal file
7
tests/components/delonghi/test.esp32-c3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
7
tests/components/delonghi/test.esp32-idf.yaml
Normal file
7
tests/components/delonghi/test.esp32-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
7
tests/components/delonghi/test.esp32.yaml
Normal file
7
tests/components/delonghi/test.esp32.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
7
tests/components/delonghi/test.esp8266.yaml
Normal file
7
tests/components/delonghi/test.esp8266.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 5
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
42
tests/components/dfplayer/test.esp32-c3-idf.yaml
Normal file
42
tests/components/dfplayer/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
42
tests/components/dfplayer/test.esp32-c3.yaml
Normal file
42
tests/components/dfplayer/test.esp32-c3.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
42
tests/components/dfplayer/test.esp32-idf.yaml
Normal file
42
tests/components/dfplayer/test.esp32-idf.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
42
tests/components/dfplayer/test.esp32.yaml
Normal file
42
tests/components/dfplayer/test.esp32.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
42
tests/components/dfplayer/test.esp8266.yaml
Normal file
42
tests/components/dfplayer/test.esp8266.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
42
tests/components/dfplayer/test.rp2040.yaml
Normal file
42
tests/components/dfplayer/test.rp2040.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
28
tests/components/dfrobot_sen0395/test.esp32-c3-idf.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
28
tests/components/dfrobot_sen0395/test.esp32-c3.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.esp32-c3.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
28
tests/components/dfrobot_sen0395/test.esp32-idf.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.esp32-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
28
tests/components/dfrobot_sen0395/test.esp32.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.esp32.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
28
tests/components/dfrobot_sen0395/test.esp8266.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.esp8266.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
28
tests/components/dfrobot_sen0395/test.rp2040.yaml
Normal file
28
tests/components/dfrobot_sen0395/test.rp2040.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
11
tests/components/dht/test.esp32-c3-idf.yaml
Normal file
11
tests/components/dht/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
11
tests/components/dht/test.esp32-c3.yaml
Normal file
11
tests/components/dht/test.esp32-c3.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
11
tests/components/dht/test.esp32-idf.yaml
Normal file
11
tests/components/dht/test.esp32-idf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
11
tests/components/dht/test.esp32.yaml
Normal file
11
tests/components/dht/test.esp32.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
11
tests/components/dht/test.esp8266.yaml
Normal file
11
tests/components/dht/test.esp8266.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
11
tests/components/dht/test.rp2040.yaml
Normal file
11
tests/components/dht/test.rp2040.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
pin: 4
|
||||||
|
model: AM2302
|
||||||
|
update_interval: 15s
|
||||||
|
temperature:
|
||||||
|
id: dht_temperature
|
||||||
|
name: DHT Temperature
|
||||||
|
humidity:
|
||||||
|
id: dht_humidity
|
||||||
|
name: DHT Humidity
|
12
tests/components/dht12/test.esp32-c3-idf.yaml
Normal file
12
tests/components/dht12/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dht12/test.esp32-c3.yaml
Normal file
12
tests/components/dht12/test.esp32-c3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dht12/test.esp32-idf.yaml
Normal file
12
tests/components/dht12/test.esp32-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dht12/test.esp32.yaml
Normal file
12
tests/components/dht12/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dht12/test.esp8266.yaml
Normal file
12
tests/components/dht12/test.esp8266.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dht12/test.rp2040.yaml
Normal file
12
tests/components/dht12/test.rp2040.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
12
tests/components/dps310/test.esp32-c3-idf.yaml
Normal file
12
tests/components/dps310/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
12
tests/components/dps310/test.esp32-c3.yaml
Normal file
12
tests/components/dps310/test.esp32-c3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
12
tests/components/dps310/test.esp32-idf.yaml
Normal file
12
tests/components/dps310/test.esp32-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
12
tests/components/dps310/test.esp32.yaml
Normal file
12
tests/components/dps310/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
12
tests/components/dps310/test.esp8266.yaml
Normal file
12
tests/components/dps310/test.esp8266.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
12
tests/components/dps310/test.rp2040.yaml
Normal file
12
tests/components/dps310/test.rp2040.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
9
tests/components/ds1307/test.esp32-c3-idf.yaml
Normal file
9
tests/components/ds1307/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
9
tests/components/ds1307/test.esp32-c3.yaml
Normal file
9
tests/components/ds1307/test.esp32-c3.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
9
tests/components/ds1307/test.esp32-idf.yaml
Normal file
9
tests/components/ds1307/test.esp32-idf.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
9
tests/components/ds1307/test.esp32.yaml
Normal file
9
tests/components/ds1307/test.esp32.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
9
tests/components/ds1307/test.esp8266.yaml
Normal file
9
tests/components/ds1307/test.esp8266.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
9
tests/components/ds1307/test.rp2040.yaml
Normal file
9
tests/components/ds1307/test.rp2040.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
12
tests/components/dsmr/test.esp32-c3.yaml
Normal file
12
tests/components/dsmr/test.esp32-c3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_dsmr
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dsmr:
|
||||||
|
decryption_key: 00112233445566778899aabbccddeeff
|
||||||
|
max_telegram_length: 1000
|
||||||
|
request_pin: 6
|
||||||
|
request_interval: 20s
|
||||||
|
receive_timeout: 100ms
|
12
tests/components/dsmr/test.esp32.yaml
Normal file
12
tests/components/dsmr/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_dsmr
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dsmr:
|
||||||
|
decryption_key: 00112233445566778899aabbccddeeff
|
||||||
|
max_telegram_length: 1000
|
||||||
|
request_pin: 15
|
||||||
|
request_interval: 20s
|
||||||
|
receive_timeout: 100ms
|
12
tests/components/dsmr/test.esp8266.yaml
Normal file
12
tests/components/dsmr/test.esp8266.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_dsmr
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dsmr:
|
||||||
|
decryption_key: 00112233445566778899aabbccddeeff
|
||||||
|
max_telegram_length: 1000
|
||||||
|
request_pin: 15
|
||||||
|
request_interval: 20s
|
||||||
|
receive_timeout: 100ms
|
12
tests/components/dsmr/test.rp2040.yaml
Normal file
12
tests/components/dsmr/test.rp2040.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_dsmr
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dsmr:
|
||||||
|
decryption_key: 00112233445566778899aabbccddeeff
|
||||||
|
max_telegram_length: 1000
|
||||||
|
request_pin: 6
|
||||||
|
request_interval: 20s
|
||||||
|
receive_timeout: 100ms
|
4
tests/components/duty_cycle/test.esp32-c3-idf.yaml
Normal file
4
tests/components/duty_cycle/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
4
tests/components/duty_cycle/test.esp32-c3.yaml
Normal file
4
tests/components/duty_cycle/test.esp32-c3.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
4
tests/components/duty_cycle/test.esp32-idf.yaml
Normal file
4
tests/components/duty_cycle/test.esp32-idf.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
4
tests/components/duty_cycle/test.esp32.yaml
Normal file
4
tests/components/duty_cycle/test.esp32.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
4
tests/components/duty_cycle/test.esp8266.yaml
Normal file
4
tests/components/duty_cycle/test.esp8266.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
4
tests/components/duty_cycle/test.rp2040.yaml
Normal file
4
tests/components/duty_cycle/test.rp2040.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: duty_cycle
|
||||||
|
pin: 4
|
||||||
|
name: Duty Cycle Sensor
|
14
tests/components/duty_time/test.esp32-c3-idf.yaml
Normal file
14
tests/components/duty_time/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
14
tests/components/duty_time/test.esp32-c3.yaml
Normal file
14
tests/components/duty_time/test.esp32-c3.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
14
tests/components/duty_time/test.esp32-idf.yaml
Normal file
14
tests/components/duty_time/test.esp32-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
14
tests/components/duty_time/test.esp32.yaml
Normal file
14
tests/components/duty_time/test.esp32.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
14
tests/components/duty_time/test.esp8266.yaml
Normal file
14
tests/components/duty_time/test.esp8266.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
14
tests/components/duty_time/test.rp2040.yaml
Normal file
14
tests/components/duty_time/test.rp2040.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: duty_time
|
||||||
|
name: Duty Time
|
||||||
|
sensor: bin1
|
Loading…
Reference in New Issue
Block a user