mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Merge branch 'dev' into vornado-ir
This commit is contained in:
4
tests/components/animation/.gitattributes
vendored
Normal file
4
tests/components/animation/.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.apng -text
|
||||
*.webp -text
|
||||
*.gif -text
|
||||
|
BIN
tests/components/animation/anim.apng
Normal file
BIN
tests/components/animation/anim.apng
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
tests/components/animation/anim.gif
Normal file
BIN
tests/components/animation/anim.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
BIN
tests/components/animation/anim.webp
Normal file
BIN
tests/components/animation/anim.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
23
tests/components/animation/common.yaml
Normal file
23
tests/components/animation/common.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: $component_dir/anim.gif
|
||||
type: RGB565
|
||||
use_transparency: opaque
|
||||
resize: 50x50
|
||||
- id: rgb_animation
|
||||
file: $component_dir/anim.apng
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
resize: 50x50
|
||||
- id: grayscale_animation
|
||||
file: $component_dir/anim.apng
|
||||
type: grayscale
|
||||
|
||||
display:
|
||||
lambda: |-
|
||||
id(rgb565_animation).next_frame();
|
||||
id(rgb_animation1).next_frame();
|
||||
id(grayscale_animation2).next_frame();
|
||||
it.image(0, 0, rgb565_animation);
|
||||
it.image(120, 0, rgb_animation1);
|
||||
it.image(240, 0, grayscale_animation2);
|
@@ -13,12 +13,6 @@ display:
|
||||
reset_pin: 21
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
|
@@ -13,12 +13,5 @@ display:
|
||||
reset_pin: 10
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
@@ -13,12 +13,5 @@ display:
|
||||
reset_pin: 10
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
@@ -13,12 +13,5 @@ display:
|
||||
reset_pin: 21
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
@@ -13,12 +13,5 @@ display:
|
||||
reset_pin: 16
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
@@ -13,12 +13,5 @@ display:
|
||||
reset_pin: 22
|
||||
invert_colors: false
|
||||
|
||||
# Purposely test that `animation:` does auto-load `image:`
|
||||
# Keep the `image:` undefined.
|
||||
# image:
|
||||
|
||||
animation:
|
||||
- id: rgb565_animation
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: false
|
||||
packages:
|
||||
animation: !include common.yaml
|
||||
|
1
tests/components/debug/test.esp32-s2-ard.yaml
Normal file
1
tests/components/debug/test.esp32-s2-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/debug/test.esp32-s2-idf.yaml
Normal file
1
tests/components/debug/test.esp32-s2-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/debug/test.esp32-s3-ard.yaml
Normal file
1
tests/components/debug/test.esp32-s3-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/debug/test.esp32-s3-idf.yaml
Normal file
1
tests/components/debug/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
@@ -5,32 +5,65 @@ image:
|
||||
dither: FloydSteinberg
|
||||
- id: transparent_transparent_image
|
||||
file: ../../pnglogo.png
|
||||
type: TRANSPARENT_BINARY
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
|
||||
- id: rgba_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGBA
|
||||
type: RGB
|
||||
use_transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: rgb24_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB24
|
||||
use_transparency: yes
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
- id: rgb_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB
|
||||
use_transparency: opaque
|
||||
|
||||
- id: rgb565_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: no
|
||||
use_transparency: opaque
|
||||
- id: rgb565_ck_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: chroma_key
|
||||
- id: rgb565_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: alpha_channel
|
||||
|
||||
- id: grayscale_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: grayscale_ck_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: chroma_key
|
||||
- id: grayscale_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: opaque
|
||||
|
||||
- id: web_svg_image
|
||||
file: https://raw.githubusercontent.com/esphome/esphome-docs/a62d7ab193c1a464ed791670170c7d518189109b/images/logo.svg
|
||||
resize: 256x48
|
||||
type: TRANSPARENT_BINARY
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
- id: web_tiff_image
|
||||
file: https://upload.wikimedia.org/wikipedia/commons/b/b6/SIPI_Jelly_Beans_4.1.07.tiff
|
||||
type: RGB24
|
||||
type: RGB
|
||||
resize: 48x48
|
||||
- id: web_redirect_image
|
||||
file: https://avatars.githubusercontent.com/u/3060199?s=48&v=4
|
||||
type: RGB24
|
||||
type: RGB
|
||||
resize: 48x48
|
||||
- id: mdi_alert
|
||||
type: BINARY
|
||||
file: mdi:alert-circle-outline
|
||||
resize: 50x50
|
||||
- id: another_alert_icon
|
||||
|
@@ -5,4 +5,44 @@ display:
|
||||
width: 480
|
||||
height: 480
|
||||
|
||||
<<: !include common.yaml
|
||||
image:
|
||||
binary:
|
||||
- id: binary_image
|
||||
file: ../../pnglogo.png
|
||||
dither: FloydSteinberg
|
||||
- id: transparent_transparent_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
rgb:
|
||||
alpha_channel:
|
||||
- id: rgba_image
|
||||
file: ../../pnglogo.png
|
||||
resize: 50x50
|
||||
chroma_key:
|
||||
- id: rgb24_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB
|
||||
opaque:
|
||||
- id: rgb_image
|
||||
file: ../../pnglogo.png
|
||||
rgb565:
|
||||
- id: rgb565_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: opaque
|
||||
- id: rgb565_ck_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
- id: rgb565_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: alpha_channel
|
||||
grayscale:
|
||||
- id: grayscale_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: grayscale_ck_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
- id: grayscale_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: opaque
|
||||
|
@@ -2,6 +2,8 @@ esphome:
|
||||
on_boot:
|
||||
- lambda: 'ESP_LOGD("display","is_connected(): %s", YESNO(id(main_lcd).is_connected()));'
|
||||
|
||||
- display.nextion.set_brightness: 80%
|
||||
|
||||
# Binary sensor publish action tests
|
||||
- binary_sensor.nextion.publish:
|
||||
id: r0_sensor
|
||||
|
@@ -13,33 +13,32 @@ online_image:
|
||||
resize: 50x50
|
||||
- id: online_binary_transparent_image
|
||||
url: http://www.libpng.org/pub/png/img_png/pnglogo-blk-tiny.png
|
||||
type: TRANSPARENT_BINARY
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
format: png
|
||||
- id: online_rgba_image
|
||||
url: http://www.libpng.org/pub/png/img_png/pnglogo-blk-tiny.png
|
||||
format: PNG
|
||||
type: RGBA
|
||||
type: RGB
|
||||
use_transparency: alpha_channel
|
||||
- id: online_rgb24_image
|
||||
url: http://www.libpng.org/pub/png/img_png/pnglogo-blk-tiny.png
|
||||
format: PNG
|
||||
type: RGB24
|
||||
use_transparency: true
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
|
||||
# Check the set_url action
|
||||
time:
|
||||
- platform: sntp
|
||||
on_time:
|
||||
- at: "13:37:42"
|
||||
then:
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: http://www.example.org/example.png
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: !lambda |-
|
||||
return "http://www.example.org/example.png";
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: !lambda |-
|
||||
return str_sprintf("http://homeassistant.local:8123");
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: http://www.example.org/example.png
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: !lambda |-
|
||||
return "http://www.example.org/example.png";
|
||||
- online_image.set_url:
|
||||
id: online_rgba_image
|
||||
url: !lambda |-
|
||||
return str_sprintf("http://homeassistant.local:8123");
|
||||
|
1
tests/components/psram/test.esp32-s2-ard.yaml
Normal file
1
tests/components/psram/test.esp32-s2-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/psram/test.esp32-s2-idf.yaml
Normal file
1
tests/components/psram/test.esp32-s2-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/psram/test.esp32-s3-ard.yaml
Normal file
1
tests/components/psram/test.esp32-s3-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/psram/test.esp32-s3-idf.yaml
Normal file
1
tests/components/psram/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user