1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Merge remote-tracking branch 'origin/dev' into nrf52

This commit is contained in:
Tomasz Duda
2024-04-22 21:10:19 +02:00
1269 changed files with 38361 additions and 2305 deletions

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ags10
scl: 5
sda: 4
frequency: 10kHz
sensor:
- platform: ags10
id: ags10_1
tvoc:
name: AGS10 TVOC
update_interval: 60s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ags10
scl: 5
sda: 4
frequency: 10kHz
sensor:
- platform: ags10
id: ags10_1
tvoc:
name: AGS10 TVOC
update_interval: 60s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ags10
scl: 16
sda: 17
frequency: 10kHz
sensor:
- platform: ags10
id: ags10_1
tvoc:
name: AGS10 TVOC
update_interval: 60s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ags10
scl: 16
sda: 17
frequency: 10kHz
sensor:
- platform: ags10
id: ags10_1
tvoc:
name: AGS10 TVOC
update_interval: 60s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ags10
scl: 5
sda: 4
frequency: 10kHz
sensor:
- platform: ags10
id: ags10_1
tvoc:
name: AGS10 TVOC
update_interval: 60s

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 5
sda: 4
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 5
sda: 4
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 16
sda: 17
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 16
sda: 17
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 5
sda: 4
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -0,0 +1,11 @@
i2c:
- id: i2c_am2315c
scl: 5
sda: 4
sensor:
- platform: am2315c
temperature:
name: Temperature
humidity:
name: Humidity

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -1,3 +1,16 @@
esphome:
on_boot:
then:
- homeassistant.event:
event: esphome.button_pressed
data:
message: Button was pressed
- homeassistant.service:
service: notify.html5
data:
message: Button was pressed
- homeassistant.tag_scanned: pulse
wifi:
ssid: MySSID
password: password1

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 8
scl: 9
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO21
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 8
scl: 9
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO21
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 14
scl: 15
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO21
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 14
scl: 15
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO21
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 14
scl: 15
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO4
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -0,0 +1,38 @@
esphome:
on_boot:
then:
- at581x.settings:
id: "Waveradar"
hw_frontend_reset: false
frequency: 5800MHz
sensing_distance: 200
poweron_selfcheck_time: 2s
protect_time: 1s
trigger_base: 500ms
trigger_keep: 10s
stage_gain: 3
power_consumption: 70uA
- at581x.reset:
id: "Waveradar"
at581x:
id: "Waveradar"
i2c_id: i2c_bus
i2c:
sda: 8
scl: 9
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
binary_sensor:
- platform: gpio
pin: GPIO21
name: "Radar motion"
switch:
- platform: at581x
at581x_id: "Waveradar"
name: "Enable Radar"

View File

@@ -18,3 +18,7 @@ binary_sensor:
ibeacon_major: 100
ibeacon_minor: 1
name: BLE Test iBeacon Presence
- platform: ble_presence
irk: 1234567890abcdef1234567890abcdef
name: "ESP32 BLE Tracker with Identity Resolving Key"

View File

@@ -18,3 +18,7 @@ binary_sensor:
ibeacon_major: 100
ibeacon_minor: 1
name: BLE Test iBeacon Presence
- platform: ble_presence
irk: 1234567890abcdef1234567890abcdef
name: "ESP32 BLE Tracker with Identity Resolving Key"

View File

@@ -18,3 +18,7 @@ binary_sensor:
ibeacon_major: 100
ibeacon_minor: 1
name: BLE Test iBeacon Presence
- platform: ble_presence
irk: 1234567890abcdef1234567890abcdef
name: "ESP32 BLE Tracker with Identity Resolving Key"

View File

@@ -18,3 +18,7 @@ binary_sensor:
ibeacon_major: 100
ibeacon_minor: 1
name: BLE Test iBeacon Presence
- platform: ble_presence
irk: 1234567890abcdef1234567890abcdef
name: "ESP32 BLE Tracker with Identity Resolving Key"

View File

@@ -0,0 +1,24 @@
spi:
- id: spi_id_1
clk_pin: GPIO7
mosi_pin: GPIO6
interface: any
display:
- platform: ili9xxx
id: displ8
model: ili9342
cs_pin: GPIO5
dc_pin: GPIO4
reset_pin:
number: GPIO21
i2c:
scl: GPIO18
sda: GPIO8
touchscreen:
- platform: cst226
interrupt_pin: GPIO3
reset_pin: GPIO20

View File

@@ -0,0 +1,36 @@
touchscreen:
- platform: cst816
id: my_touchscreen
interrupt_pin:
number: 21
reset_pin: GPIO16
transform:
mirror_x: false
mirror_y: false
swap_xy: false
i2c:
sda: 3
scl: 2
display:
- id: my_display
platform: ili9xxx
dimensions: 480x320
model: ST7796
cs_pin: 15
dc_pin: 20
reset_pin: 22
transform:
swap_xy: true
mirror_x: true
mirror_y: true
auto_clear_enabled: false
spi:
clk_pin: 14
mosi_pin: 13
binary_sensor:
- platform: cst816
name: Home Button

View File

@@ -2,9 +2,12 @@ output:
- platform: ledc
id: light_output_1
pin: 1
channel: 0
- platform: ledc
id: light_output_2
pin: 2
channel: 1
phase_angle: 180°
light:
- platform: cwww

View File

@@ -2,9 +2,12 @@ output:
- platform: ledc
id: light_output_1
pin: 12
channel: 0
- platform: ledc
id: light_output_2
pin: 13
channel: 1
phase_angle: 180°
light:
- platform: cwww

View File

@@ -0,0 +1,19 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
id: tsvr
remote_receiver:
id: rcvr
pin:
number: 27
inverted: true
mode:
input: true
pullup: true
tolerance: 40%
climate:
- platform: daikin_arc
name: "AC"
receiver_id: rcvr

View File

@@ -0,0 +1,19 @@
remote_transmitter:
pin: 5
carrier_duty_percent: 50%
id: tsvr
remote_receiver:
id: rcvr
pin:
number: 2
inverted: true
mode:
input: true
pullup: true
tolerance: 40%
climate:
- platform: daikin_arc
name: "AC"
receiver_id: rcvr

View File

@@ -0,0 +1 @@
datetime:

View File

@@ -0,0 +1 @@
debug:

View File

@@ -0,0 +1,35 @@
spi:
- id: spi_main_lcd
clk_pin: 16
mosi_pin: 17
miso_pin: 15
display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 12
dc_pin: 13
reset_pin: 21
lambda: |-
// Draw an analog clock in the center of the screen
int centerX = it.get_width() / 2;
int centerY = it.get_height() / 2;
int radius = min(it.get_width(), it.get_height()) / 4;
// Draw border
it.circle(centerX, centerY, radius);
// Draw hour ticks
for(int h = 0; h < 12; h++) {
int hourAngle = (h * 30) - 90;
it.line_at_angle(centerX, centerY, hourAngle, radius - 10, radius);
}
// Draw minute ticks
for(int m = 0; m < 60; m++) {
int minuteAngle = (m * 6) - 90;
it.line_at_angle(centerX, centerY, minuteAngle, radius - 5, radius);
}

View File

@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
e131:
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:
- e131:
universe: 1

View File

@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
e131:
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:
- e131:
universe: 1

View File

@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
e131:
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:
- e131:
universe: 1

View File

@@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
e131:
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:
- e131:
universe: 1

View File

@@ -0,0 +1,17 @@
wifi:
ssid: MySSID
password: password1
e131:
light:
- platform: neopixelbus
name: Neopixelbus Light
pin: 1
type: GRBW
variant: SK6812
method: ESP8266_UART0
num_leds: 256
effects:
- e131:
universe: 1

View File

@@ -0,0 +1,17 @@
wifi:
ssid: MySSID
password: password1
e131:
light:
- platform: rp2040_pio_led_strip
id: led_strip
pin: 2
pio: 0
num_leds: 256
rgb_order: GRB
chipset: WS2812
effects:
- e131:
universe: 1

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 16
sda: 17
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 16
sda: 17
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,14 @@
i2c:
- id: i2c_ee895
scl: 5
sda: 4
sensor:
- platform: ee895
address: 0x5F
co2:
name: EE895 CO2
temperature:
name: EE895 Temperature
pressure:
name: EE895 Pressure

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 3
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 3
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 16
sda: 17
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 13
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 14
rts_pin: 15
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 16
sda: 17
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 13
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 14
rts_pin: 15
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 3
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 12
rts_pin: 13
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,24 @@
i2c:
- id: i2c_ektf2232
scl: 5
sda: 4
display:
- platform: ssd1306_i2c
id: ssd1306_display
model: SSD1306_128X64
reset_pin: 3
pages:
- id: page1
lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height());
touchscreen:
- platform: ektf2232
interrupt_pin: 6
rts_pin: 7
display: ssd1306_display
on_touch:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 5
sda: 4
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 5
sda: 4
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 16
sda: 17
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 16
sda: 17
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 5
sda: 4
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,25 @@
i2c:
- id: i2c_emc2101
scl: 5
sda: 4
emc2101:
pwm:
resolution: 8
output:
- platform: emc2101
id: fan_duty_cycle
sensor:
- platform: emc2101
internal_temperature:
id: internal_temperature_sensor
name: Internal Temperature Sensor
speed:
id: speed_sensor
name: Speed Sensor
duty_cycle:
id: duty_cycle_sensor
name: Duty Cycle Sensor
update_interval: 5s

View File

@@ -0,0 +1,14 @@
remote_transmitter:
id: tx
pin: ${remote_transmitter_pin}
carrier_duty_percent: 100%
remote_receiver:
id: rcvr
pin: ${remote_receiver_pin}
climate:
- platform: emmeti
name: Emmeti
receiver_id: rcvr
transmitter_id: tx

View File

@@ -0,0 +1,5 @@
substitutions:
remote_transmitter_pin: GPIO33
remote_receiver_pin: GPIO32
<<: !include common.yaml

View File

@@ -0,0 +1,5 @@
substitutions:
remote_transmitter_pin: GPIO33
remote_receiver_pin: GPIO32
<<: !include common.yaml

View File

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

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,33 @@
binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 5
sda: 4
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 5
sda: 4
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 16
sda: 17
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 16
sda: 17
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 5
sda: 4
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,13 @@
i2c:
- id: i2c_ens160
scl: 5
sda: 4
sensor:
- platform: ens160
eco2:
name: ENS160 eCO2
tvoc:
name: ENS160 Total Volatile Organic Compounds
aqi:
name: ENS160 Air Quality Index

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 5
sda: 4
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 5
sda: 4
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 16
sda: 17
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 16
sda: 17
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 5
sda: 4
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,12 @@
i2c:
- id: i2c_ens210
scl: 5
sda: 4
sensor:
- platform: ens210
temperature:
name: ENS210 Temperature
humidity:
name: ENS210 Humidity
update_interval: 15s

View File

@@ -0,0 +1,2 @@
esp32_ble:
io_capability: keyboard_only

View File

@@ -0,0 +1,2 @@
esp32_ble:
io_capability: keyboard_only

View File

@@ -0,0 +1,2 @@
esp32_ble:
io_capability: keyboard_only

View File

@@ -0,0 +1,2 @@
esp32_ble:
io_capability: keyboard_only

View File

@@ -0,0 +1,3 @@
esp32_ble_beacon:
type: iBeacon
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'

View File

@@ -0,0 +1,3 @@
esp32_ble_beacon:
type: iBeacon
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'

View File

@@ -0,0 +1,3 @@
esp32_ble_beacon:
type: iBeacon
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'

View File

@@ -0,0 +1,3 @@
esp32_ble_beacon:
type: iBeacon
uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'

View File

@@ -0,0 +1,5 @@
esp32_ble_tracker:
ble_client:
- mac_address: 01:02:03:04:05:06
id: blec

View File

@@ -0,0 +1,5 @@
esp32_ble_tracker:
ble_client:
- mac_address: 01:02:03:04:05:06
id: blec

View File

@@ -0,0 +1,5 @@
esp32_ble_tracker:
ble_client:
- mac_address: 01:02:03:04:05:06
id: blec

View File

@@ -0,0 +1,5 @@
esp32_ble_tracker:
ble_client:
- mac_address: 01:02:03:04:05:06
id: blec

View File

@@ -0,0 +1,3 @@
esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]

View File

@@ -0,0 +1,3 @@
esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]

View File

@@ -0,0 +1,3 @@
esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]

View File

@@ -0,0 +1,3 @@
esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]

View File

@@ -0,0 +1,41 @@
esphome:
on_boot:
then:
- esp32_ble_tracker.start_scan
- esp32_ble_tracker.stop_scan
esp32_ble_tracker:
on_ble_advertise:
- mac_address:
- AA:BB:CC:DD:EE:FF
- FF:EE:DD:CC:BB:AA
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
# yamllint enable rule:line-length
- mac_address: AC:37:43:77:5F:4C
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
# yamllint enable rule:line-length
- then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
# yamllint enable rule:line-length
on_ble_service_data_advertise:
- service_uuid: ABCD
then:
- lambda: !lambda |-
ESP_LOGD("main", "Length of service data is %i", x.size());
on_ble_manufacturer_data_advertise:
- manufacturer_id: ABCD
then:
- lambda: !lambda |-
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
on_scan_end:
- then:
- lambda: |-
ESP_LOGD("ble_auto", "The scan has ended!");

View File

@@ -0,0 +1,41 @@
esphome:
on_boot:
then:
- esp32_ble_tracker.start_scan
- esp32_ble_tracker.stop_scan
esp32_ble_tracker:
on_ble_advertise:
- mac_address:
- AA:BB:CC:DD:EE:FF
- FF:EE:DD:CC:BB:AA
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
# yamllint enable rule:line-length
- mac_address: AC:37:43:77:5F:4C
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
# yamllint enable rule:line-length
- then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
# yamllint enable rule:line-length
on_ble_service_data_advertise:
- service_uuid: ABCD
then:
- lambda: !lambda |-
ESP_LOGD("main", "Length of service data is %i", x.size());
on_ble_manufacturer_data_advertise:
- manufacturer_id: ABCD
then:
- lambda: !lambda |-
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
on_scan_end:
- then:
- lambda: |-
ESP_LOGD("ble_auto", "The scan has ended!");

Some files were not shown because too many files have changed in this diff Show More