mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Merge remote-tracking branch 'origin/dev' into nrf52
This commit is contained in:
12
tests/components/ags10/test.esp32-c3-idf.yaml
Normal file
12
tests/components/ags10/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ags10
|
||||
scl: 5
|
||||
sda: 4
|
||||
frequency: 10kHz
|
||||
|
||||
sensor:
|
||||
- platform: ags10
|
||||
id: ags10_1
|
||||
tvoc:
|
||||
name: AGS10 TVOC
|
||||
update_interval: 60s
|
||||
12
tests/components/ags10/test.esp32-c3.yaml
Normal file
12
tests/components/ags10/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ags10
|
||||
scl: 5
|
||||
sda: 4
|
||||
frequency: 10kHz
|
||||
|
||||
sensor:
|
||||
- platform: ags10
|
||||
id: ags10_1
|
||||
tvoc:
|
||||
name: AGS10 TVOC
|
||||
update_interval: 60s
|
||||
12
tests/components/ags10/test.esp32-idf.yaml
Normal file
12
tests/components/ags10/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ags10
|
||||
scl: 16
|
||||
sda: 17
|
||||
frequency: 10kHz
|
||||
|
||||
sensor:
|
||||
- platform: ags10
|
||||
id: ags10_1
|
||||
tvoc:
|
||||
name: AGS10 TVOC
|
||||
update_interval: 60s
|
||||
12
tests/components/ags10/test.esp32.yaml
Normal file
12
tests/components/ags10/test.esp32.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ags10
|
||||
scl: 16
|
||||
sda: 17
|
||||
frequency: 10kHz
|
||||
|
||||
sensor:
|
||||
- platform: ags10
|
||||
id: ags10_1
|
||||
tvoc:
|
||||
name: AGS10 TVOC
|
||||
update_interval: 60s
|
||||
12
tests/components/ags10/test.esp8266.yaml
Normal file
12
tests/components/ags10/test.esp8266.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ags10
|
||||
scl: 5
|
||||
sda: 4
|
||||
frequency: 10kHz
|
||||
|
||||
sensor:
|
||||
- platform: ags10
|
||||
id: ags10_1
|
||||
tvoc:
|
||||
name: AGS10 TVOC
|
||||
update_interval: 60s
|
||||
11
tests/components/am2315c/test.esp32-c3-idf.yaml
Normal file
11
tests/components/am2315c/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
11
tests/components/am2315c/test.esp32-c3.yaml
Normal file
11
tests/components/am2315c/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
11
tests/components/am2315c/test.esp32-idf.yaml
Normal file
11
tests/components/am2315c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
11
tests/components/am2315c/test.esp32.yaml
Normal file
11
tests/components/am2315c/test.esp32.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
11
tests/components/am2315c/test.esp8266.yaml
Normal file
11
tests/components/am2315c/test.esp8266.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
11
tests/components/am2315c/test.rp2040.yaml
Normal file
11
tests/components/am2315c/test.rp2040.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_am2315c
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: am2315c
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- homeassistant.event:
|
||||
event: esphome.button_pressed
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.service:
|
||||
service: notify.html5
|
||||
data:
|
||||
message: Button was pressed
|
||||
- homeassistant.tag_scanned: pulse
|
||||
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
38
tests/components/at581x/test.esp32-c3-idf.yaml
Normal file
38
tests/components/at581x/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 8
|
||||
scl: 9
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO21
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
38
tests/components/at581x/test.esp32-c3.yaml
Normal file
38
tests/components/at581x/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 8
|
||||
scl: 9
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO21
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
38
tests/components/at581x/test.esp32-idf.yaml
Normal file
38
tests/components/at581x/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 14
|
||||
scl: 15
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO21
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
38
tests/components/at581x/test.esp32.yaml
Normal file
38
tests/components/at581x/test.esp32.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 14
|
||||
scl: 15
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO21
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
38
tests/components/at581x/test.esp8266.yaml
Normal file
38
tests/components/at581x/test.esp8266.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 14
|
||||
scl: 15
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO4
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
38
tests/components/at581x/test.rp2040.yaml
Normal file
38
tests/components/at581x/test.rp2040.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- at581x.settings:
|
||||
id: "Waveradar"
|
||||
hw_frontend_reset: false
|
||||
frequency: 5800MHz
|
||||
sensing_distance: 200
|
||||
poweron_selfcheck_time: 2s
|
||||
protect_time: 1s
|
||||
trigger_base: 500ms
|
||||
trigger_keep: 10s
|
||||
stage_gain: 3
|
||||
power_consumption: 70uA
|
||||
- at581x.reset:
|
||||
id: "Waveradar"
|
||||
|
||||
at581x:
|
||||
id: "Waveradar"
|
||||
i2c_id: i2c_bus
|
||||
|
||||
i2c:
|
||||
sda: 8
|
||||
scl: 9
|
||||
scan: true
|
||||
frequency: 100kHz
|
||||
setup_priority: -100
|
||||
id: i2c_bus
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO21
|
||||
name: "Radar motion"
|
||||
|
||||
switch:
|
||||
- platform: at581x
|
||||
at581x_id: "Waveradar"
|
||||
name: "Enable Radar"
|
||||
@@ -18,3 +18,7 @@ binary_sensor:
|
||||
ibeacon_major: 100
|
||||
ibeacon_minor: 1
|
||||
name: BLE Test iBeacon Presence
|
||||
- platform: ble_presence
|
||||
irk: 1234567890abcdef1234567890abcdef
|
||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
||||
|
||||
|
||||
@@ -18,3 +18,7 @@ binary_sensor:
|
||||
ibeacon_major: 100
|
||||
ibeacon_minor: 1
|
||||
name: BLE Test iBeacon Presence
|
||||
- platform: ble_presence
|
||||
irk: 1234567890abcdef1234567890abcdef
|
||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
||||
|
||||
|
||||
@@ -18,3 +18,7 @@ binary_sensor:
|
||||
ibeacon_major: 100
|
||||
ibeacon_minor: 1
|
||||
name: BLE Test iBeacon Presence
|
||||
- platform: ble_presence
|
||||
irk: 1234567890abcdef1234567890abcdef
|
||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
||||
|
||||
|
||||
@@ -18,3 +18,7 @@ binary_sensor:
|
||||
ibeacon_major: 100
|
||||
ibeacon_minor: 1
|
||||
name: BLE Test iBeacon Presence
|
||||
- platform: ble_presence
|
||||
irk: 1234567890abcdef1234567890abcdef
|
||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
||||
|
||||
|
||||
24
tests/components/cst226/test.esp32-c3.yaml
Normal file
24
tests/components/cst226/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
spi:
|
||||
- id: spi_id_1
|
||||
clk_pin: GPIO7
|
||||
mosi_pin: GPIO6
|
||||
interface: any
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: displ8
|
||||
model: ili9342
|
||||
cs_pin: GPIO5
|
||||
dc_pin: GPIO4
|
||||
reset_pin:
|
||||
number: GPIO21
|
||||
|
||||
i2c:
|
||||
scl: GPIO18
|
||||
sda: GPIO8
|
||||
|
||||
touchscreen:
|
||||
- platform: cst226
|
||||
interrupt_pin: GPIO3
|
||||
reset_pin: GPIO20
|
||||
|
||||
36
tests/components/cst816/test.esp32.yaml
Normal file
36
tests/components/cst816/test.esp32.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
touchscreen:
|
||||
- platform: cst816
|
||||
id: my_touchscreen
|
||||
interrupt_pin:
|
||||
number: 21
|
||||
reset_pin: GPIO16
|
||||
transform:
|
||||
mirror_x: false
|
||||
mirror_y: false
|
||||
swap_xy: false
|
||||
|
||||
i2c:
|
||||
sda: 3
|
||||
scl: 2
|
||||
|
||||
display:
|
||||
- id: my_display
|
||||
platform: ili9xxx
|
||||
dimensions: 480x320
|
||||
model: ST7796
|
||||
cs_pin: 15
|
||||
dc_pin: 20
|
||||
reset_pin: 22
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
auto_clear_enabled: false
|
||||
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
|
||||
binary_sensor:
|
||||
- platform: cst816
|
||||
name: Home Button
|
||||
@@ -2,9 +2,12 @@ output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
channel: 0
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
channel: 1
|
||||
phase_angle: 180°
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
|
||||
@@ -2,9 +2,12 @@ output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
channel: 0
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
channel: 1
|
||||
phase_angle: 180°
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
|
||||
19
tests/components/daikin_arc/test.esp32.yaml
Normal file
19
tests/components/daikin_arc/test.esp32.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
id: tsvr
|
||||
|
||||
remote_receiver:
|
||||
id: rcvr
|
||||
pin:
|
||||
number: 27
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
tolerance: 40%
|
||||
|
||||
climate:
|
||||
- platform: daikin_arc
|
||||
name: "AC"
|
||||
receiver_id: rcvr
|
||||
19
tests/components/daikin_arc/test.esp8266.yaml
Normal file
19
tests/components/daikin_arc/test.esp8266.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
id: tsvr
|
||||
|
||||
remote_receiver:
|
||||
id: rcvr
|
||||
pin:
|
||||
number: 2
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
tolerance: 40%
|
||||
|
||||
climate:
|
||||
- platform: daikin_arc
|
||||
name: "AC"
|
||||
receiver_id: rcvr
|
||||
1
tests/components/datetime/test.all.yaml
Normal file
1
tests/components/datetime/test.all.yaml
Normal file
@@ -0,0 +1 @@
|
||||
datetime:
|
||||
1
tests/components/debug/test.host.yaml
Normal file
1
tests/components/debug/test.host.yaml
Normal file
@@ -0,0 +1 @@
|
||||
debug:
|
||||
35
tests/components/display/test.esp32.yaml
Normal file
35
tests/components/display/test.esp32.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 21
|
||||
lambda: |-
|
||||
// Draw an analog clock in the center of the screen
|
||||
int centerX = it.get_width() / 2;
|
||||
int centerY = it.get_height() / 2;
|
||||
int radius = min(it.get_width(), it.get_height()) / 4;
|
||||
|
||||
// Draw border
|
||||
it.circle(centerX, centerY, radius);
|
||||
|
||||
// Draw hour ticks
|
||||
for(int h = 0; h < 12; h++) {
|
||||
int hourAngle = (h * 30) - 90;
|
||||
|
||||
it.line_at_angle(centerX, centerY, hourAngle, radius - 10, radius);
|
||||
}
|
||||
|
||||
// Draw minute ticks
|
||||
for(int m = 0; m < 60; m++) {
|
||||
int minuteAngle = (m * 6) - 90;
|
||||
|
||||
it.line_at_angle(centerX, centerY, minuteAngle, radius - 5, radius);
|
||||
}
|
||||
18
tests/components/e131/test.esp32-c3-idf.yaml
Normal file
18
tests/components/e131/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
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
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
18
tests/components/e131/test.esp32-c3.yaml
Normal file
18
tests/components/e131/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
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
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
18
tests/components/e131/test.esp32-idf.yaml
Normal file
18
tests/components/e131/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
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
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
18
tests/components/e131/test.esp32.yaml
Normal file
18
tests/components/e131/test.esp32.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
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
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
17
tests/components/e131/test.esp8266.yaml
Normal file
17
tests/components/e131/test.esp8266.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
name: Neopixelbus Light
|
||||
pin: 1
|
||||
type: GRBW
|
||||
variant: SK6812
|
||||
method: ESP8266_UART0
|
||||
num_leds: 256
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
17
tests/components/e131/test.rp2040.yaml
Normal file
17
tests/components/e131/test.rp2040.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
e131:
|
||||
|
||||
light:
|
||||
- platform: rp2040_pio_led_strip
|
||||
id: led_strip
|
||||
pin: 2
|
||||
pio: 0
|
||||
num_leds: 256
|
||||
rgb_order: GRB
|
||||
chipset: WS2812
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
14
tests/components/ee895/test.esp32-c3-idf.yaml
Normal file
14
tests/components/ee895/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
14
tests/components/ee895/test.esp32-c3.yaml
Normal file
14
tests/components/ee895/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
14
tests/components/ee895/test.esp32-idf.yaml
Normal file
14
tests/components/ee895/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
14
tests/components/ee895/test.esp32.yaml
Normal file
14
tests/components/ee895/test.esp32.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
14
tests/components/ee895/test.esp8266.yaml
Normal file
14
tests/components/ee895/test.esp8266.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
14
tests/components/ee895/test.rp2040.yaml
Normal file
14
tests/components/ee895/test.rp2040.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
i2c:
|
||||
- id: i2c_ee895
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ee895
|
||||
address: 0x5F
|
||||
co2:
|
||||
name: EE895 CO2
|
||||
temperature:
|
||||
name: EE895 Temperature
|
||||
pressure:
|
||||
name: EE895 Pressure
|
||||
24
tests/components/ektf2232/test.esp32-c3-idf.yaml
Normal file
24
tests/components/ektf2232/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 6
|
||||
rts_pin: 7
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
24
tests/components/ektf2232/test.esp32-c3.yaml
Normal file
24
tests/components/ektf2232/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 6
|
||||
rts_pin: 7
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
24
tests/components/ektf2232/test.esp32-idf.yaml
Normal file
24
tests/components/ektf2232/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 14
|
||||
rts_pin: 15
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
24
tests/components/ektf2232/test.esp32.yaml
Normal file
24
tests/components/ektf2232/test.esp32.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 14
|
||||
rts_pin: 15
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
24
tests/components/ektf2232/test.esp8266.yaml
Normal file
24
tests/components/ektf2232/test.esp8266.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 12
|
||||
rts_pin: 13
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
24
tests/components/ektf2232/test.rp2040.yaml
Normal file
24
tests/components/ektf2232/test.rp2040.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_ektf2232
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ektf2232
|
||||
interrupt_pin: 6
|
||||
rts_pin: 7
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
25
tests/components/emc2101/test.esp32-c3-idf.yaml
Normal file
25
tests/components/emc2101/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
25
tests/components/emc2101/test.esp32-c3.yaml
Normal file
25
tests/components/emc2101/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
25
tests/components/emc2101/test.esp32-idf.yaml
Normal file
25
tests/components/emc2101/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
25
tests/components/emc2101/test.esp32.yaml
Normal file
25
tests/components/emc2101/test.esp32.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
25
tests/components/emc2101/test.esp8266.yaml
Normal file
25
tests/components/emc2101/test.esp8266.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
25
tests/components/emc2101/test.rp2040.yaml
Normal file
25
tests/components/emc2101/test.rp2040.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
i2c:
|
||||
- id: i2c_emc2101
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
emc2101:
|
||||
pwm:
|
||||
resolution: 8
|
||||
|
||||
output:
|
||||
- platform: emc2101
|
||||
id: fan_duty_cycle
|
||||
|
||||
sensor:
|
||||
- platform: emc2101
|
||||
internal_temperature:
|
||||
id: internal_temperature_sensor
|
||||
name: Internal Temperature Sensor
|
||||
speed:
|
||||
id: speed_sensor
|
||||
name: Speed Sensor
|
||||
duty_cycle:
|
||||
id: duty_cycle_sensor
|
||||
name: Duty Cycle Sensor
|
||||
update_interval: 5s
|
||||
14
tests/components/emmeti/common.yaml
Normal file
14
tests/components/emmeti/common.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
remote_transmitter:
|
||||
id: tx
|
||||
pin: ${remote_transmitter_pin}
|
||||
carrier_duty_percent: 100%
|
||||
|
||||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: ${remote_receiver_pin}
|
||||
|
||||
climate:
|
||||
- platform: emmeti
|
||||
name: Emmeti
|
||||
receiver_id: rcvr
|
||||
transmitter_id: tx
|
||||
5
tests/components/emmeti/test.esp32-idf.yaml
Normal file
5
tests/components/emmeti/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
remote_transmitter_pin: GPIO33
|
||||
remote_receiver_pin: GPIO32
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/emmeti/test.esp32.yaml
Normal file
5
tests/components/emmeti/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
remote_transmitter_pin: GPIO33
|
||||
remote_receiver_pin: GPIO32
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/emmeti/test.esp8266.yaml
Normal file
5
tests/components/emmeti/test.esp8266.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
remote_transmitter_pin: GPIO4
|
||||
remote_receiver_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
33
tests/components/endstop/test.esp32-c3-idf.yaml
Normal file
33
tests/components/endstop/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
33
tests/components/endstop/test.esp32-c3.yaml
Normal file
33
tests/components/endstop/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
33
tests/components/endstop/test.esp32-idf.yaml
Normal file
33
tests/components/endstop/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
33
tests/components/endstop/test.esp32.yaml
Normal file
33
tests/components/endstop/test.esp32.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
33
tests/components/endstop/test.esp8266.yaml
Normal file
33
tests/components/endstop/test.esp8266.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
33
tests/components/endstop/test.rp2040.yaml
Normal file
33
tests/components/endstop/test.rp2040.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: bin1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
id: endstop_cover
|
||||
name: Endstop Cover
|
||||
stop_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_endstop: bin1
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
open_duration: 5min
|
||||
close_endstop: bin1
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
close_duration: 4.5min
|
||||
max_duration: 10min
|
||||
13
tests/components/ens160/test.esp32-c3-idf.yaml
Normal file
13
tests/components/ens160/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
13
tests/components/ens160/test.esp32-c3.yaml
Normal file
13
tests/components/ens160/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
13
tests/components/ens160/test.esp32-idf.yaml
Normal file
13
tests/components/ens160/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
13
tests/components/ens160/test.esp32.yaml
Normal file
13
tests/components/ens160/test.esp32.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
13
tests/components/ens160/test.esp8266.yaml
Normal file
13
tests/components/ens160/test.esp8266.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
13
tests/components/ens160/test.rp2040.yaml
Normal file
13
tests/components/ens160/test.rp2040.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
12
tests/components/ens210/test.esp32-c3-idf.yaml
Normal file
12
tests/components/ens210/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
12
tests/components/ens210/test.esp32-c3.yaml
Normal file
12
tests/components/ens210/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
12
tests/components/ens210/test.esp32-idf.yaml
Normal file
12
tests/components/ens210/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
12
tests/components/ens210/test.esp32.yaml
Normal file
12
tests/components/ens210/test.esp32.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
12
tests/components/ens210/test.esp8266.yaml
Normal file
12
tests/components/ens210/test.esp8266.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
12
tests/components/ens210/test.rp2040.yaml
Normal file
12
tests/components/ens210/test.rp2040.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_ens210
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens210
|
||||
temperature:
|
||||
name: ENS210 Temperature
|
||||
humidity:
|
||||
name: ENS210 Humidity
|
||||
update_interval: 15s
|
||||
2
tests/components/esp32_ble/test.esp32-c3-idf.yaml
Normal file
2
tests/components/esp32_ble/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
esp32_ble:
|
||||
io_capability: keyboard_only
|
||||
2
tests/components/esp32_ble/test.esp32-c3.yaml
Normal file
2
tests/components/esp32_ble/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
esp32_ble:
|
||||
io_capability: keyboard_only
|
||||
2
tests/components/esp32_ble/test.esp32-idf.yaml
Normal file
2
tests/components/esp32_ble/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
esp32_ble:
|
||||
io_capability: keyboard_only
|
||||
2
tests/components/esp32_ble/test.esp32.yaml
Normal file
2
tests/components/esp32_ble/test.esp32.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
esp32_ble:
|
||||
io_capability: keyboard_only
|
||||
3
tests/components/esp32_ble_beacon/test.esp32-c3-idf.yaml
Normal file
3
tests/components/esp32_ble_beacon/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_beacon:
|
||||
type: iBeacon
|
||||
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
||||
3
tests/components/esp32_ble_beacon/test.esp32-c3.yaml
Normal file
3
tests/components/esp32_ble_beacon/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_beacon:
|
||||
type: iBeacon
|
||||
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
||||
3
tests/components/esp32_ble_beacon/test.esp32-idf.yaml
Normal file
3
tests/components/esp32_ble_beacon/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_beacon:
|
||||
type: iBeacon
|
||||
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
||||
3
tests/components/esp32_ble_beacon/test.esp32.yaml
Normal file
3
tests/components/esp32_ble_beacon/test.esp32.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_beacon:
|
||||
type: iBeacon
|
||||
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
||||
5
tests/components/esp32_ble_client/test.esp32-c3-idf.yaml
Normal file
5
tests/components/esp32_ble_client/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: blec
|
||||
5
tests/components/esp32_ble_client/test.esp32-c3.yaml
Normal file
5
tests/components/esp32_ble_client/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: blec
|
||||
5
tests/components/esp32_ble_client/test.esp32-idf.yaml
Normal file
5
tests/components/esp32_ble_client/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: blec
|
||||
5
tests/components/esp32_ble_client/test.esp32.yaml
Normal file
5
tests/components/esp32_ble_client/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: blec
|
||||
3
tests/components/esp32_ble_server/test.esp32-c3-idf.yaml
Normal file
3
tests/components/esp32_ble_server/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_server:
|
||||
id: ble
|
||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||
3
tests/components/esp32_ble_server/test.esp32-c3.yaml
Normal file
3
tests/components/esp32_ble_server/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_server:
|
||||
id: ble
|
||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||
3
tests/components/esp32_ble_server/test.esp32-idf.yaml
Normal file
3
tests/components/esp32_ble_server/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_server:
|
||||
id: ble
|
||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||
3
tests/components/esp32_ble_server/test.esp32.yaml
Normal file
3
tests/components/esp32_ble_server/test.esp32.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
esp32_ble_server:
|
||||
id: ble
|
||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||
41
tests/components/esp32_ble_tracker/test.esp32-c3-idf.yaml
Normal file
41
tests/components/esp32_ble_tracker/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- esp32_ble_tracker.start_scan
|
||||
- esp32_ble_tracker.stop_scan
|
||||
|
||||
esp32_ble_tracker:
|
||||
on_ble_advertise:
|
||||
- mac_address:
|
||||
- AA:BB:CC:DD:EE:FF
|
||||
- FF:EE:DD:CC:BB:AA
|
||||
then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
- mac_address: AC:37:43:77:5F:4C
|
||||
then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
- then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
on_ble_service_data_advertise:
|
||||
- service_uuid: ABCD
|
||||
then:
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "Length of service data is %i", x.size());
|
||||
on_ble_manufacturer_data_advertise:
|
||||
- manufacturer_id: ABCD
|
||||
then:
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
||||
on_scan_end:
|
||||
- then:
|
||||
- lambda: |-
|
||||
ESP_LOGD("ble_auto", "The scan has ended!");
|
||||
41
tests/components/esp32_ble_tracker/test.esp32-c3.yaml
Normal file
41
tests/components/esp32_ble_tracker/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- esp32_ble_tracker.start_scan
|
||||
- esp32_ble_tracker.stop_scan
|
||||
|
||||
esp32_ble_tracker:
|
||||
on_ble_advertise:
|
||||
- mac_address:
|
||||
- AA:BB:CC:DD:EE:FF
|
||||
- FF:EE:DD:CC:BB:AA
|
||||
then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
- mac_address: AC:37:43:77:5F:4C
|
||||
then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
- then:
|
||||
# yamllint disable rule:line-length
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
||||
# yamllint enable rule:line-length
|
||||
on_ble_service_data_advertise:
|
||||
- service_uuid: ABCD
|
||||
then:
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "Length of service data is %i", x.size());
|
||||
on_ble_manufacturer_data_advertise:
|
||||
- manufacturer_id: ABCD
|
||||
then:
|
||||
- lambda: !lambda |-
|
||||
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
||||
on_scan_end:
|
||||
- then:
|
||||
- lambda: |-
|
||||
ESP_LOGD("ble_auto", "The scan has ended!");
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user