mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 17:54:13 +01:00
Add some components to the new testing framework (A part 1) (#6142)
This commit is contained in:
parent
b28821d846
commit
5e9741f51c
70 changed files with 1355 additions and 0 deletions
13
tests/components/a01nyub/test.esp32-c3-idf.yaml
Normal file
13
tests/components/a01nyub/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32-c3.yaml
Normal file
13
tests/components/a01nyub/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32-idf.yaml
Normal file
13
tests/components/a01nyub/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32.yaml
Normal file
13
tests/components/a01nyub/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp8266.yaml
Normal file
13
tests/components/a01nyub/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.rp2040.yaml
Normal file
13
tests/components/a01nyub/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a01nyub
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a01nyub
|
||||||
|
id: a01nyub_sensor
|
||||||
|
name: a01nyub Distance
|
||||||
|
uart_id: uart_a01nyub
|
13
tests/components/a02yyuw/test.esp32-c3-idf.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32-c3.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32-idf.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32.yaml
Normal file
13
tests/components/a02yyuw/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 17
|
||||||
|
rx_pin:
|
||||||
|
number: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp8266.yaml
Normal file
13
tests/components/a02yyuw/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.rp2040.yaml
Normal file
13
tests/components/a02yyuw/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_a02yyuw
|
||||||
|
tx_pin:
|
||||||
|
number: 4
|
||||||
|
rx_pin:
|
||||||
|
number: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: a02yyuw
|
||||||
|
id: a02yyuw_sensor
|
||||||
|
name: a02yyuw Distance
|
||||||
|
uart_id: uart_a02yyuw
|
12
tests/components/a4988/test.esp32-c3-idf.yaml
Normal file
12
tests/components/a4988/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 2
|
||||||
|
dir_pin:
|
||||||
|
number: 3
|
||||||
|
sleep_pin:
|
||||||
|
number: 5
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32-c3.yaml
Normal file
12
tests/components/a4988/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 2
|
||||||
|
dir_pin:
|
||||||
|
number: 3
|
||||||
|
sleep_pin:
|
||||||
|
number: 5
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32-idf.yaml
Normal file
12
tests/components/a4988/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 22
|
||||||
|
dir_pin:
|
||||||
|
number: 23
|
||||||
|
sleep_pin:
|
||||||
|
number: 25
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32.yaml
Normal file
12
tests/components/a4988/test.esp32.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 22
|
||||||
|
dir_pin:
|
||||||
|
number: 23
|
||||||
|
sleep_pin:
|
||||||
|
number: 25
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp8266.yaml
Normal file
12
tests/components/a4988/test.esp8266.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 1
|
||||||
|
dir_pin:
|
||||||
|
number: 2
|
||||||
|
sleep_pin:
|
||||||
|
number: 5
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.rp2040.yaml
Normal file
12
tests/components/a4988/test.rp2040.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
stepper:
|
||||||
|
- platform: a4988
|
||||||
|
id: a4988_stepper
|
||||||
|
step_pin:
|
||||||
|
number: 2
|
||||||
|
dir_pin:
|
||||||
|
number: 3
|
||||||
|
sleep_pin:
|
||||||
|
number: 5
|
||||||
|
max_speed: 250 steps/s
|
||||||
|
acceleration: 100 steps/s^2
|
||||||
|
deceleration: 200 steps/s^2
|
21
tests/components/absolute_humidity/test.esp32-c3-idf.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
21
tests/components/absolute_humidity/test.esp32-c3.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
21
tests/components/absolute_humidity/test.esp32-idf.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
21
tests/components/absolute_humidity/test.esp32.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
21
tests/components/absolute_humidity/test.esp8266.yaml
Normal file
21
tests/components/absolute_humidity/test.esp8266.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
21
tests/components/absolute_humidity/test.rp2040.yaml
Normal file
21
tests/components/absolute_humidity/test.rp2040.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
7
tests/components/ac_dimmer/test.esp32-c3.yaml
Normal file
7
tests/components/ac_dimmer/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
output:
|
||||||
|
- platform: ac_dimmer
|
||||||
|
id: ac_dimmer_1
|
||||||
|
gate_pin:
|
||||||
|
number: 5
|
||||||
|
zero_cross_pin:
|
||||||
|
number: 6
|
7
tests/components/ac_dimmer/test.esp32.yaml
Normal file
7
tests/components/ac_dimmer/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
output:
|
||||||
|
- platform: ac_dimmer
|
||||||
|
id: ac_dimmer_1
|
||||||
|
gate_pin:
|
||||||
|
number: 12
|
||||||
|
zero_cross_pin:
|
||||||
|
number: 13
|
7
tests/components/ac_dimmer/test.esp8266.yaml
Normal file
7
tests/components/ac_dimmer/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
output:
|
||||||
|
- platform: ac_dimmer
|
||||||
|
id: ac_dimmer_1
|
||||||
|
gate_pin:
|
||||||
|
number: 5
|
||||||
|
zero_cross_pin:
|
||||||
|
number: 4
|
7
tests/components/ac_dimmer/test.rp2040.yaml
Normal file
7
tests/components/ac_dimmer/test.rp2040.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
output:
|
||||||
|
- platform: ac_dimmer
|
||||||
|
id: ac_dimmer_1
|
||||||
|
gate_pin:
|
||||||
|
number: 5
|
||||||
|
zero_cross_pin:
|
||||||
|
number: 6
|
14
tests/components/adc128s102/test.esp32-c3-idf.yaml
Normal file
14
tests/components/adc128s102/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 8
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
14
tests/components/adc128s102/test.esp32-c3.yaml
Normal file
14
tests/components/adc128s102/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 8
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
14
tests/components/adc128s102/test.esp32-idf.yaml
Normal file
14
tests/components/adc128s102/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 12
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
14
tests/components/adc128s102/test.esp32.yaml
Normal file
14
tests/components/adc128s102/test.esp32.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 12
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
14
tests/components/adc128s102/test.esp8266.yaml
Normal file
14
tests/components/adc128s102/test.esp8266.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 14
|
||||||
|
mosi_pin: 13
|
||||||
|
miso_pin: 12
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 15
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
14
tests/components/adc128s102/test.rp2040.yaml
Normal file
14
tests/components/adc128s102/test.rp2040.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_adc128s102
|
||||||
|
clk_pin: 2
|
||||||
|
mosi_pin: 3
|
||||||
|
miso_pin: 4
|
||||||
|
|
||||||
|
adc128s102:
|
||||||
|
cs_pin: 5
|
||||||
|
id: adc128s102_adc
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: adc128s102
|
||||||
|
id: adc128s102_channel_0
|
||||||
|
channel: 0
|
31
tests/components/addressable_light/test.esp32-c3-idf.yaml
Normal file
31
tests/components/addressable_light/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
light:
|
||||||
|
- platform: esp32_rmt_led_strip
|
||||||
|
id: led_matrix_32x8
|
||||||
|
default_transition_length: 500ms
|
||||||
|
chipset: ws2812
|
||||||
|
rgb_order: GRB
|
||||||
|
num_leds: 256
|
||||||
|
pin: 2
|
||||||
|
rmt_channel: 0
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: addressable_light
|
||||||
|
id: led_matrix_32x8_display
|
||||||
|
addressable_light_id: led_matrix_32x8
|
||||||
|
width: 32
|
||||||
|
height: 8
|
||||||
|
pixel_mapper: |-
|
||||||
|
if (x % 2 == 0) {
|
||||||
|
return (x * 8) + y;
|
||||||
|
}
|
||||||
|
return (x * 8) + (7 - y);
|
||||||
|
lambda: |-
|
||||||
|
Color red = Color(0xFF0000);
|
||||||
|
Color green = Color(0x00FF00);
|
||||||
|
Color blue = Color(0x0000FF);
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||||
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||||
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||||
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||||
|
rotation: 0°
|
||||||
|
update_interval: 16ms
|
31
tests/components/addressable_light/test.esp32-c3.yaml
Normal file
31
tests/components/addressable_light/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
light:
|
||||||
|
- platform: esp32_rmt_led_strip
|
||||||
|
id: led_matrix_32x8
|
||||||
|
default_transition_length: 500ms
|
||||||
|
chipset: ws2812
|
||||||
|
rgb_order: GRB
|
||||||
|
num_leds: 256
|
||||||
|
pin: 2
|
||||||
|
rmt_channel: 0
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: addressable_light
|
||||||
|
id: led_matrix_32x8_display
|
||||||
|
addressable_light_id: led_matrix_32x8
|
||||||
|
width: 32
|
||||||
|
height: 8
|
||||||
|
pixel_mapper: |-
|
||||||
|
if (x % 2 == 0) {
|
||||||
|
return (x * 8) + y;
|
||||||
|
}
|
||||||
|
return (x * 8) + (7 - y);
|
||||||
|
lambda: |-
|
||||||
|
Color red = Color(0xFF0000);
|
||||||
|
Color green = Color(0x00FF00);
|
||||||
|
Color blue = Color(0x0000FF);
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||||
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||||
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||||
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||||
|
rotation: 0°
|
||||||
|
update_interval: 16ms
|
31
tests/components/addressable_light/test.esp32-idf.yaml
Normal file
31
tests/components/addressable_light/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
light:
|
||||||
|
- platform: esp32_rmt_led_strip
|
||||||
|
id: led_matrix_32x8
|
||||||
|
default_transition_length: 500ms
|
||||||
|
chipset: ws2812
|
||||||
|
rgb_order: GRB
|
||||||
|
num_leds: 256
|
||||||
|
pin: 2
|
||||||
|
rmt_channel: 0
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: addressable_light
|
||||||
|
id: led_matrix_32x8_display
|
||||||
|
addressable_light_id: led_matrix_32x8
|
||||||
|
width: 32
|
||||||
|
height: 8
|
||||||
|
pixel_mapper: |-
|
||||||
|
if (x % 2 == 0) {
|
||||||
|
return (x * 8) + y;
|
||||||
|
}
|
||||||
|
return (x * 8) + (7 - y);
|
||||||
|
lambda: |-
|
||||||
|
Color red = Color(0xFF0000);
|
||||||
|
Color green = Color(0x00FF00);
|
||||||
|
Color blue = Color(0x0000FF);
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||||
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||||
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||||
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||||
|
rotation: 0°
|
||||||
|
update_interval: 16ms
|
32
tests/components/addressable_light/test.esp32.yaml
Normal file
32
tests/components/addressable_light/test.esp32.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
light:
|
||||||
|
- platform: fastled_clockless
|
||||||
|
id: led_matrix_32x8
|
||||||
|
name: led_matrix_32x8
|
||||||
|
chipset: WS2812B
|
||||||
|
pin: 2
|
||||||
|
num_leds: 256
|
||||||
|
rgb_order: GRB
|
||||||
|
default_transition_length: 0s
|
||||||
|
color_correct: [50%, 50%, 50%]
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: addressable_light
|
||||||
|
id: led_matrix_32x8_display
|
||||||
|
addressable_light_id: led_matrix_32x8
|
||||||
|
width: 32
|
||||||
|
height: 8
|
||||||
|
pixel_mapper: |-
|
||||||
|
if (x % 2 == 0) {
|
||||||
|
return (x * 8) + y;
|
||||||
|
}
|
||||||
|
return (x * 8) + (7 - y);
|
||||||
|
lambda: |-
|
||||||
|
Color red = Color(0xFF0000);
|
||||||
|
Color green = Color(0x00FF00);
|
||||||
|
Color blue = Color(0x0000FF);
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||||
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||||
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||||
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||||
|
rotation: 0°
|
||||||
|
update_interval: 16ms
|
34
tests/components/ade7953_i2c/test.esp32-c3-idf.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 6
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32-c3.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 6
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32-idf.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 15
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 15
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp8266.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp8266.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 15
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.rp2040.yaml
Normal file
34
tests/components/ade7953_i2c/test.rp2040.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ade7953
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_i2c
|
||||||
|
irq_pin: 6
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-c3-idf.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 8
|
||||||
|
irq_pin: 9
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-c3.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 8
|
||||||
|
irq_pin: 9
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-idf.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 5
|
||||||
|
irq_pin: 13
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 5
|
||||||
|
irq_pin: 13
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp8266.yaml
Normal file
36
tests/components/ade7953_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 14
|
||||||
|
mosi_pin: 13
|
||||||
|
miso_pin: 12
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 15
|
||||||
|
irq_pin: 5
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
36
tests/components/ade7953_spi/test.rp2040.yaml
Normal file
36
tests/components/ade7953_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_ade7953
|
||||||
|
clk_pin: 2
|
||||||
|
mosi_pin: 3
|
||||||
|
miso_pin: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ade7953_spi
|
||||||
|
cs_pin: 5
|
||||||
|
irq_pin: 6
|
||||||
|
voltage:
|
||||||
|
name: ADE7953 Voltage
|
||||||
|
id: ade7953_voltage
|
||||||
|
current_a:
|
||||||
|
name: ADE7953 Current A
|
||||||
|
id: ade7953_current_a
|
||||||
|
current_b:
|
||||||
|
name: ADE7953 Current B
|
||||||
|
id: ade7953_current_b
|
||||||
|
power_factor_a:
|
||||||
|
name: ADE7953 Power Factor A
|
||||||
|
power_factor_b:
|
||||||
|
name: ADE7953 Power Factor B
|
||||||
|
apparent_power_a:
|
||||||
|
name: ADE7953 Apparent Power A
|
||||||
|
apparent_power_b:
|
||||||
|
name: ADE7953 Apparent Power B
|
||||||
|
active_power_a:
|
||||||
|
name: ADE7953 Active Power A
|
||||||
|
active_power_b:
|
||||||
|
name: ADE7953 Active Power B
|
||||||
|
reactive_power_a:
|
||||||
|
name: ADE7953 Reactive Power A
|
||||||
|
reactive_power_b:
|
||||||
|
name: ADE7953 Reactive Power B
|
||||||
|
update_interval: 1s
|
13
tests/components/ads1115/test.esp32-c3-idf.yaml
Normal file
13
tests/components/ads1115/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32-c3.yaml
Normal file
13
tests/components/ads1115/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32-idf.yaml
Normal file
13
tests/components/ads1115/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32.yaml
Normal file
13
tests/components/ads1115/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp8266.yaml
Normal file
13
tests/components/ads1115/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
13
tests/components/ads1115/test.rp2040.yaml
Normal file
13
tests/components/ads1115/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_ads1115
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
ads1115:
|
||||||
|
address: 0x48
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ads1115
|
||||||
|
multiplexer: A0_A1
|
||||||
|
gain: 1.024
|
||||||
|
id: ads1115_sensor
|
11
tests/components/aht10/test.esp32-c3-idf.yaml
Normal file
11
tests/components/aht10/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
11
tests/components/aht10/test.esp32-c3.yaml
Normal file
11
tests/components/aht10/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
11
tests/components/aht10/test.esp32-idf.yaml
Normal file
11
tests/components/aht10/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
11
tests/components/aht10/test.esp32.yaml
Normal file
11
tests/components/aht10/test.esp32.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
11
tests/components/aht10/test.esp8266.yaml
Normal file
11
tests/components/aht10/test.esp8266.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
11
tests/components/aht10/test.rp2040.yaml
Normal file
11
tests/components/aht10/test.rp2040.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
i2c:
|
||||||
|
- id: i2c_aht10
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: aht10
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
22
tests/components/airthings_wave_mini/test.esp32-c3-idf.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthingsmini01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswm
|
||||||
|
platform: airthings_wave_mini
|
||||||
|
ble_client_id: airthingsmini01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Mini Temperature
|
||||||
|
humidity:
|
||||||
|
name: Wave Mini Humidity
|
||||||
|
pressure:
|
||||||
|
name: Wave Mini Pressure
|
||||||
|
tvoc:
|
||||||
|
name: Wave Mini VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32-c3.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthingsmini01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswm
|
||||||
|
platform: airthings_wave_mini
|
||||||
|
ble_client_id: airthingsmini01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Mini Temperature
|
||||||
|
humidity:
|
||||||
|
name: Wave Mini Humidity
|
||||||
|
pressure:
|
||||||
|
name: Wave Mini Pressure
|
||||||
|
tvoc:
|
||||||
|
name: Wave Mini VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32-idf.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthingsmini01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswm
|
||||||
|
platform: airthings_wave_mini
|
||||||
|
ble_client_id: airthingsmini01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Mini Temperature
|
||||||
|
humidity:
|
||||||
|
name: Wave Mini Humidity
|
||||||
|
pressure:
|
||||||
|
name: Wave Mini Pressure
|
||||||
|
tvoc:
|
||||||
|
name: Wave Mini VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthingsmini01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswm
|
||||||
|
platform: airthings_wave_mini
|
||||||
|
ble_client_id: airthingsmini01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Mini Temperature
|
||||||
|
humidity:
|
||||||
|
name: Wave Mini Humidity
|
||||||
|
pressure:
|
||||||
|
name: Wave Mini Pressure
|
||||||
|
tvoc:
|
||||||
|
name: Wave Mini VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Mini Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-c3-idf.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthings01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswp
|
||||||
|
platform: airthings_wave_plus
|
||||||
|
ble_client_id: airthings01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Plus Temperature
|
||||||
|
radon:
|
||||||
|
name: Wave Plus Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: Wave Plus Radon Long Term
|
||||||
|
pressure:
|
||||||
|
name: Wave Plus Pressure
|
||||||
|
humidity:
|
||||||
|
name: Wave Plus Humidity
|
||||||
|
co2:
|
||||||
|
name: Wave Plus CO2
|
||||||
|
tvoc:
|
||||||
|
name: Wave Plus VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-c3.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthings01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswp
|
||||||
|
platform: airthings_wave_plus
|
||||||
|
ble_client_id: airthings01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Plus Temperature
|
||||||
|
radon:
|
||||||
|
name: Wave Plus Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: Wave Plus Radon Long Term
|
||||||
|
pressure:
|
||||||
|
name: Wave Plus Pressure
|
||||||
|
humidity:
|
||||||
|
name: Wave Plus Humidity
|
||||||
|
co2:
|
||||||
|
name: Wave Plus CO2
|
||||||
|
tvoc:
|
||||||
|
name: Wave Plus VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-idf.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthings01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswp
|
||||||
|
platform: airthings_wave_plus
|
||||||
|
ble_client_id: airthings01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Plus Temperature
|
||||||
|
radon:
|
||||||
|
name: Wave Plus Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: Wave Plus Radon Long Term
|
||||||
|
pressure:
|
||||||
|
name: Wave Plus Pressure
|
||||||
|
humidity:
|
||||||
|
name: Wave Plus Humidity
|
||||||
|
co2:
|
||||||
|
name: Wave Plus CO2
|
||||||
|
tvoc:
|
||||||
|
name: Wave Plus VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthings01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswp
|
||||||
|
platform: airthings_wave_plus
|
||||||
|
ble_client_id: airthings01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Plus Temperature
|
||||||
|
radon:
|
||||||
|
name: Wave Plus Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: Wave Plus Radon Long Term
|
||||||
|
pressure:
|
||||||
|
name: Wave Plus Pressure
|
||||||
|
humidity:
|
||||||
|
name: Wave Plus Humidity
|
||||||
|
co2:
|
||||||
|
name: Wave Plus CO2
|
||||||
|
tvoc:
|
||||||
|
name: Wave Plus VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Plus Battery Voltage
|
Loading…
Reference in a new issue