mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Add some components to the new testing framework (W) (#6232)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
54a68bf069
commit
0630cdded3
59 changed files with 1177 additions and 0 deletions
9
tests/components/wake_on_lan/test.esp32-c3.yaml
Normal file
9
tests/components/wake_on_lan/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: wake_on_lan
|
||||||
|
id: wol_1
|
||||||
|
name: wol_test_1
|
||||||
|
target_mac_address: 12:34:56:78:90:ab
|
9
tests/components/wake_on_lan/test.esp32.yaml
Normal file
9
tests/components/wake_on_lan/test.esp32.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: wake_on_lan
|
||||||
|
id: wol_1
|
||||||
|
name: wol_test_1
|
||||||
|
target_mac_address: 12:34:56:78:90:ab
|
9
tests/components/wake_on_lan/test.esp8266.yaml
Normal file
9
tests/components/wake_on_lan/test.esp8266.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: wake_on_lan
|
||||||
|
id: wol_1
|
||||||
|
name: wol_test_1
|
||||||
|
target_mac_address: 12:34:56:78:90:ab
|
9
tests/components/wake_on_lan/test.rp2040.yaml
Normal file
9
tests/components/wake_on_lan/test.rp2040.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: wake_on_lan
|
||||||
|
id: wol_1
|
||||||
|
name: wol_test_1
|
||||||
|
target_mac_address: 12:34:56:78:90:ab
|
107
tests/components/waveshare_epaper/test.esp32-c3-idf.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_waveshare_epaper
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.13in-ttgo-b1
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90in
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90inv2
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-b
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-bv2
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp32-c3.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_waveshare_epaper
|
||||||
|
clk_pin: 6
|
||||||
|
mosi_pin: 7
|
||||||
|
miso_pin: 5
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.13in-ttgo-b1
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90in
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90inv2
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-b
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-bv2
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp32-idf.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_bme280
|
||||||
|
clk_pin: 16
|
||||||
|
mosi_pin: 17
|
||||||
|
miso_pin: 15
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.13in-ttgo-b1
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90in
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90inv2
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-b
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-bv2
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.esp8266.yaml
Normal file
107
tests/components/waveshare_epaper/test.esp8266.yaml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_bme280
|
||||||
|
clk_pin: 14
|
||||||
|
mosi_pin: 13
|
||||||
|
miso_pin: 12
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.13in-ttgo-b1
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90in
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.90inv2
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-b
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 2.70in-bv2
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 4
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
107
tests/components/waveshare_epaper/test.rp2040.yaml
Normal file
107
tests/components/waveshare_epaper/test.rp2040.yaml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
spi:
|
||||||
|
- id: spi_bme280
|
||||||
|
clk_pin: 2
|
||||||
|
mosi_pin: 3
|
||||||
|
miso_pin: 4
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 2.13in-ttgo-b1
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 2.90in
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 2.90inv2
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 2.70in-b
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 2.70in-bv2
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: 5
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
7
tests/components/web_server/test.esp32-c3-idf.yaml
Normal file
7
tests/components/web_server/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 8080
|
||||||
|
version: 2
|
7
tests/components/web_server/test.esp32-c3.yaml
Normal file
7
tests/components/web_server/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 8080
|
||||||
|
version: 2
|
7
tests/components/web_server/test.esp32-idf.yaml
Normal file
7
tests/components/web_server/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 8080
|
||||||
|
version: 2
|
7
tests/components/web_server/test.esp32.yaml
Normal file
7
tests/components/web_server/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 8080
|
||||||
|
version: 2
|
7
tests/components/web_server/test.esp8266.yaml
Normal file
7
tests/components/web_server/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 8080
|
||||||
|
version: 2
|
7
tests/components/whirlpool/test.esp32-c3-idf.yaml
Normal file
7
tests/components/whirlpool/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whirlpool
|
||||||
|
name: Whirlpool Climate
|
7
tests/components/whirlpool/test.esp32-c3.yaml
Normal file
7
tests/components/whirlpool/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whirlpool
|
||||||
|
name: Whirlpool Climate
|
7
tests/components/whirlpool/test.esp32-idf.yaml
Normal file
7
tests/components/whirlpool/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whirlpool
|
||||||
|
name: Whirlpool Climate
|
7
tests/components/whirlpool/test.esp32.yaml
Normal file
7
tests/components/whirlpool/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whirlpool
|
||||||
|
name: Whirlpool Climate
|
7
tests/components/whirlpool/test.esp8266.yaml
Normal file
7
tests/components/whirlpool/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 5
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whirlpool
|
||||||
|
name: Whirlpool Climate
|
7
tests/components/whynter/test.esp32-c3-idf.yaml
Normal file
7
tests/components/whynter/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whynter
|
||||||
|
name: Whynter Climate
|
7
tests/components/whynter/test.esp32-c3.yaml
Normal file
7
tests/components/whynter/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whynter
|
||||||
|
name: Whynter Climate
|
7
tests/components/whynter/test.esp32-idf.yaml
Normal file
7
tests/components/whynter/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whynter
|
||||||
|
name: Whynter Climate
|
7
tests/components/whynter/test.esp32.yaml
Normal file
7
tests/components/whynter/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 2
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whynter
|
||||||
|
name: Whynter Climate
|
7
tests/components/whynter/test.esp8266.yaml
Normal file
7
tests/components/whynter/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
remote_transmitter:
|
||||||
|
pin: 5
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: whynter
|
||||||
|
name: Whynter Climate
|
10
tests/components/wiegand/test.esp32-c3-idf.yaml
Normal file
10
tests/components/wiegand/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
10
tests/components/wiegand/test.esp32-c3.yaml
Normal file
10
tests/components/wiegand/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
10
tests/components/wiegand/test.esp32-idf.yaml
Normal file
10
tests/components/wiegand/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
10
tests/components/wiegand/test.esp32.yaml
Normal file
10
tests/components/wiegand/test.esp32.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
10
tests/components/wiegand/test.esp8266.yaml
Normal file
10
tests/components/wiegand/test.esp8266.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
10
tests/components/wiegand/test.rp2040.yaml
Normal file
10
tests/components/wiegand/test.rp2040.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
wiegand:
|
||||||
|
- id: test_wiegand
|
||||||
|
d0: 5
|
||||||
|
d1: 4
|
||||||
|
on_key:
|
||||||
|
- lambda: ESP_LOGI("KEY", "Received key %d", x);
|
||||||
|
on_tag:
|
||||||
|
- lambda: ESP_LOGI("TAG", "Received tag %s", x.c_str());
|
||||||
|
on_raw:
|
||||||
|
- lambda: ESP_LOGI("RAW", "Received raw %d bits, value %llx", bits, value);
|
9
tests/components/wifi/test.esp32-c3-idf.yaml
Normal file
9
tests/components/wifi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
9
tests/components/wifi/test.esp32-c3.yaml
Normal file
9
tests/components/wifi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
9
tests/components/wifi/test.esp32-idf.yaml
Normal file
9
tests/components/wifi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
9
tests/components/wifi/test.esp32.yaml
Normal file
9
tests/components/wifi/test.esp32.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
9
tests/components/wifi/test.esp8266.yaml
Normal file
9
tests/components/wifi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
9
tests/components/wifi/test.rp2040.yaml
Normal file
9
tests/components/wifi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- wifi.disable
|
||||||
|
- wifi.enable
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
18
tests/components/wifi_info/test.esp32-c3-idf.yaml
Normal file
18
tests/components/wifi_info/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
18
tests/components/wifi_info/test.esp32-c3.yaml
Normal file
18
tests/components/wifi_info/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
18
tests/components/wifi_info/test.esp32-idf.yaml
Normal file
18
tests/components/wifi_info/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
18
tests/components/wifi_info/test.esp32.yaml
Normal file
18
tests/components/wifi_info/test.esp32.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
18
tests/components/wifi_info/test.esp8266.yaml
Normal file
18
tests/components/wifi_info/test.esp8266.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
18
tests/components/wifi_info/test.rp2040.yaml
Normal file
18
tests/components/wifi_info/test.rp2040.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wifi_info
|
||||||
|
scan_results:
|
||||||
|
name: Scan Results
|
||||||
|
ip_address:
|
||||||
|
name: IP Address
|
||||||
|
ssid:
|
||||||
|
name: SSID
|
||||||
|
bssid:
|
||||||
|
name: BSSID
|
||||||
|
mac_address:
|
||||||
|
name: Mac Address
|
||||||
|
dns_address:
|
||||||
|
name: DNS ADdress
|
8
tests/components/wifi_signal/test.esp32-c3-idf.yaml
Normal file
8
tests/components/wifi_signal/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
8
tests/components/wifi_signal/test.esp32-c3.yaml
Normal file
8
tests/components/wifi_signal/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
8
tests/components/wifi_signal/test.esp32-idf.yaml
Normal file
8
tests/components/wifi_signal/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
8
tests/components/wifi_signal/test.esp32.yaml
Normal file
8
tests/components/wifi_signal/test.esp32.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
8
tests/components/wifi_signal/test.esp8266.yaml
Normal file
8
tests/components/wifi_signal/test.esp8266.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
8
tests/components/wifi_signal/test.rp2040.yaml
Normal file
8
tests/components/wifi_signal/test.rp2040.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: WiFi Signal Sensor
|
||||||
|
update_interval: 15s
|
60
tests/components/wireguard/test.esp32-c3-idf.yaml
Normal file
60
tests/components/wireguard/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: sntp
|
||||||
|
|
||||||
|
wireguard:
|
||||||
|
id: vpn
|
||||||
|
address: 172.16.34.100
|
||||||
|
netmask: 255.255.255.0
|
||||||
|
# NEVER use the following keys for your vpn, they are now public!
|
||||||
|
private_key: wPBMxtNYH3mChicrbpsRpZIasIdPq3yZuthn23FbGG8=
|
||||||
|
peer_public_key: Hs2JfikvYU03/Kv3YoAs1hrUIPPTEkpsZKSPUljE9yc=
|
||||||
|
peer_preshared_key: 20fjM5GRnSolGPC5SRj9ljgIUyQfruv0B0bvLl3Yt60=
|
||||||
|
peer_endpoint: wg.server.example
|
||||||
|
peer_persistent_keepalive: 25s
|
||||||
|
peer_allowed_ips:
|
||||||
|
- 172.16.34.0/24
|
||||||
|
- 192.168.4.0/24
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
status:
|
||||||
|
name: 'WireGuard Status'
|
||||||
|
enabled:
|
||||||
|
name: 'WireGuard Enabled'
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
latest_handshake:
|
||||||
|
name: 'WireGuard Latest Handshake'
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
address:
|
||||||
|
name: 'WireGuard Address'
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: template
|
||||||
|
name: 'Toggle WireGuard'
|
||||||
|
entity_category: config
|
||||||
|
on_press:
|
||||||
|
- if:
|
||||||
|
condition: wireguard.enabled
|
||||||
|
then:
|
||||||
|
- wireguard.disable:
|
||||||
|
else:
|
||||||
|
- wireguard.enable:
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: 'Log WireGuard status'
|
||||||
|
entity_category: config
|
||||||
|
on_press:
|
||||||
|
- if:
|
||||||
|
condition: wireguard.peer_online
|
||||||
|
then:
|
||||||
|
- logger.log: 'wireguard remote peer is online'
|
||||||
|
else:
|
||||||
|
- logger.log: 'wireguard remote peer is offline'
|
60
tests/components/wireguard/test.esp32-c3.yaml
Normal file
60
tests/components/wireguard/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: sntp
|
||||||
|
|
||||||
|
wireguard:
|
||||||
|
id: vpn
|
||||||
|
address: 172.16.34.100
|
||||||
|
netmask: 255.255.255.0
|
||||||
|
# NEVER use the following keys for your vpn, they are now public!
|
||||||
|
private_key: wPBMxtNYH3mChicrbpsRpZIasIdPq3yZuthn23FbGG8=
|
||||||
|
peer_public_key: Hs2JfikvYU03/Kv3YoAs1hrUIPPTEkpsZKSPUljE9yc=
|
||||||
|
peer_preshared_key: 20fjM5GRnSolGPC5SRj9ljgIUyQfruv0B0bvLl3Yt60=
|
||||||
|
peer_endpoint: wg.server.example
|
||||||
|
peer_persistent_keepalive: 25s
|
||||||
|
peer_allowed_ips:
|
||||||
|
- 172.16.34.0/24
|
||||||
|
- 192.168.4.0/24
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
status:
|
||||||
|
name: 'WireGuard Status'
|
||||||
|
enabled:
|
||||||
|
name: 'WireGuard Enabled'
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
latest_handshake:
|
||||||
|
name: 'WireGuard Latest Handshake'
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wireguard
|
||||||
|
address:
|
||||||
|
name: 'WireGuard Address'
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: template
|
||||||
|
name: 'Toggle WireGuard'
|
||||||
|
entity_category: config
|
||||||
|
on_press:
|
||||||
|
- if:
|
||||||
|
condition: wireguard.enabled
|
||||||
|
then:
|
||||||
|
- wireguard.disable:
|
||||||
|
else:
|
||||||
|
- wireguard.enable:
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: 'Log WireGuard status'
|
||||||
|
entity_category: config
|
||||||
|
on_press:
|
||||||
|
- if:
|
||||||
|
condition: wireguard.peer_online
|
||||||
|
then:
|
||||||
|
- logger.log: 'wireguard remote peer is online'
|
||||||
|
else:
|
||||||
|
- logger.log: 'wireguard remote peer is offline'
|
10
tests/components/wl_134/test.esp32-c3-idf.yaml
Normal file
10
tests/components/wl_134/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
10
tests/components/wl_134/test.esp32-c3.yaml
Normal file
10
tests/components/wl_134/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
10
tests/components/wl_134/test.esp32-idf.yaml
Normal file
10
tests/components/wl_134/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
10
tests/components/wl_134/test.esp32.yaml
Normal file
10
tests/components/wl_134/test.esp32.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 17
|
||||||
|
rx_pin: 16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
10
tests/components/wl_134/test.esp8266.yaml
Normal file
10
tests/components/wl_134/test.esp8266.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
10
tests/components/wl_134/test.rp2040.yaml
Normal file
10
tests/components/wl_134/test.rp2040.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
uart:
|
||||||
|
- id: uart_wl_134
|
||||||
|
tx_pin: 4
|
||||||
|
rx_pin: 5
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: wl_134
|
||||||
|
name: Transponder Code
|
||||||
|
reset: true
|
17
tests/components/wled/test.esp32-c3.yaml
Normal file
17
tests/components/wled/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
wled:
|
||||||
|
|
||||||
|
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:
|
||||||
|
- wled:
|
17
tests/components/wled/test.esp32.yaml
Normal file
17
tests/components/wled/test.esp32.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
wled:
|
||||||
|
|
||||||
|
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:
|
||||||
|
- wled:
|
17
tests/components/wled/test.esp8266.yaml
Normal file
17
tests/components/wled/test.esp8266.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
wled:
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: neopixelbus
|
||||||
|
id: addr
|
||||||
|
name: Neopixelbus Light
|
||||||
|
method: esp8266_uart
|
||||||
|
num_leds: 5
|
||||||
|
pin: 2
|
||||||
|
type: GRBW
|
||||||
|
variant: SK6812
|
||||||
|
effects:
|
||||||
|
- wled:
|
Loading…
Reference in a new issue