Add some components to the new testing framework (U) (#6230)

This commit is contained in:
Keith Burzinski 2024-03-26 20:26:50 -05:00 committed by GitHub
parent c36d7c0c3c
commit dc071bed24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 624 additions and 0 deletions

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 4
rx_pin: 5
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 4
rx_pin: 5
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 17
rx_pin: 16
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 17
rx_pin: 16
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 4
rx_pin: 5
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,15 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
tx_pin: 4
rx_pin: 5
baud_rate: 9600
data_bits: 8
rx_buffer_size: 512
parity: EVEN
stop_bits: 2

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 16
sda: 17
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 16
sda: 17
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: test_sensor
temperature_compensation: 20.0
temperature_coefficient: 0.019

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 16
sda: 17
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 16
sda: 17
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: 5
sda: 4
sensor:
- platform: template
id: test_sensor
lambda: "return 21;"
- platform: ufire_ise
id: ufire_ise_sensor
temperature_sensor: test_sensor
ph:
name: Ufire pH

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 0
pin_b: 1
pin_c: 2
pin_d: 3
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 0
pin_b: 1
pin_c: 2
pin_d: 3
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 12
pin_b: 13
pin_c: 14
pin_d: 15
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 12
pin_b: 13
pin_c: 14
pin_d: 15
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 12
pin_b: 13
pin_c: 14
pin_d: 15
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: 0
pin_b: 1
pin_c: 2
pin_d: 3
max_speed: 250 steps/s
acceleration: 100 steps/s^2
deceleration: 200 steps/s^2

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,7 @@
sensor:
- platform: ultrasonic
id: ultrasonic_sensor1
name: Ultrasonic Sensor
echo_pin: 4
trigger_pin: 5
timeout: 5.5m

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor

View file

@ -0,0 +1,3 @@
sensor:
- platform: uptime
name: Uptime Sensor