Add some components to the new testing framework (K) (#6186)

This commit is contained in:
Keith Burzinski 2024-03-26 20:22:54 -05:00 committed by GitHub
parent eee7146614
commit ca6020e11a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 330 additions and 0 deletions

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 16
sda: 17
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 16
sda: 17
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4
sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600
modbus:
flow_control_pin: 3
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600
modbus:
flow_control_pin: 3
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 17
rx_pin: 16
baud_rate: 9600
modbus:
flow_control_pin: 13
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 17
rx_pin: 16
baud_rate: 9600
modbus:
flow_control_pin: 13
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600
modbus:
flow_control_pin: 13
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature

View file

@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600
modbus:
flow_control_pin: 3
sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature