1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 08:42:18 +01:00

Merge branch 'dev' into camera-platform

This commit is contained in:
J. Nick Koston
2025-07-03 13:37:54 -05:00
committed by GitHub
34 changed files with 1862 additions and 99 deletions

View File

@@ -5,7 +5,8 @@ packages:
- !include package.yaml
- github://esphome/esphome/tests/components/template/common.yaml@dev
- url: https://github.com/esphome/esphome
file: tests/components/absolute_humidity/common.yaml
path: tests/components/absolute_humidity
file: common.yaml
ref: dev
refresh: 1d

View File

@@ -7,7 +7,8 @@ packages:
shorthand: github://esphome/esphome/tests/components/template/common.yaml@dev
github:
url: https://github.com/esphome/esphome
file: tests/components/absolute_humidity/common.yaml
path: tests/components/absolute_humidity
file: common.yaml
ref: dev
refresh: 1d

View File

@@ -36,5 +36,9 @@ binary_sensor:
- platform: packet_transport
provider: unencrypted-device
id: other_binary_sensor_id
- platform: packet_transport
provider: some-device-name
type: status
name: Some-Device Status
- platform: template
id: binary_sensor_id1

View File

@@ -0,0 +1,45 @@
spi:
clk_pin: ${clk_pin}
mosi_pin: ${mosi_pin}
miso_pin: ${miso_pin}
sx127x:
cs_pin: ${cs_pin}
rst_pin: ${rst_pin}
dio0_pin: ${dio0_pin}
pa_pin: BOOST
pa_power: 17
pa_ramp: 40us
bitsync: true
bitrate: 4800
bandwidth: 50_0kHz
frequency: 433920000
modulation: FSK
deviation: 5000
rx_start: true
rx_floor: -90
packet_mode: true
payload_length: 8
sync_value: [0x33, 0x33]
shaping: NONE
preamble_size: 2
preamble_detect: 2
preamble_errors: 8
preamble_polarity: 0x55
on_packet:
then:
- sx127x.send_packet:
data: [0xC5, 0x51, 0x78, 0x82, 0xB7, 0xF9, 0x9C, 0x5C]
button:
- platform: template
name: "SX127x Button"
on_press:
then:
- sx127x.set_mode_standby
- sx127x.run_image_cal
- sx127x.set_mode_tx
- sx127x.set_mode_sleep
- sx127x.set_mode_rx
- sx127x.send_packet:
data: [0xC5, 0x51, 0x78, 0x82, 0xB7, 0xF9, 0x9C, 0x5C]

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
cs_pin: GPIO18
rst_pin: GPIO23
dio0_pin: GPIO26
<<: !include common.yaml

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO5
mosi_pin: GPIO18
miso_pin: GPIO19
cs_pin: GPIO1
rst_pin: GPIO2
dio0_pin: GPIO3
<<: !include common.yaml

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO5
mosi_pin: GPIO18
miso_pin: GPIO19
cs_pin: GPIO1
rst_pin: GPIO2
dio0_pin: GPIO3
<<: !include common.yaml

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
cs_pin: GPIO18
rst_pin: GPIO23
dio0_pin: GPIO26
<<: !include common.yaml

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO5
mosi_pin: GPIO13
miso_pin: GPIO12
cs_pin: GPIO1
rst_pin: GPIO2
dio0_pin: GPIO3
<<: !include common.yaml

View File

@@ -0,0 +1,9 @@
substitutions:
clk_pin: GPIO2
mosi_pin: GPIO3
miso_pin: GPIO4
cs_pin: GPIO5
rst_pin: GPIO6
dio0_pin: GPIO7
<<: !include common.yaml