[CI] Consolidate some tests (U, V, W, X, Y, Z) (#8210)

This commit is contained in:
Keith Burzinski
2025-02-09 15:43:17 -06:00
committed by GitHub
parent 353924257a
commit dc8646cda6
135 changed files with 1070 additions and 2701 deletions
+25
View File
@@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ec.calibrate_probe:
id: ufire_ec_board
solution: 0.146
temperature: !lambda "return id(test_sensor).state;"
- ufire_ec.reset:
i2c:
- id: i2c_ufire_ec
scl: ${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
+4 -24
View File
@@ -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
+4 -24
View File
@@ -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
+4 -24
View File
@@ -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
View File
@@ -0,0 +1,25 @@
esphome:
on_boot:
then:
- ufire_ise.calibrate_probe_high:
id: ufire_ise_sensor
solution: 7.0
- ufire_ise.calibrate_probe_low:
id: ufire_ise_sensor
solution: 4.0
- ufire_ise.reset:
i2c:
- id: i2c_ufire_ise
scl: ${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
+4 -24
View File
@@ -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
+4 -24
View File
@@ -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
View File
@@ -0,0 +1,29 @@
esphome:
on_boot:
then:
- stepper.report_position:
id: uln2003_stepper
position: 250
- stepper.set_target:
id: uln2003_stepper
target: 250
- stepper.set_acceleration:
id: uln2003_stepper
acceleration: 250 steps/s^2
- stepper.set_deceleration:
id: uln2003_stepper
deceleration: 250 steps/s^2
- stepper.set_speed:
id: uln2003_stepper
speed: 250 steps/s
stepper:
- platform: uln2003
id: uln2003_stepper
pin_a: ${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
+6 -28
View File
@@ -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
+6 -28
View File
@@ -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
+6 -28
View File
@@ -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
+6 -28
View File
@@ -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
View 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
+4 -41
View File
@@ -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
+4 -41
View File
@@ -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
+4 -41
View File
@@ -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
+4 -41
View File
@@ -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
+4 -41
View File
@@ -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
+4 -41
View File
@@ -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
View 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
+4 -14
View File
@@ -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
+4 -14
View File
@@ -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
+4 -14
View File
@@ -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
+5
View File
@@ -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
View 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
+4 -11
View File
@@ -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
+4 -11
View File
@@ -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
+4 -11
View File
@@ -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
+4 -11
View File
@@ -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
@@ -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()]

Some files were not shown because too many files have changed in this diff Show More