mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Merge branch 'dev' into vornado-ir
This commit is contained in:
@@ -2,12 +2,12 @@ animation:
|
||||
- id: rgb565_animation
|
||||
file: $component_dir/anim.gif
|
||||
type: RGB565
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
resize: 50x50
|
||||
- id: rgb_animation
|
||||
file: $component_dir/anim.apng
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
resize: 50x50
|
||||
- id: grayscale_animation
|
||||
file: $component_dir/anim.apng
|
||||
|
16
tests/components/es7210/common.yaml
Normal file
16
tests/components/es7210/common.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- audio_adc.set_mic_gain: 0db
|
||||
- audio_adc.set_mic_gain: !lambda 'return 4;'
|
||||
|
||||
i2c:
|
||||
- id: i2c_aic3204
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
audio_adc:
|
||||
- platform: es7210
|
||||
id: es7210_adc
|
||||
bits_per_sample: 16bit
|
||||
sample_rate: 16000
|
5
tests/components/es7210/test.esp32-ard.yaml
Normal file
5
tests/components/es7210/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7210/test.esp32-c3-ard.yaml
Normal file
5
tests/components/es7210/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7210/test.esp32-c3-idf.yaml
Normal file
5
tests/components/es7210/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7210/test.esp32-idf.yaml
Normal file
5
tests/components/es7210/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
14
tests/components/es7243e/common.yaml
Normal file
14
tests/components/es7243e/common.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- audio_adc.set_mic_gain: 0db
|
||||
- audio_adc.set_mic_gain: !lambda 'return 4;'
|
||||
|
||||
i2c:
|
||||
- id: i2c_es7243e
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
audio_adc:
|
||||
- platform: es7243e
|
||||
id: es7243e_adc
|
5
tests/components/es7243e/test.esp32-ard.yaml
Normal file
5
tests/components/es7243e/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-c3-ard.yaml
Normal file
5
tests/components/es7243e/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-c3-idf.yaml
Normal file
5
tests/components/es7243e/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es7243e/test.esp32-idf.yaml
Normal file
5
tests/components/es7243e/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
15
tests/components/es8156/common.yaml
Normal file
15
tests/components/es8156/common.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- audio_dac.mute_off:
|
||||
- audio_dac.mute_on:
|
||||
- audio_dac.set_volume:
|
||||
volume: 50%
|
||||
|
||||
i2c:
|
||||
- id: i2c_es8156
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
audio_dac:
|
||||
- platform: es8156
|
5
tests/components/es8156/test.esp32-ard.yaml
Normal file
5
tests/components/es8156/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es8156/test.esp32-c3-ard.yaml
Normal file
5
tests/components/es8156/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es8156/test.esp32-c3-idf.yaml
Normal file
5
tests/components/es8156/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es8156/test.esp32-idf.yaml
Normal file
5
tests/components/es8156/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/es8156/test.esp8266-ard.yaml
Normal file
5
tests/components/es8156/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
@@ -20,6 +20,7 @@ display:
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
color_palette: 8bit
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
|
@@ -6,54 +6,54 @@ image:
|
||||
- id: transparent_transparent_image
|
||||
file: ../../pnglogo.png
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
|
||||
- id: rgba_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: rgb24_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: rgb_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
|
||||
- id: rgb565_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
- id: rgb565_ck_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: rgb565_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
type: RGB565
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
|
||||
- id: grayscale_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: grayscale_ck_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: grayscale_image
|
||||
file: ../../pnglogo.png
|
||||
type: grayscale
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
|
||||
- id: web_svg_image
|
||||
file: https://raw.githubusercontent.com/esphome/esphome-docs/a62d7ab193c1a464ed791670170c7d518189109b/images/logo.svg
|
||||
resize: 256x48
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: web_tiff_image
|
||||
file: https://upload.wikimedia.org/wikipedia/commons/b/b6/SIPI_Jelly_Beans_4.1.07.tiff
|
||||
type: RGB
|
||||
|
@@ -12,7 +12,7 @@ image:
|
||||
dither: FloydSteinberg
|
||||
- id: transparent_transparent_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
rgb:
|
||||
alpha_channel:
|
||||
- id: rgba_image
|
||||
@@ -28,21 +28,21 @@ image:
|
||||
rgb565:
|
||||
- id: rgb565_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
- id: rgb565_ck_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: rgb565_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
grayscale:
|
||||
- id: grayscale_alpha_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
resize: 50x50
|
||||
- id: grayscale_ck_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
- id: grayscale_image
|
||||
file: ../../pnglogo.png
|
||||
use_transparency: opaque
|
||||
transparency: opaque
|
||||
|
@@ -795,6 +795,34 @@ lvgl:
|
||||
color: 0xA0A0A0
|
||||
r_mod: -20
|
||||
opa: 0%
|
||||
- id: page3
|
||||
widgets:
|
||||
- keyboard:
|
||||
id: lv_keyboard
|
||||
align: bottom_mid
|
||||
on_value:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "keyboard value %s"
|
||||
args: [text.c_str()]
|
||||
- lvgl.keyboard.update:
|
||||
id: lv_keyboard
|
||||
hidden: true
|
||||
on_ready:
|
||||
- lvgl.widget.update:
|
||||
id: lv_keyboard
|
||||
- lvgl.keyboard.update:
|
||||
id: lv_keyboard
|
||||
hidden: true
|
||||
|
||||
- keyboard:
|
||||
id: lv_keyboard1
|
||||
mode: special
|
||||
on_ready:
|
||||
lvgl.keyboard.update:
|
||||
id: lv_keyboard1
|
||||
hidden: true
|
||||
mode: text_lower
|
||||
|
||||
font:
|
||||
- file: "gfonts://Roboto"
|
||||
@@ -805,10 +833,13 @@ image:
|
||||
- id: cat_image
|
||||
resize: 256x48
|
||||
file: $component_dir/logo-text.svg
|
||||
type: RGB565
|
||||
use_transparency: alpha_channel
|
||||
- id: dog_image
|
||||
file: $component_dir/logo-text.svg
|
||||
resize: 256x48
|
||||
type: TRANSPARENT_BINARY
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
|
||||
color:
|
||||
- id: light_blue
|
||||
|
@@ -14,18 +14,18 @@ online_image:
|
||||
- id: online_binary_transparent_image
|
||||
url: http://www.libpng.org/pub/png/img_png/pnglogo-blk-tiny.png
|
||||
type: BINARY
|
||||
use_transparency: chroma_key
|
||||
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: RGB
|
||||
use_transparency: alpha_channel
|
||||
transparency: alpha_channel
|
||||
- id: online_rgb24_image
|
||||
url: http://www.libpng.org/pub/png/img_png/pnglogo-blk-tiny.png
|
||||
format: PNG
|
||||
type: RGB
|
||||
use_transparency: chroma_key
|
||||
transparency: chroma_key
|
||||
|
||||
# Check the set_url action
|
||||
esphome:
|
||||
|
@@ -78,6 +78,26 @@ lock:
|
||||
}
|
||||
optimistic: true
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: template_select1
|
||||
name: "Template select"
|
||||
optimistic: true
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
- three
|
||||
initial_option: two
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
id: template_number1
|
||||
name: "Template number"
|
||||
optimistic: true
|
||||
min_value: 0
|
||||
max_value: 100
|
||||
step: 1
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
|
@@ -1 +1,34 @@
|
||||
<<: !include common.yaml
|
||||
|
||||
i2s_audio:
|
||||
i2s_lrclk_pin: 1
|
||||
i2s_bclk_pin: 2
|
||||
i2s_mclk_pin: 3
|
||||
|
||||
media_player:
|
||||
- platform: i2s_audio
|
||||
name: "Media Player"
|
||||
dac_type: external
|
||||
i2s_dout_pin: 18
|
||||
mute_pin: 19
|
||||
on_state:
|
||||
- media_player.play:
|
||||
- media_player.play_media: http://localhost/media.mp3
|
||||
- media_player.play_media: !lambda 'return "http://localhost/media.mp3";'
|
||||
on_idle:
|
||||
- media_player.pause:
|
||||
on_play:
|
||||
- media_player.stop:
|
||||
on_pause:
|
||||
- media_player.toggle:
|
||||
- wait_until:
|
||||
media_player.is_idle:
|
||||
- wait_until:
|
||||
media_player.is_playing:
|
||||
- wait_until:
|
||||
media_player.is_announcing:
|
||||
- wait_until:
|
||||
media_player.is_paused:
|
||||
- media_player.volume_up:
|
||||
- media_player.volume_down:
|
||||
- media_player.volume_set: 50%
|
||||
|
@@ -9,6 +9,11 @@ uart:
|
||||
seeed_mr60bha2:
|
||||
id: my_seeed_mr60bha2
|
||||
|
||||
binary_sensor:
|
||||
- platform: seeed_mr60bha2
|
||||
has_target:
|
||||
name: "Person Information"
|
||||
|
||||
sensor:
|
||||
- platform: seeed_mr60bha2
|
||||
breath_rate:
|
||||
@@ -17,3 +22,5 @@ sensor:
|
||||
name: "Real-time heart rate"
|
||||
distance:
|
||||
name: "Distance to detection object"
|
||||
num_targets:
|
||||
name: "Target Number"
|
||||
|
@@ -13,3 +13,7 @@ sensor:
|
||||
- platform: uptime
|
||||
name: Uptime Sensor Timestamp
|
||||
type: timestamp
|
||||
|
||||
text_sensor:
|
||||
- platform: uptime
|
||||
name: Uptime Text
|
||||
|
Reference in New Issue
Block a user