mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Add some components to the new testing framework (R) (#6219)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
eb89d99999
commit
7e5b100b77
3
tests/components/radon_eye_ble/test.esp32-c3-idf.yaml
Normal file
3
tests/components/radon_eye_ble/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
radon_eye_ble:
|
3
tests/components/radon_eye_ble/test.esp32-c3.yaml
Normal file
3
tests/components/radon_eye_ble/test.esp32-c3.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
radon_eye_ble:
|
3
tests/components/radon_eye_ble/test.esp32-idf.yaml
Normal file
3
tests/components/radon_eye_ble/test.esp32-idf.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
radon_eye_ble:
|
3
tests/components/radon_eye_ble/test.esp32.yaml
Normal file
3
tests/components/radon_eye_ble/test.esp32.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
radon_eye_ble:
|
14
tests/components/radon_eye_rd200/test.esp32-c3-idf.yaml
Normal file
14
tests/components/radon_eye_rd200/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: radon_eye_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: radon_eye_rd200
|
||||||
|
ble_client_id: radon_eye_blec
|
||||||
|
radon:
|
||||||
|
name: RD200 Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: RD200 Radon Long Term
|
||||||
|
update_interval: 10min
|
14
tests/components/radon_eye_rd200/test.esp32-c3.yaml
Normal file
14
tests/components/radon_eye_rd200/test.esp32-c3.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: radon_eye_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: radon_eye_rd200
|
||||||
|
ble_client_id: radon_eye_blec
|
||||||
|
radon:
|
||||||
|
name: RD200 Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: RD200 Radon Long Term
|
||||||
|
update_interval: 10min
|
14
tests/components/radon_eye_rd200/test.esp32-idf.yaml
Normal file
14
tests/components/radon_eye_rd200/test.esp32-idf.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: radon_eye_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: radon_eye_rd200
|
||||||
|
ble_client_id: radon_eye_blec
|
||||||
|
radon:
|
||||||
|
name: RD200 Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: RD200 Radon Long Term
|
||||||
|
update_interval: 10min
|
14
tests/components/radon_eye_rd200/test.esp32.yaml
Normal file
14
tests/components/radon_eye_rd200/test.esp32.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: radon_eye_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: radon_eye_rd200
|
||||||
|
ble_client_id: radon_eye_blec
|
||||||
|
radon:
|
||||||
|
name: RD200 Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: RD200 Radon Long Term
|
||||||
|
update_interval: 10min
|
17
tests/components/rc522_i2c/test.esp32-c3-idf.yaml
Normal file
17
tests/components/rc522_i2c/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
17
tests/components/rc522_i2c/test.esp32-c3.yaml
Normal file
17
tests/components/rc522_i2c/test.esp32-c3.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
17
tests/components/rc522_i2c/test.esp32-idf.yaml
Normal file
17
tests/components/rc522_i2c/test.esp32-idf.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
17
tests/components/rc522_i2c/test.esp32.yaml
Normal file
17
tests/components/rc522_i2c/test.esp32.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 16
|
||||||
|
sda: 17
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
17
tests/components/rc522_i2c/test.esp8266.yaml
Normal file
17
tests/components/rc522_i2c/test.esp8266.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
17
tests/components/rc522_i2c/test.rp2040.yaml
Normal file
17
tests/components/rc522_i2c/test.rp2040.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_rc522
|
||||||
|
scl: 5
|
||||||
|
sda: 4
|
||||||
|
|
||||||
|
rc522_i2c:
|
||||||
|
- id: rc522_nfcc
|
||||||
|
update_interval: 1s
|
||||||
|
on_tag:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: RC522 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.esp32-c3-idf.yaml
Normal file
15
tests/components/rc522_spi/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 4
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.esp32-c3.yaml
Normal file
15
tests/components/rc522_spi/test.esp32-c3.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 4
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.esp32-idf.yaml
Normal file
15
tests/components/rc522_spi/test.esp32-idf.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 12
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.esp32.yaml
Normal file
15
tests/components/rc522_spi/test.esp32.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 12
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.esp8266.yaml
Normal file
15
tests/components/rc522_spi/test.esp8266.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 14
|
||||||
|
mosi_pin: 13
|
||||||
|
miso_pin: 12
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 15
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
15
tests/components/rc522_spi/test.rp2040.yaml
Normal file
15
tests/components/rc522_spi/test.rp2040.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_rc522
|
||||||
|
clk_pin: 2
|
||||||
|
mosi_pin: 3
|
||||||
|
miso_pin: 4
|
||||||
|
|
||||||
|
rc522_spi:
|
||||||
|
id: rc522_nfcc
|
||||||
|
cs_pin: 6
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rc522
|
||||||
|
rc522_id: rc522_nfcc
|
||||||
|
name: PN532 NFC Tag
|
||||||
|
uid: 74-10-37-94
|
12
tests/components/rdm6300/test.esp32-c3-idf.yaml
Normal file
12
tests/components/rdm6300/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/rdm6300/test.esp32-c3.yaml
Normal file
12
tests/components/rdm6300/test.esp32-c3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/rdm6300/test.esp32-idf.yaml
Normal file
12
tests/components/rdm6300/test.esp32-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/rdm6300/test.esp32.yaml
Normal file
12
tests/components/rdm6300/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/rdm6300/test.esp8266.yaml
Normal file
12
tests/components/rdm6300/test.esp8266.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/rdm6300/test.rp2040.yaml
Normal file
12
tests/components/rdm6300/test.rp2040.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rdm6300
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rdm6300:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: rdm6300
|
||||||
|
uid: 7616525
|
||||||
|
name: RDM6300 NFC Tag
|
12
tests/components/resistance/test.esp32-c3.yaml
Normal file
12
tests/components/resistance/test.esp32-c3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: 4
|
||||||
|
attenuation: 11db
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
12
tests/components/resistance/test.esp32-idf.yaml
Normal file
12
tests/components/resistance/test.esp32-idf.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: 32
|
||||||
|
attenuation: 11db
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
12
tests/components/resistance/test.esp32-s2.yaml
Normal file
12
tests/components/resistance/test.esp32-s2.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: 1
|
||||||
|
attenuation: 11db
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
12
tests/components/resistance/test.esp32-s3.yaml
Normal file
12
tests/components/resistance/test.esp32-s3.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: 1
|
||||||
|
attenuation: 11db
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
12
tests/components/resistance/test.esp32.yaml
Normal file
12
tests/components/resistance/test.esp32.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: 32
|
||||||
|
attenuation: 11db
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
11
tests/components/resistance/test.esp8266.yaml
Normal file
11
tests/components/resistance/test.esp8266.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: VCC
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
12
tests/components/resistance/test.rp2040.yaml
Normal file
12
tests/components/resistance/test.rp2040.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
name: VSYS
|
||||||
|
pin: VCC
|
||||||
|
- platform: resistance
|
||||||
|
sensor: my_sensor
|
||||||
|
configuration: DOWNSTREAM
|
||||||
|
resistor: 10kΩ
|
||||||
|
reference_voltage: 3.3V
|
||||||
|
name: Resistance
|
||||||
|
id: resist
|
7
tests/components/restart/test.esp32-c3-idf.yaml
Normal file
7
tests/components/restart/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
7
tests/components/restart/test.esp32-c3.yaml
Normal file
7
tests/components/restart/test.esp32-c3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
7
tests/components/restart/test.esp32-idf.yaml
Normal file
7
tests/components/restart/test.esp32-idf.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
7
tests/components/restart/test.esp32.yaml
Normal file
7
tests/components/restart/test.esp32.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
7
tests/components/restart/test.esp8266.yaml
Normal file
7
tests/components/restart/test.esp8266.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
7
tests/components/restart/test.rp2040.yaml
Normal file
7
tests/components/restart/test.rp2040.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Button
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: Restart Switch
|
35
tests/components/rf_bridge/test.esp32-c3-idf.yaml
Normal file
35
tests/components/rf_bridge/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
35
tests/components/rf_bridge/test.esp32-c3.yaml
Normal file
35
tests/components/rf_bridge/test.esp32-c3.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
35
tests/components/rf_bridge/test.esp32-idf.yaml
Normal file
35
tests/components/rf_bridge/test.esp32-idf.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
35
tests/components/rf_bridge/test.esp32.yaml
Normal file
35
tests/components/rf_bridge/test.esp32.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
35
tests/components/rf_bridge/test.esp8266.yaml
Normal file
35
tests/components/rf_bridge/test.esp8266.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
35
tests/components/rf_bridge/test.rp2040.yaml
Normal file
35
tests/components/rf_bridge/test.rp2040.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_rf_bridge
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
rf_bridge:
|
||||||
|
on_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
test = data.sync;
|
||||||
|
test = data.low;
|
||||||
|
test = data.high;
|
||||||
|
test = data.code;
|
||||||
|
- rf_bridge.send_code:
|
||||||
|
sync: 0x1234
|
||||||
|
low: 0x1234
|
||||||
|
high: 0x1234
|
||||||
|
code: 0x123456
|
||||||
|
- rf_bridge.learn
|
||||||
|
on_advanced_code_received:
|
||||||
|
- lambda: |-
|
||||||
|
uint32_t test;
|
||||||
|
std::string test_code;
|
||||||
|
test = data.length;
|
||||||
|
test = data.protocol;
|
||||||
|
test_code = data.code;
|
||||||
|
- rf_bridge.start_advanced_sniffing:
|
||||||
|
- rf_bridge.stop_advanced_sniffing:
|
||||||
|
- rf_bridge.send_advanced_code:
|
||||||
|
length: 0x04
|
||||||
|
protocol: 0x01
|
||||||
|
code: "ABC123"
|
||||||
|
- rf_bridge.send_raw:
|
||||||
|
raw: "AAA5070008001000ABC12355"
|
18
tests/components/rgb/test.esp32-c3-idf.yaml
Normal file
18
tests/components/rgb/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
18
tests/components/rgb/test.esp32-c3.yaml
Normal file
18
tests/components/rgb/test.esp32-c3.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
18
tests/components/rgb/test.esp32-idf.yaml
Normal file
18
tests/components/rgb/test.esp32-idf.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
18
tests/components/rgb/test.esp32.yaml
Normal file
18
tests/components/rgb/test.esp32.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
18
tests/components/rgb/test.esp8266.yaml
Normal file
18
tests/components/rgb/test.esp8266.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
18
tests/components/rgb/test.rp2040.yaml
Normal file
18
tests/components/rgb/test.rp2040.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgb
|
||||||
|
name: RGB Light
|
||||||
|
id: rgb_light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
28
tests/components/rgbct/test.esp32-c3-idf.yaml
Normal file
28
tests/components/rgbct/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 5
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbct/test.esp32-c3.yaml
Normal file
28
tests/components/rgbct/test.esp32-c3.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 5
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbct/test.esp32-idf.yaml
Normal file
28
tests/components/rgbct/test.esp32-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbct/test.esp32.yaml
Normal file
28
tests/components/rgbct/test.esp32.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbct/test.esp8266.yaml
Normal file
28
tests/components/rgbct/test.esp8266.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbct/test.rp2040.yaml
Normal file
28
tests/components/rgbct/test.rp2040.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbct
|
||||||
|
name: RGBCT Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
color_temperature: light_output_4
|
||||||
|
white_brightness: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.esp32-c3-idf.yaml
Normal file
22
tests/components/rgbw/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.esp32-c3.yaml
Normal file
22
tests/components/rgbw/test.esp32-c3.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.esp32-idf.yaml
Normal file
22
tests/components/rgbw/test.esp32-idf.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.esp32.yaml
Normal file
22
tests/components/rgbw/test.esp32.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.esp8266.yaml
Normal file
22
tests/components/rgbw/test.esp8266.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
22
tests/components/rgbw/test.rp2040.yaml
Normal file
22
tests/components/rgbw/test.rp2040.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbw
|
||||||
|
name: RGBW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
white: light_output_4
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.esp32-c3-idf.yaml
Normal file
28
tests/components/rgbww/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 5
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.esp32-c3.yaml
Normal file
28
tests/components/rgbww/test.esp32-c3.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 1
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 2
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 3
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 4
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 5
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.esp32-idf.yaml
Normal file
28
tests/components/rgbww/test.esp32-idf.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.esp32.yaml
Normal file
28
tests/components/rgbww/test.esp32.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: ledc
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.esp8266.yaml
Normal file
28
tests/components/rgbww/test.esp8266.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
28
tests/components/rgbww/test.rp2040.yaml
Normal file
28
tests/components/rgbww/test.rp2040.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 12
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 13
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_3
|
||||||
|
pin: 14
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_4
|
||||||
|
pin: 15
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_5
|
||||||
|
pin: 16
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: rgbww
|
||||||
|
name: RGBWW Light
|
||||||
|
red: light_output_1
|
||||||
|
green: light_output_2
|
||||||
|
blue: light_output_3
|
||||||
|
cold_white: light_output_4
|
||||||
|
warm_white: light_output_5
|
||||||
|
cold_white_color_temperature: 153 mireds
|
||||||
|
warm_white_color_temperature: 500 mireds
|
||||||
|
color_interlock: true
|
25
tests/components/rotary_encoder/test.esp32-c3-idf.yaml
Normal file
25
tests/components/rotary_encoder/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 3
|
||||||
|
pin_b: 4
|
||||||
|
pin_reset: 5
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
25
tests/components/rotary_encoder/test.esp32-c3.yaml
Normal file
25
tests/components/rotary_encoder/test.esp32-c3.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 3
|
||||||
|
pin_b: 4
|
||||||
|
pin_reset: 5
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
25
tests/components/rotary_encoder/test.esp32-idf.yaml
Normal file
25
tests/components/rotary_encoder/test.esp32-idf.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 13
|
||||||
|
pin_b: 14
|
||||||
|
pin_reset: 15
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
25
tests/components/rotary_encoder/test.esp32.yaml
Normal file
25
tests/components/rotary_encoder/test.esp32.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 13
|
||||||
|
pin_b: 14
|
||||||
|
pin_reset: 15
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
25
tests/components/rotary_encoder/test.esp8266.yaml
Normal file
25
tests/components/rotary_encoder/test.esp8266.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 13
|
||||||
|
pin_b: 14
|
||||||
|
pin_reset: 15
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
25
tests/components/rotary_encoder/test.rp2040.yaml
Normal file
25
tests/components/rotary_encoder/test.rp2040.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rotary_encoder
|
||||||
|
name: Rotary Encoder
|
||||||
|
id: rotary_encoder1
|
||||||
|
pin_a: 13
|
||||||
|
pin_b: 14
|
||||||
|
pin_reset: 15
|
||||||
|
filters:
|
||||||
|
- or:
|
||||||
|
- debounce: 0.1s
|
||||||
|
- delta: 10
|
||||||
|
resolution: 4
|
||||||
|
min_value: -10
|
||||||
|
max_value: 30
|
||||||
|
on_value:
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: 10
|
||||||
|
- sensor.rotary_encoder.set_value:
|
||||||
|
id: rotary_encoder1
|
||||||
|
value: !lambda "return -1;"
|
||||||
|
on_clockwise:
|
||||||
|
- logger.log: Clockwise
|
||||||
|
on_anticlockwise:
|
||||||
|
- logger.log: Anticlockwise
|
18
tests/components/rp2040_pio_led_strip/test.rp2040.yaml
Normal file
18
tests/components/rp2040_pio_led_strip/test.rp2040.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
light:
|
||||||
|
- platform: rp2040_pio_led_strip
|
||||||
|
id: led_strip
|
||||||
|
pin: 4
|
||||||
|
num_leds: 60
|
||||||
|
pio: 0
|
||||||
|
rgb_order: GRB
|
||||||
|
chipset: WS2812
|
||||||
|
- platform: rp2040_pio_led_strip
|
||||||
|
id: led_strip_custom_timings
|
||||||
|
pin: 5
|
||||||
|
num_leds: 60
|
||||||
|
pio: 1
|
||||||
|
rgb_order: GRB
|
||||||
|
bit0_high: .1us
|
||||||
|
bit0_low: 1.2us
|
||||||
|
bit1_high: .69us
|
||||||
|
bit1_low: .4us
|
7
tests/components/rp2040_pwm/test.rp2040.yaml
Normal file
7
tests/components/rp2040_pwm/test.rp2040.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_1
|
||||||
|
pin: 2
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: light_output_2
|
||||||
|
pin: 3
|
16
tests/components/rtttl/test.esp32-c3-idf.yaml
Normal file
16
tests/components/rtttl/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 1
|
||||||
|
frequency: 1500Hz
|
||||||
|
channel: 14
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
16
tests/components/rtttl/test.esp32-c3.yaml
Normal file
16
tests/components/rtttl/test.esp32-c3.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 1
|
||||||
|
frequency: 1500Hz
|
||||||
|
channel: 14
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
16
tests/components/rtttl/test.esp32-idf.yaml
Normal file
16
tests/components/rtttl/test.esp32-idf.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 13
|
||||||
|
frequency: 1500Hz
|
||||||
|
channel: 14
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
16
tests/components/rtttl/test.esp32.yaml
Normal file
16
tests/components/rtttl/test.esp32.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 13
|
||||||
|
frequency: 1500Hz
|
||||||
|
channel: 14
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
15
tests/components/rtttl/test.esp8266.yaml
Normal file
15
tests/components/rtttl/test.esp8266.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: esp8266_pwm
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 13
|
||||||
|
frequency: 1500Hz
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
15
tests/components/rtttl/test.rp2040.yaml
Normal file
15
tests/components/rtttl/test.rp2040.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- rtttl.play: 'siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e'
|
||||||
|
- rtttl.stop
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: rp2040_pwm
|
||||||
|
id: rtttl_output
|
||||||
|
pin: 3
|
||||||
|
frequency: 1500Hz
|
||||||
|
max_power: 0.5
|
||||||
|
|
||||||
|
rtttl:
|
||||||
|
output: rtttl_output
|
3
tests/components/ruuvi_ble/test.esp32-c3-idf.yaml
Normal file
3
tests/components/ruuvi_ble/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ruuvi_ble:
|
3
tests/components/ruuvi_ble/test.esp32-c3.yaml
Normal file
3
tests/components/ruuvi_ble/test.esp32-c3.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ruuvi_ble:
|
3
tests/components/ruuvi_ble/test.esp32-idf.yaml
Normal file
3
tests/components/ruuvi_ble/test.esp32-idf.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ruuvi_ble:
|
3
tests/components/ruuvi_ble/test.esp32.yaml
Normal file
3
tests/components/ruuvi_ble/test.esp32.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ruuvi_ble:
|
27
tests/components/ruuvitag/test.esp32-c3-idf.yaml
Normal file
27
tests/components/ruuvitag/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ruuvitag
|
||||||
|
mac_address: FF:56:D3:2F:7D:E8
|
||||||
|
humidity:
|
||||||
|
name: RuuviTag Humidity
|
||||||
|
temperature:
|
||||||
|
name: RuuviTag Temperature
|
||||||
|
pressure:
|
||||||
|
name: RuuviTag Pressure
|
||||||
|
acceleration:
|
||||||
|
name: RuuviTag Acceleration
|
||||||
|
acceleration_x:
|
||||||
|
name: RuuviTag Acceleration X
|
||||||
|
acceleration_y:
|
||||||
|
name: RuuviTag Acceleration Y
|
||||||
|
acceleration_z:
|
||||||
|
name: RuuviTag Acceleration Z
|
||||||
|
battery_voltage:
|
||||||
|
name: RuuviTag Battery Voltage
|
||||||
|
tx_power:
|
||||||
|
name: RuuviTag TX Power
|
||||||
|
movement_counter:
|
||||||
|
name: RuuviTag Movement Counter
|
||||||
|
measurement_sequence_number:
|
||||||
|
name: RuuviTag Measurement Sequence Number
|
27
tests/components/ruuvitag/test.esp32-c3.yaml
Normal file
27
tests/components/ruuvitag/test.esp32-c3.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ruuvitag
|
||||||
|
mac_address: FF:56:D3:2F:7D:E8
|
||||||
|
humidity:
|
||||||
|
name: RuuviTag Humidity
|
||||||
|
temperature:
|
||||||
|
name: RuuviTag Temperature
|
||||||
|
pressure:
|
||||||
|
name: RuuviTag Pressure
|
||||||
|
acceleration:
|
||||||
|
name: RuuviTag Acceleration
|
||||||
|
acceleration_x:
|
||||||
|
name: RuuviTag Acceleration X
|
||||||
|
acceleration_y:
|
||||||
|
name: RuuviTag Acceleration Y
|
||||||
|
acceleration_z:
|
||||||
|
name: RuuviTag Acceleration Z
|
||||||
|
battery_voltage:
|
||||||
|
name: RuuviTag Battery Voltage
|
||||||
|
tx_power:
|
||||||
|
name: RuuviTag TX Power
|
||||||
|
movement_counter:
|
||||||
|
name: RuuviTag Movement Counter
|
||||||
|
measurement_sequence_number:
|
||||||
|
name: RuuviTag Measurement Sequence Number
|
27
tests/components/ruuvitag/test.esp32-idf.yaml
Normal file
27
tests/components/ruuvitag/test.esp32-idf.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ruuvitag
|
||||||
|
mac_address: FF:56:D3:2F:7D:E8
|
||||||
|
humidity:
|
||||||
|
name: RuuviTag Humidity
|
||||||
|
temperature:
|
||||||
|
name: RuuviTag Temperature
|
||||||
|
pressure:
|
||||||
|
name: RuuviTag Pressure
|
||||||
|
acceleration:
|
||||||
|
name: RuuviTag Acceleration
|
||||||
|
acceleration_x:
|
||||||
|
name: RuuviTag Acceleration X
|
||||||
|
acceleration_y:
|
||||||
|
name: RuuviTag Acceleration Y
|
||||||
|
acceleration_z:
|
||||||
|
name: RuuviTag Acceleration Z
|
||||||
|
battery_voltage:
|
||||||
|
name: RuuviTag Battery Voltage
|
||||||
|
tx_power:
|
||||||
|
name: RuuviTag TX Power
|
||||||
|
movement_counter:
|
||||||
|
name: RuuviTag Movement Counter
|
||||||
|
measurement_sequence_number:
|
||||||
|
name: RuuviTag Measurement Sequence Number
|
27
tests/components/ruuvitag/test.esp32.yaml
Normal file
27
tests/components/ruuvitag/test.esp32.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ruuvitag
|
||||||
|
mac_address: FF:56:D3:2F:7D:E8
|
||||||
|
humidity:
|
||||||
|
name: RuuviTag Humidity
|
||||||
|
temperature:
|
||||||
|
name: RuuviTag Temperature
|
||||||
|
pressure:
|
||||||
|
name: RuuviTag Pressure
|
||||||
|
acceleration:
|
||||||
|
name: RuuviTag Acceleration
|
||||||
|
acceleration_x:
|
||||||
|
name: RuuviTag Acceleration X
|
||||||
|
acceleration_y:
|
||||||
|
name: RuuviTag Acceleration Y
|
||||||
|
acceleration_z:
|
||||||
|
name: RuuviTag Acceleration Z
|
||||||
|
battery_voltage:
|
||||||
|
name: RuuviTag Battery Voltage
|
||||||
|
tx_power:
|
||||||
|
name: RuuviTag TX Power
|
||||||
|
movement_counter:
|
||||||
|
name: RuuviTag Movement Counter
|
||||||
|
measurement_sequence_number:
|
||||||
|
name: RuuviTag Measurement Sequence Number
|
Loading…
Reference in New Issue
Block a user