mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +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:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO16
|
||||||
then:
|
sda_pin: GPIO17
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO16
|
||||||
then:
|
sda_pin: GPIO17
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- ufire_ec.calibrate_probe:
|
|
||||||
id: ufire_ec_board
|
|
||||||
solution: 0.146
|
|
||||||
temperature: !lambda "return id(test_sensor).state;"
|
|
||||||
- ufire_ec.reset:
|
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO16
|
||||||
then:
|
sda_pin: GPIO17
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO16
|
||||||
then:
|
sda_pin: GPIO17
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,25 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
scl_pin: GPIO5
|
||||||
then:
|
sda_pin: GPIO4
|
||||||
- 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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO12
|
||||||
then:
|
pin_b: GPIO13
|
||||||
- stepper.report_position:
|
pin_c: GPIO14
|
||||||
id: uln2003_stepper
|
pin_d: GPIO15
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,29 +1,7 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO0
|
||||||
then:
|
pin_b: GPIO1
|
||||||
- stepper.report_position:
|
pin_c: GPIO2
|
||||||
id: uln2003_stepper
|
pin_d: GPIO3
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,29 +1,7 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO0
|
||||||
then:
|
pin_b: GPIO1
|
||||||
- stepper.report_position:
|
pin_c: GPIO2
|
||||||
id: uln2003_stepper
|
pin_d: GPIO3
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,29 +1,7 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO12
|
||||||
then:
|
pin_b: GPIO13
|
||||||
- stepper.report_position:
|
pin_c: GPIO14
|
||||||
id: uln2003_stepper
|
pin_d: GPIO15
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,29 +1,7 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO12
|
||||||
then:
|
pin_b: GPIO13
|
||||||
- stepper.report_position:
|
pin_c: GPIO14
|
||||||
id: uln2003_stepper
|
pin_d: GPIO15
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,29 +1,7 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
pin_a: GPIO0
|
||||||
then:
|
pin_b: GPIO1
|
||||||
- stepper.report_position:
|
pin_c: GPIO2
|
||||||
id: uln2003_stepper
|
pin_d: GPIO3
|
||||||
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:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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:
|
substitutions:
|
||||||
- id: uart_vbus
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
vbus:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_veml3235
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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,3 +1,8 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_veml7700
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: veml7700
|
- platform: veml7700
|
||||||
address: 0x10
|
address: 0x10
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_veml7700
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !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:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_vl53l0x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
enable_pin: 3
|
|
||||||
timeout: 200us
|
|
||||||
update_interval: 60s
|
|
||||||
|
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:
|
substitutions:
|
||||||
on_boot:
|
i2s_lrclk_pin: GPIO16
|
||||||
then:
|
i2s_bclk_pin: GPIO17
|
||||||
- voice_assistant.start
|
i2s_mclk_pin: GPIO15
|
||||||
- voice_assistant.start_continuous
|
i2s_din_pin: GPIO13
|
||||||
- voice_assistant.stop
|
i2s_dout_pin: GPIO12
|
||||||
|
|
||||||
wifi:
|
<<: !include common.yaml
|
||||||
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()]
|
|
||||||
|
@ -1,56 +1,8 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
i2s_lrclk_pin: GPIO6
|
||||||
then:
|
i2s_bclk_pin: GPIO7
|
||||||
- voice_assistant.start
|
i2s_mclk_pin: GPIO5
|
||||||
- voice_assistant.start_continuous
|
i2s_din_pin: GPIO3
|
||||||
- voice_assistant.stop
|
i2s_dout_pin: GPIO2
|
||||||
|
|
||||||
wifi:
|
<<: !include common.yaml
|
||||||
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()]
|
|
||||||
|
@ -1,56 +1,8 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
i2s_lrclk_pin: GPIO6
|
||||||
then:
|
i2s_bclk_pin: GPIO7
|
||||||
- voice_assistant.start
|
i2s_mclk_pin: GPIO5
|
||||||
- voice_assistant.start_continuous
|
i2s_din_pin: GPIO3
|
||||||
- voice_assistant.stop
|
i2s_dout_pin: GPIO2
|
||||||
|
|
||||||
wifi:
|
<<: !include common.yaml
|
||||||
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()]
|
|
||||||
|
@ -1,56 +1,8 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
i2s_lrclk_pin: GPIO16
|
||||||
then:
|
i2s_bclk_pin: GPIO17
|
||||||
- voice_assistant.start
|
i2s_mclk_pin: GPIO15
|
||||||
- voice_assistant.start_continuous
|
i2s_din_pin: GPIO13
|
||||||
- voice_assistant.stop
|
i2s_dout_pin: GPIO12
|
||||||
|
|
||||||
wifi:
|
<<: !include common.yaml
|
||||||
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()]
|
|
||||||
|
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 @@
|
|||||||
---
|
substitutions:
|
||||||
spi:
|
clk_pin: GPIO16
|
||||||
- id: spi_id_1
|
mosi_pin: GPIO17
|
||||||
clk_pin:
|
cs_pin: GPIO18
|
||||||
number: GPIO18
|
dc_pin: GPIO19
|
||||||
mosi_pin:
|
busy_pin: GPIO13
|
||||||
number: GPIO23
|
reset_pin: GPIO14
|
||||||
miso_pin:
|
|
||||||
number: GPIO19
|
|
||||||
interface: hardware
|
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,123 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_waveshare_epaper
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
cs_pin: GPIO0
|
||||||
miso_pin: 5
|
dc_pin: GPIO5
|
||||||
|
busy_pin: GPIO3
|
||||||
|
reset_pin: GPIO4
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,123 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_waveshare_epaper
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
cs_pin: GPIO0
|
||||||
miso_pin: 5
|
dc_pin: GPIO5
|
||||||
|
busy_pin: GPIO3
|
||||||
|
reset_pin: GPIO4
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,123 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
cs_pin: GPIO18
|
||||||
miso_pin: 15
|
dc_pin: GPIO19
|
||||||
|
busy_pin: GPIO13
|
||||||
|
reset_pin: GPIO14
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,123 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
cs_pin: GPIO15
|
||||||
miso_pin: 12
|
dc_pin: GPIO12
|
||||||
|
busy_pin: GPIO5
|
||||||
|
reset_pin: GPIO4
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,123 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
cs_pin: GPIO5
|
||||||
miso_pin: 4
|
dc_pin: GPIO4
|
||||||
|
busy_pin: GPIO0
|
||||||
|
reset_pin: GPIO1
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
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:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whirlpool
|
|
||||||
name: Whirlpool Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whirlpool
|
|
||||||
name: Whirlpool Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whirlpool
|
|
||||||
name: Whirlpool Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whirlpool
|
|
||||||
name: Whirlpool Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whirlpool
|
|
||||||
name: Whirlpool Climate
|
|
||||||
|
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:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whynter
|
|
||||||
name: Whynter Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whynter
|
|
||||||
name: Whynter Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whynter
|
|
||||||
name: Whynter Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whynter
|
|
||||||
name: Whynter Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: whynter
|
|
||||||
name: Whynter Climate
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_wl_134
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
text_sensor:
|
<<: !include common.yaml
|
||||||
- platform: wl_134
|
|
||||||
name: Transponder Code
|
|
||||||
reset: true
|
|
||||||
|
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:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO13
|
||||||
id: test_x9c
|
inc_pin: GPIO14
|
||||||
cs_pin: 13
|
ud_pin: GPIO15
|
||||||
inc_pin: 14
|
|
||||||
ud_pin: 15
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
output:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO3
|
||||||
id: test_x9c
|
inc_pin: GPIO4
|
||||||
cs_pin: 3
|
ud_pin: GPIO5
|
||||||
inc_pin: 4
|
|
||||||
ud_pin: 5
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
output:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO3
|
||||||
id: test_x9c
|
inc_pin: GPIO4
|
||||||
cs_pin: 3
|
ud_pin: GPIO5
|
||||||
inc_pin: 4
|
|
||||||
ud_pin: 5
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
output:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO13
|
||||||
id: test_x9c
|
inc_pin: GPIO14
|
||||||
cs_pin: 13
|
ud_pin: GPIO15
|
||||||
inc_pin: 14
|
|
||||||
ud_pin: 15
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
output:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO13
|
||||||
id: test_x9c
|
inc_pin: GPIO14
|
||||||
cs_pin: 13
|
ud_pin: GPIO15
|
||||||
inc_pin: 14
|
|
||||||
ud_pin: 15
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
output:
|
substitutions:
|
||||||
- platform: x9c
|
cs_pin: GPIO3
|
||||||
id: test_x9c
|
inc_pin: GPIO4
|
||||||
cs_pin: 3
|
ud_pin: GPIO5
|
||||||
inc_pin: 4
|
|
||||||
ud_pin: 5
|
<<: !include common.yaml
|
||||||
initial_value: 0.5
|
|
||||||
step_delay: 50us
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_xgzp68xx
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: xgzp68xx
|
|
||||||
k_value: 4096
|
|
||||||
temperature:
|
|
||||||
name: Pressure Temperature
|
|
||||||
pressure:
|
|
||||||
name: Differential pressure
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_xl9535
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
xl9535:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_xl9535
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
xl9535:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_xl9535
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
xl9535:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_xl9535
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
xl9535:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_xl9535
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
xl9535:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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