1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Merge remote-tracking branch 'upstream/dev' into multi_device

This commit is contained in:
J. Nick Koston
2025-06-21 12:13:54 +02:00
748 changed files with 14531 additions and 7513 deletions

View File

@@ -6,7 +6,6 @@ light:
rgb_order: GRB
num_leds: 256
pin: ${pin}
rmt_channel: 0
display:
- platform: addressable_light

View File

@@ -0,0 +1,15 @@
binary_sensor:
- platform: template
trigger_on_initial_state: true
id: some_binary_sensor
name: "Random binary"
lambda: return (random_uint32() & 1) == 0;
on_state_change:
then:
- logger.log:
format: "Old state was %s"
args: ['x_previous.has_value() ? ONOFF(x_previous) : "Unknown"']
- logger.log:
format: "New state is %s"
args: ['x.has_value() ? ONOFF(x) : "Unknown"']
- binary_sensor.invalidate_state: some_binary_sensor

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -0,0 +1,2 @@
packages:
common: !include common.yaml

View File

@@ -1,8 +0,0 @@
<<: !include common.yaml
esp32_ble_tracker:
max_connections: 3
bluetooth_proxy:
active: true
connection_slots: 2

View File

@@ -8,7 +8,6 @@ light:
rgb_order: GRB
num_leds: 256
pin: ${pin}
rmt_channel: 0
effects:
- e131:
universe: 1

View File

@@ -0,0 +1,12 @@
esp32:
board: esp32dev
framework:
type: esp-idf
advanced:
enable_lwip_mdns_queries: true
enable_lwip_bridge_interface: true
wifi:
ssid: MySSID
password: password1

View File

@@ -1 +1,5 @@
<<: !include common.yaml
esp32_ble:
io_capability: keyboard_only
disable_bt_logs: false

View File

@@ -1 +1,5 @@
<<: !include common.yaml
esp32_ble:
io_capability: keyboard_only
disable_bt_logs: false

View File

@@ -32,3 +32,7 @@ esp32_camera_web_server:
mode: stream
- port: 8081
mode: snapshot
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +0,0 @@
sensor:
- platform: esp32_hall
name: ESP32 Hall Sensor

View File

@@ -1,18 +0,0 @@
light:
- platform: esp32_rmt_led_strip
id: led_strip1
pin: ${pin1}
num_leds: 60
rmt_channel: 0
rgb_order: GRB
chipset: ws2812
- platform: esp32_rmt_led_strip
id: led_strip2
pin: ${pin2}
num_leds: 60
rmt_channel: 1
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us

View File

@@ -2,4 +2,5 @@ substitutions:
pin1: GPIO13
pin2: GPIO14
<<: !include common-ard.yaml
packages:
common: !include common.yaml

View File

@@ -2,4 +2,5 @@ substitutions:
pin1: GPIO3
pin2: GPIO4
<<: !include common-ard.yaml
packages:
common: !include common.yaml

View File

@@ -2,4 +2,5 @@ substitutions:
pin1: GPIO3
pin2: GPIO4
<<: !include common-idf.yaml
packages:
common: !include common.yaml

View File

@@ -2,4 +2,5 @@ substitutions:
pin1: GPIO13
pin2: GPIO14
<<: !include common-idf.yaml
packages:
common: !include common.yaml

View File

@@ -0,0 +1,12 @@
substitutions:
pin1: GPIO3
pin2: GPIO4
packages:
common: !include common.yaml
light:
- id: !extend led_strip1
use_dma: "true"
- id: !extend led_strip2
use_dma: "false"

View File

@@ -0,0 +1,15 @@
esp_ldo:
- id: ldo_id
channel: 3
voltage: 2.5V
adjustable: true
- id: ldo_4
channel: 4
voltage: 2.0V
esphome:
on_boot:
then:
- esp_ldo.voltage.adjust:
id: ldo_id
voltage: !lambda return 2.5;

View File

@@ -0,0 +1 @@
<<: !include common.yaml

View File

@@ -1,5 +1 @@
<<: !include common.yaml
esp32:
framework:
version: 2.0.9

View File

@@ -0,0 +1,16 @@
i2c:
- id: i2c_lc709203f
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: lc709203f
size: 2000
voltage: 3.7
battery_voltage:
name: "Battery Voltage"
battery_level:
name: "Battery"
temperature:
name: "Pack Temperature"
b_constant: 0xA5A5

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
<<: !include common.yaml

View File

@@ -63,7 +63,7 @@ binary_sensor:
id: lvgl_pressbutton
name: Pressbutton
widget: spin_up
publish_initial_state: true
trigger_on_initial_state: true
- platform: lvgl
name: ButtonMatrix button
widget: button_a

View File

@@ -170,6 +170,12 @@ lvgl:
lvgl.page.is_showing: page1
then:
logger.log: "Yes, page1 showing"
- if:
condition:
lvgl.is_idle:
timeout: !lambda return 5000;
then:
logger.log: LVGL is idle
on_unload:
- logger.log: page unloaded
- lvgl.widget.focus: mark

View File

@@ -281,6 +281,8 @@ display:
id: main_lcd
update_interval: 5s
command_spacing: 5ms
max_commands_per_loop: 20
max_queue_size: 50
on_sleep:
then:
lambda: 'ESP_LOGD("display","Display went to sleep");'

View File

@@ -11,6 +11,9 @@ online_image:
format: PNG
type: BINARY
resize: 50x50
request_headers:
X-Test1: 'Test1'
X-Test2: !lambda 'static int x; return to_string(x++);'
on_download_finished:
lambda: |-
if (cached) {

View File

@@ -0,0 +1,11 @@
network:
enable_ipv6: true
openthread:
channel: 13
network_name: OpenThread-8f28
network_key: 0xdfd34f0f05cad978ec4e32b0413038ff
pan_id: 0x8f28
ext_pan_id: 0xd63e8e3e495ebbc3
pskc: 0xc23a76e98f1a6483639b1ac1271e2e27
force_dataset: true

View File

@@ -0,0 +1,30 @@
network:
enable_ipv6: true
openthread:
channel: 13
network_key: 0xdfd34f0f05cad978ec4e32b0413038ff
pan_id: 0x8f28
text_sensor:
- platform: openthread_info
ip_address:
name: "Off-mesh routable IP Address"
channel:
name: "Channel"
role:
name: "Device Role"
rloc16:
name: "RLOC16"
ext_addr:
name: "Extended Address"
eui64:
name: "EUI64"
network_name:
name: "Network Name"
network_key:
name: "Network Key"
pan_id:
name: "PAN ID"
ext_pan_id:
name: "Extended PAN ID"

View File

@@ -5,7 +5,6 @@ light:
chipset: ws2812
num_leds: 256
rgb_order: GRB
rmt_channel: 1
pin: ${pin}
- platform: partition
name: Partition Light

View File

@@ -0,0 +1,9 @@
esp32:
cpu_frequency: 360MHz
framework:
type: esp-idf
advanced:
enable_idf_experimental_features: yes
psram:
speed: 200MHz

View File

@@ -1,14 +0,0 @@
remote_receiver:
- id: rcvr
pin: ${pin}
rmt_channel: ${rmt_channel}
dump: all
tolerance: 25%
<<: !include common-actions.yaml
binary_sensor:
- platform: remote_receiver
name: Panasonic Remote Input
panasonic:
address: 0x4004
command: 0x100BCBD

View File

@@ -7,7 +7,6 @@ remote_receiver:
filter_symbols: ${filter_symbols}
receive_symbols: ${receive_symbols}
rmt_symbols: ${rmt_symbols}
use_dma: ${use_dma}
<<: !include common-actions.yaml
binary_sensor:

View File

@@ -1,6 +1,9 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
clock_resolution: "2000000"
filter_symbols: "2"
receive_symbols: "4"
rmt_symbols: "64"
packages:
common: !include esp32-common-ard.yaml
common: !include esp32-common.yaml

View File

@@ -1,6 +1,9 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
clock_resolution: "2000000"
filter_symbols: "2"
receive_symbols: "4"
rmt_symbols: "64"
packages:
common: !include esp32-common-ard.yaml
common: !include esp32-common.yaml

View File

@@ -4,7 +4,6 @@ substitutions:
filter_symbols: "2"
receive_symbols: "4"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml

View File

@@ -4,7 +4,6 @@ substitutions:
filter_symbols: "2"
receive_symbols: "4"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml

View File

@@ -4,7 +4,10 @@ substitutions:
filter_symbols: "2"
receive_symbols: "4"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml
remote_receiver:
- id: !extend rcvr
use_dma: "true"

View File

@@ -1,8 +0,0 @@
remote_transmitter:
- id: xmitr
pin: ${pin}
rmt_channel: ${rmt_channel}
carrier_duty_percent: 50%
packages:
buttons: !include common-buttons.yaml

View File

@@ -4,7 +4,6 @@ remote_transmitter:
carrier_duty_percent: 50%
clock_resolution: ${clock_resolution}
rmt_symbols: ${rmt_symbols}
use_dma: ${use_dma}
packages:
buttons: !include common-buttons.yaml

View File

@@ -1,6 +1,7 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
clock_resolution: "2000000"
rmt_symbols: "64"
packages:
common: !include esp32-common-ard.yaml
common: !include esp32-common.yaml

View File

@@ -1,6 +1,7 @@
substitutions:
pin: GPIO2
rmt_channel: "1"
clock_resolution: "2000000"
rmt_symbols: "64"
packages:
common: !include esp32-common-ard.yaml
common: !include esp32-common.yaml

View File

@@ -2,7 +2,6 @@ substitutions:
pin: GPIO2
clock_resolution: "2000000"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml

View File

@@ -2,7 +2,6 @@ substitutions:
pin: GPIO2
clock_resolution: "2000000"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml

View File

@@ -2,7 +2,10 @@ substitutions:
pin: GPIO38
clock_resolution: "2000000"
rmt_symbols: "64"
use_dma: "true"
packages:
common: !include esp32-common-idf.yaml
common: !include esp32-common.yaml
remote_transmitter:
- id: !extend xmitr
use_dma: "true"

View File

@@ -0,0 +1,38 @@
spi:
- id: quad_spi
type: quad
interface: spi3
clk_pin:
number: 47
data_pins:
- allow_other_uses: true
number: 40
- allow_other_uses: true
number: 41
- allow_other_uses: true
number: 42
- allow_other_uses: true
number: 43
- id: octal_spi
type: octal
interface: hardware
clk_pin:
number: 0
data_pins:
- 36
- 37
- 38
- 39
- allow_other_uses: true
number: 40
- allow_other_uses: true
number: 41
- allow_other_uses: true
number: 42
- allow_other_uses: true
number: 43
- id: spi_id_3
interface: any
clk_pin: 8
mosi_pin: 9

View File

@@ -5,7 +5,7 @@ spi:
miso_pin: ${miso_pin}
spi_device:
id: spi_device_test
data_rate: 2MHz
spi_mode: 3
bit_order: lsb_first
- id: spi_device_test
data_rate: 2MHz
spi_mode: 3
bit_order: lsb_first

View File

@@ -4,3 +4,8 @@ substitutions:
miso_pin: GPIO15
<<: !include common.yaml
spi_device:
- id: spi_device_test
release_device: true
data_rate: 1MHz
spi_mode: 0

View File

@@ -12,6 +12,5 @@ light:
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- wled:

View File

@@ -12,6 +12,5 @@ light:
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
effects:
- wled:

View File

@@ -0,0 +1,12 @@
esp32_ble_tracker:
sensor:
- platform: xiaomi_xmwsdj04mmc
mac_address: 84:B4:DB:5D:A3:8F
bindkey: d8ca2ed09bb5541dc8f045ca360b00ea
temperature:
name: Xiaomi XMWSDJ04MMC Temperature
humidity:
name: Xiaomi XMWSDJ04MMC Humidity
battery_level:
name: Xiaomi XMWSDJ04MMC Battery Level

View File

@@ -0,0 +1 @@
<<: !include common.yaml

View File

@@ -0,0 +1 @@
<<: !include common.yaml

View File

@@ -0,0 +1 @@
<<: !include common.yaml

View File

@@ -0,0 +1 @@
<<: !include common.yaml