mirror of
https://github.com/esphome/esphome.git
synced 2024-12-28 17:37:44 +01:00
Tests for duco component
This commit is contained in:
parent
376cfa12c2
commit
24bded90c1
42
tests/components/duco/common.yaml
Normal file
42
tests/components/duco/common.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: duco_uart
|
||||
baud_rate: 57600
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
|
||||
duco:
|
||||
uart_id: duco_uart
|
||||
discovery: {}
|
||||
|
||||
text_sensor:
|
||||
- platform: duco
|
||||
name: "Serial Number"
|
||||
|
||||
select:
|
||||
- platform: duco
|
||||
name: "Mode"
|
||||
|
||||
sensor:
|
||||
- platform: duco
|
||||
co2:
|
||||
- address: 3
|
||||
name: "CO2 Bedroom"
|
||||
- address: 4
|
||||
name: "CO2 Livingroom"
|
||||
filter_remaining:
|
||||
name: "Filter Time Remaining"
|
||||
flow_level:
|
||||
name: "Flow Level"
|
||||
update_interval: "5s"
|
||||
time_remaining:
|
||||
name: "Mode Time Remaining"
|
||||
update_interval: "5s"
|
||||
|
||||
number:
|
||||
- platform: duco
|
||||
name: "Comfort Temperature"
|
||||
update_interval: "10s"
|
5
tests/components/duco/test.esp32-ard.yaml
Normal file
5
tests/components/duco/test.esp32-ard.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/duco/test.esp32-c3-ard.yaml
Normal file
5
tests/components/duco/test.esp32-c3-ard.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/duco/test.esp32-c3-idf.yaml
Normal file
5
tests/components/duco/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/duco/test.esp32-idf.yaml
Normal file
5
tests/components/duco/test.esp32-idf.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/duco/test.esp8266-ard.yaml
Normal file
5
tests/components/duco/test.esp8266-ard.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/duco/test.rp2040-ard.yaml
Normal file
5
tests/components/duco/test.rp2040-ard.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
Loading…
Reference in New Issue
Block a user