mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
[CI] Consolidate some tests (U, V, W, X, Y, Z) (#8210)
This commit is contained in:
parent
353924257a
commit
dc8646cda6
25
tests/components/ufire_ec/common.yaml
Normal file
25
tests/components/ufire_ec/common.yaml
Normal 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: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
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
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
25
tests/components/ufire_ise/common.yaml
Normal file
25
tests/components/ufire_ise/common.yaml
Normal 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: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ise
|
||||
id: ufire_ise_sensor
|
||||
temperature_sensor: test_sensor
|
||||
ph:
|
||||
name: Ufire pH
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
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:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
29
tests/components/uln2003/common.yaml
Normal file
29
tests/components/uln2003/common.yaml
Normal 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: ${pin_a}
|
||||
pin_b: ${pin_b}
|
||||
pin_c: ${pin_c}
|
||||
pin_d: ${pin_d}
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO12
|
||||
pin_b: GPIO13
|
||||
pin_c: GPIO14
|
||||
pin_d: GPIO15
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO0
|
||||
pin_b: GPIO1
|
||||
pin_c: GPIO2
|
||||
pin_d: GPIO3
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO0
|
||||
pin_b: GPIO1
|
||||
pin_c: GPIO2
|
||||
pin_d: GPIO3
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO12
|
||||
pin_b: GPIO13
|
||||
pin_c: GPIO14
|
||||
pin_d: GPIO15
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO12
|
||||
pin_b: GPIO13
|
||||
pin_c: GPIO14
|
||||
pin_d: GPIO15
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,7 @@
|
||||
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
|
||||
substitutions:
|
||||
pin_a: GPIO0
|
||||
pin_b: GPIO1
|
||||
pin_c: GPIO2
|
||||
pin_d: GPIO3
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
42
tests/components/vbus/common.yaml
Normal file
42
tests/components/vbus/common.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
@ -1,42 +1,5 @@
|
||||
uart:
|
||||
- id: uart_vbus
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
vbus:
|
||||
|
||||
binary_sensor:
|
||||
- platform: vbus
|
||||
model: deltasol_bs_plus
|
||||
relay1:
|
||||
name: Relay 1 On
|
||||
relay2:
|
||||
name: Relay 2 On
|
||||
sensor1_error:
|
||||
name: Sensor 1 Error
|
||||
- platform: vbus
|
||||
model: custom
|
||||
command: 0x100
|
||||
source: 0x1234
|
||||
dest: 0x10
|
||||
binary_sensors:
|
||||
- id: vcustom_b
|
||||
name: VBus Custom Binary Sensor
|
||||
lambda: return x[0] & 1;
|
||||
|
||||
sensor:
|
||||
- platform: vbus
|
||||
model: deltasol c
|
||||
temperature_1:
|
||||
name: Temperature 1
|
||||
temperature_2:
|
||||
name: Temperature 2
|
||||
temperature_3:
|
||||
name: Temperature 3
|
||||
operating_hours_1:
|
||||
name: Operating Hours 1
|
||||
heat_quantity:
|
||||
name: Heat Quantity
|
||||
time:
|
||||
name: System Time
|
||||
<<: !include common.yaml
|
||||
|
15
tests/components/veml3235/common.yaml
Normal file
15
tests/components/veml3235/common.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml3235
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: veml3235
|
||||
id: veml3235_sensor
|
||||
name: VEML3235 Light Sensor
|
||||
auto_gain: true
|
||||
auto_gain_threshold_high: 90%
|
||||
auto_gain_threshold_low: 15%
|
||||
digital_gain: 1X
|
||||
gain: 1X
|
||||
integration_time: 50ms
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: veml7700
|
||||
address: 0x10
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,6 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_veml7700
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
12
tests/components/vl53l0x/common.yaml
Normal file
12
tests/components/vl53l0x/common.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_vl53l0x
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: vl53l0x
|
||||
name: VL53L0x Distance
|
||||
address: 0x29
|
||||
enable_pin: 3
|
||||
timeout: 200us
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
57
tests/components/voice_assistant/common.yaml
Normal file
57
tests/components/voice_assistant/common.yaml
Normal file
@ -0,0 +1,57 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- voice_assistant.start
|
||||
- voice_assistant.start_continuous
|
||||
- voice_assistant.stop
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
api:
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: ${i2s_lrclk_pin}
|
||||
i2s_bclk_pin: ${i2s_bclk_pin}
|
||||
i2s_mclk_pin: ${i2s_mclk_pin}
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external
|
||||
i2s_din_pin: ${i2s_din_pin}
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: ${i2s_dout_pin}
|
||||
|
||||
voice_assistant:
|
||||
microphone: mic_id_external
|
||||
speaker: speaker_id
|
||||
conversation_timeout: 60s
|
||||
on_listening:
|
||||
- logger.log: "Voice assistant microphone listening"
|
||||
on_start:
|
||||
- logger.log: "Voice assistant started"
|
||||
on_stt_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant STT ended with result %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_start:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS started with text %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS ended with url %s"
|
||||
args: [x.c_str()]
|
||||
on_end:
|
||||
- logger.log: "Voice assistant ended"
|
||||
on_error:
|
||||
- logger.log:
|
||||
format: "Voice assistant error - code %s, message: %s"
|
||||
args: [code.c_str(), message.c_str()]
|
@ -1,57 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- voice_assistant.start
|
||||
- voice_assistant.start_continuous
|
||||
- voice_assistant.stop
|
||||
substitutions:
|
||||
i2s_lrclk_pin: GPIO16
|
||||
i2s_bclk_pin: GPIO17
|
||||
i2s_mclk_pin: GPIO15
|
||||
i2s_din_pin: GPIO13
|
||||
i2s_dout_pin: GPIO12
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
api:
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 16
|
||||
i2s_bclk_pin: 17
|
||||
i2s_mclk_pin: 15
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external
|
||||
i2s_din_pin: 13
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 12
|
||||
|
||||
voice_assistant:
|
||||
microphone: mic_id_external
|
||||
speaker: speaker_id
|
||||
conversation_timeout: 60s
|
||||
on_listening:
|
||||
- logger.log: "Voice assistant microphone listening"
|
||||
on_start:
|
||||
- logger.log: "Voice assistant started"
|
||||
on_stt_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant STT ended with result %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_start:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS started with text %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS ended with url %s"
|
||||
args: [x.c_str()]
|
||||
on_end:
|
||||
- logger.log: "Voice assistant ended"
|
||||
on_error:
|
||||
- logger.log:
|
||||
format: "Voice assistant error - code %s, message: %s"
|
||||
args: [code.c_str(), message.c_str()]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- voice_assistant.start
|
||||
- voice_assistant.start_continuous
|
||||
- voice_assistant.stop
|
||||
substitutions:
|
||||
i2s_lrclk_pin: GPIO6
|
||||
i2s_bclk_pin: GPIO7
|
||||
i2s_mclk_pin: GPIO5
|
||||
i2s_din_pin: GPIO3
|
||||
i2s_dout_pin: GPIO2
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
api:
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_bclk_pin: 7
|
||||
i2s_mclk_pin: 5
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external
|
||||
i2s_din_pin: 3
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 2
|
||||
|
||||
voice_assistant:
|
||||
microphone: mic_id_external
|
||||
speaker: speaker_id
|
||||
on_listening:
|
||||
- logger.log: "Voice assistant microphone listening"
|
||||
on_start:
|
||||
- logger.log: "Voice assistant started"
|
||||
on_stt_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant STT ended with result %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_start:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS started with text %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS ended with url %s"
|
||||
args: [x.c_str()]
|
||||
on_end:
|
||||
- logger.log: "Voice assistant ended"
|
||||
on_error:
|
||||
- logger.log:
|
||||
format: "Voice assistant error - code %s, message: %s"
|
||||
args: [code.c_str(), message.c_str()]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- voice_assistant.start
|
||||
- voice_assistant.start_continuous
|
||||
- voice_assistant.stop
|
||||
substitutions:
|
||||
i2s_lrclk_pin: GPIO6
|
||||
i2s_bclk_pin: GPIO7
|
||||
i2s_mclk_pin: GPIO5
|
||||
i2s_din_pin: GPIO3
|
||||
i2s_dout_pin: GPIO2
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
api:
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_bclk_pin: 7
|
||||
i2s_mclk_pin: 5
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external
|
||||
i2s_din_pin: 3
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 2
|
||||
|
||||
voice_assistant:
|
||||
microphone: mic_id_external
|
||||
speaker: speaker_id
|
||||
on_listening:
|
||||
- logger.log: "Voice assistant microphone listening"
|
||||
on_start:
|
||||
- logger.log: "Voice assistant started"
|
||||
on_stt_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant STT ended with result %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_start:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS started with text %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS ended with url %s"
|
||||
args: [x.c_str()]
|
||||
on_end:
|
||||
- logger.log: "Voice assistant ended"
|
||||
on_error:
|
||||
- logger.log:
|
||||
format: "Voice assistant error - code %s, message: %s"
|
||||
args: [code.c_str(), message.c_str()]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- voice_assistant.start
|
||||
- voice_assistant.start_continuous
|
||||
- voice_assistant.stop
|
||||
substitutions:
|
||||
i2s_lrclk_pin: GPIO16
|
||||
i2s_bclk_pin: GPIO17
|
||||
i2s_mclk_pin: GPIO15
|
||||
i2s_din_pin: GPIO13
|
||||
i2s_dout_pin: GPIO12
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
api:
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 16
|
||||
i2s_bclk_pin: 17
|
||||
i2s_mclk_pin: 15
|
||||
|
||||
microphone:
|
||||
- platform: i2s_audio
|
||||
id: mic_id_external
|
||||
i2s_din_pin: 13
|
||||
adc_type: external
|
||||
pdm: false
|
||||
|
||||
speaker:
|
||||
- platform: i2s_audio
|
||||
id: speaker_id
|
||||
dac_type: external
|
||||
i2s_dout_pin: 12
|
||||
|
||||
voice_assistant:
|
||||
microphone: mic_id_external
|
||||
speaker: speaker_id
|
||||
on_listening:
|
||||
- logger.log: "Voice assistant microphone listening"
|
||||
on_start:
|
||||
- logger.log: "Voice assistant started"
|
||||
on_stt_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant STT ended with result %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_start:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS started with text %s"
|
||||
args: [x.c_str()]
|
||||
on_tts_end:
|
||||
- logger.log:
|
||||
format: "Voice assistant TTS ended with url %s"
|
||||
args: [x.c_str()]
|
||||
on_end:
|
||||
- logger.log: "Voice assistant ended"
|
||||
on_error:
|
||||
- logger.log:
|
||||
format: "Voice assistant error - code %s, message: %s"
|
||||
args: [code.c_str(), message.c_str()]
|
||||
<<: !include common.yaml
|
||||
|
190
tests/components/waveshare_epaper/common.yaml
Normal file
190
tests/components/waveshare_epaper/common.yaml
Normal file
@ -0,0 +1,190 @@
|
||||
spi:
|
||||
- id: spi_waveshare_epaper
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13in-ttgo-b1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13in-ttgo-b74
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90in
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90inv2
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90in-dke
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.70in-b
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.70in-bv2
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 1.54in-m5coreink-m09
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13inv3
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13inv2
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 7.50in-bv3-bwr
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: ${cs_pin}
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: ${dc_pin}
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: ${busy_pin}
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: ${reset_pin}
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
@ -1,207 +1,9 @@
|
||||
---
|
||||
spi:
|
||||
- id: spi_id_1
|
||||
clk_pin:
|
||||
number: GPIO18
|
||||
mosi_pin:
|
||||
number: GPIO23
|
||||
miso_pin:
|
||||
number: GPIO19
|
||||
interface: hardware
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin: GPIO18
|
||||
dc_pin: GPIO19
|
||||
busy_pin: GPIO13
|
||||
reset_pin: GPIO14
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13in-ttgo-b1
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13in-ttgo-b74
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90in
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90inv2
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90in-dke
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.70in-b
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.70in-bv2
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 1.54in-m5coreink-m09
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13inv3
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 2.13inv2
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
model: 7.50in-bv3-bwr
|
||||
spi_id: spi_id_1
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO25
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO26
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO27
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO32
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,123 +1,9 @@
|
||||
spi:
|
||||
- id: spi_waveshare_epaper
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
cs_pin: GPIO0
|
||||
dc_pin: GPIO5
|
||||
busy_pin: GPIO3
|
||||
reset_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 7.50in-bv3-bwr
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,123 +1,9 @@
|
||||
spi:
|
||||
- id: spi_waveshare_epaper
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
cs_pin: GPIO0
|
||||
dc_pin: GPIO5
|
||||
busy_pin: GPIO3
|
||||
reset_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 7.50in-bv3-bwr
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,123 +1,9 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin: GPIO18
|
||||
dc_pin: GPIO19
|
||||
busy_pin: GPIO13
|
||||
reset_pin: GPIO14
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 7.50in-bv3-bwr
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,123 +1,9 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
cs_pin: GPIO15
|
||||
dc_pin: GPIO12
|
||||
busy_pin: GPIO5
|
||||
reset_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
model: 7.50in-bv3-bwr
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,123 +1,9 @@
|
||||
spi:
|
||||
- id: spi_bme280
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
cs_pin: GPIO5
|
||||
dc_pin: GPIO4
|
||||
busy_pin: GPIO0
|
||||
reset_pin: GPIO1
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.13in-ttgo-b1
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
reset_duration: 200ms
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.90inv2
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.70in-b
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 2.70in-bv2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 1.54in-m5coreink-m09
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: waveshare_epaper
|
||||
cs_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
dc_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
busy_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
reset_pin:
|
||||
allow_other_uses: true
|
||||
number: 5
|
||||
model: 7.50in-bv3-bwr
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
7
tests/components/whirlpool/common.yaml
Normal file
7
tests/components/whirlpool/common.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: whirlpool
|
||||
name: Whirlpool Climate
|
||||
<<: !include common.yaml
|
||||
|
7
tests/components/whynter/common.yaml
Normal file
7
tests/components/whynter/common.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: whynter
|
||||
name: Whynter Climate
|
||||
<<: !include common.yaml
|
||||
|
10
tests/components/wl_134/common.yaml
Normal file
10
tests/components/wl_134/common.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
uart:
|
||||
- id: uart_wl_134
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
text_sensor:
|
||||
- platform: wl_134
|
||||
name: Transponder Code
|
||||
reset: true
|
||||
<<: !include common.yaml
|
||||
|
8
tests/components/x9c/common.yaml
Normal file
8
tests/components/x9c/common.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: ${cs_pin}
|
||||
inc_pin: ${inc_pin}
|
||||
ud_pin: ${ud_pin}
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 13
|
||||
inc_pin: 14
|
||||
ud_pin: 15
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO13
|
||||
inc_pin: GPIO14
|
||||
ud_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 3
|
||||
inc_pin: 4
|
||||
ud_pin: 5
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO3
|
||||
inc_pin: GPIO4
|
||||
ud_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 3
|
||||
inc_pin: 4
|
||||
ud_pin: 5
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO3
|
||||
inc_pin: GPIO4
|
||||
ud_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 13
|
||||
inc_pin: 14
|
||||
ud_pin: 15
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO13
|
||||
inc_pin: GPIO14
|
||||
ud_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 13
|
||||
inc_pin: 14
|
||||
ud_pin: 15
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO13
|
||||
inc_pin: GPIO14
|
||||
ud_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,6 @@
|
||||
output:
|
||||
- platform: x9c
|
||||
id: test_x9c
|
||||
cs_pin: 3
|
||||
inc_pin: 4
|
||||
ud_pin: 5
|
||||
initial_value: 0.5
|
||||
step_delay: 50us
|
||||
substitutions:
|
||||
cs_pin: GPIO3
|
||||
inc_pin: GPIO4
|
||||
ud_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
12
tests/components/xgzp68xx/common.yaml
Normal file
12
tests/components/xgzp68xx/common.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xgzp68xx
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: xgzp68xx
|
||||
k_value: 4096
|
||||
temperature:
|
||||
name: Pressure Temperature
|
||||
pressure:
|
||||
name: Differential pressure
|
||||
<<: !include common.yaml
|
||||
|
26
tests/components/xl9535/common.yaml
Normal file
26
tests/components/xl9535/common.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_xl9535
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
xl9535:
|
||||
- id: xl9535_hub
|
||||
address: 0x20
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 0
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
name: XL9535 Pin 17
|
||||
pin:
|
||||
xl9535: xl9535_hub
|
||||
number: 17
|
||||
mode:
|
||||
input: true
|
||||
inverted: false
|
||||
<<: !include common.yaml
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user