Add some components to the new testing framework (E) (#6176)

This commit is contained in:
Keith Burzinski 2024-03-18 18:52:40 -05:00 committed by GitHub
parent 95443a4354
commit 61f11386a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
111 changed files with 2106 additions and 0 deletions

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,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!");

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!");

View file

@ -0,0 +1,28 @@
esp32_camera:
name: ESP32 Camera
data_pins:
- number: 17
- number: 35
- number: 34
- number: 5
- number: 39
- number: 18
- number: 36
- number: 19
vsync_pin: 22
href_pin: 26
pixel_clock_pin: 21
external_clock:
pin: 27
frequency: 20MHz
i2c_pins:
sda: 25
scl: 23
reset_pin: 15
power_down_pin: 1
resolution: 640x480
jpeg_quality: 10
on_image:
then:
- lambda: |-
ESP_LOGD("main", "image len=%d, data=%c", image.length, image.data[0]);

View file

@ -0,0 +1,28 @@
esp32_camera:
name: ESP32 Camera
data_pins:
- number: 17
- number: 35
- number: 34
- number: 5
- number: 39
- number: 18
- number: 36
- number: 19
vsync_pin: 22
href_pin: 26
pixel_clock_pin: 21
external_clock:
pin: 27
frequency: 20MHz
i2c_pins:
sda: 25
scl: 23
reset_pin: 15
power_down_pin: 1
resolution: 640x480
jpeg_quality: 10
on_image:
then:
- lambda: |-
ESP_LOGD("main", "image len=%d, data=%c", image.length, image.data[0]);

View file

@ -0,0 +1,34 @@
esp32_camera:
name: ESP32 Camera
data_pins:
- number: 17
- number: 35
- number: 34
- number: 5
- number: 39
- number: 18
- number: 36
- number: 19
vsync_pin: 22
href_pin: 26
pixel_clock_pin: 21
external_clock:
pin: 27
frequency: 20MHz
i2c_pins:
sda: 25
scl: 23
reset_pin: 15
power_down_pin: 1
resolution: 640x480
jpeg_quality: 10
on_image:
then:
- lambda: |-
ESP_LOGD("main", "image len=%d, data=%c", image.length, image.data[0]);
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot

View file

@ -0,0 +1,34 @@
esp32_camera:
name: ESP32 Camera
data_pins:
- number: 17
- number: 35
- number: 34
- number: 5
- number: 39
- number: 18
- number: 36
- number: 19
vsync_pin: 22
href_pin: 26
pixel_clock_pin: 21
external_clock:
pin: 27
frequency: 20MHz
i2c_pins:
sda: 25
scl: 23
reset_pin: 15
power_down_pin: 1
resolution: 640x480
jpeg_quality: 10
on_image:
then:
- lambda: |-
ESP_LOGD("main", "image len=%d, data=%c", image.length, image.data[0]);
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot

View file

@ -0,0 +1,45 @@
esphome:
on_boot:
then:
- canbus.send:
# Extended ID explicit
use_extended_id: true
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
- canbus.send:
# Standard ID by default
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
canbus:
- platform: esp32_can
id: esp32_internal_can
rx_pin: 4
tx_pin: 5
can_id: 4
bit_rate: 50kbps
on_frame:
- can_id: 500
then:
- lambda: |-
std::string b(x.begin(), x.end());
ESP_LOGD("canid 500", "%s", b.c_str() );
- can_id: 0b00000000000000000000001000000
can_id_mask: 0b11111000000000011111111000000
use_extended_id: true
then:
- lambda: |-
auto pdo_id = can_id >> 14;
switch (pdo_id)
{
case 117:
ESP_LOGD("canbus", "exhaust_fan_duty");
break;
case 118:
ESP_LOGD("canbus", "supply_fan_duty");
break;
case 119:
ESP_LOGD("canbus", "supply_fan_flow");
break;
// to be continued...
}

View file

@ -0,0 +1,45 @@
esphome:
on_boot:
then:
- canbus.send:
# Extended ID explicit
use_extended_id: true
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
- canbus.send:
# Standard ID by default
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
canbus:
- platform: esp32_can
id: esp32_internal_can
rx_pin: 4
tx_pin: 5
can_id: 4
bit_rate: 50kbps
on_frame:
- can_id: 500
then:
- lambda: |-
std::string b(x.begin(), x.end());
ESP_LOGD("canid 500", "%s", b.c_str() );
- can_id: 0b00000000000000000000001000000
can_id_mask: 0b11111000000000011111111000000
use_extended_id: true
then:
- lambda: |-
auto pdo_id = can_id >> 14;
switch (pdo_id)
{
case 117:
ESP_LOGD("canbus", "exhaust_fan_duty");
break;
case 118:
ESP_LOGD("canbus", "supply_fan_duty");
break;
case 119:
ESP_LOGD("canbus", "supply_fan_flow");
break;
// to be continued...
}

View file

@ -0,0 +1,45 @@
esphome:
on_boot:
then:
- canbus.send:
# Extended ID explicit
use_extended_id: true
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
- canbus.send:
# Standard ID by default
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
canbus:
- platform: esp32_can
id: esp32_internal_can
rx_pin: 13
tx_pin: 14
can_id: 4
bit_rate: 50kbps
on_frame:
- can_id: 500
then:
- lambda: |-
std::string b(x.begin(), x.end());
ESP_LOGD("canid 500", "%s", b.c_str() );
- can_id: 0b00000000000000000000001000000
can_id_mask: 0b11111000000000011111111000000
use_extended_id: true
then:
- lambda: |-
auto pdo_id = can_id >> 14;
switch (pdo_id)
{
case 117:
ESP_LOGD("canbus", "exhaust_fan_duty");
break;
case 118:
ESP_LOGD("canbus", "supply_fan_duty");
break;
case 119:
ESP_LOGD("canbus", "supply_fan_flow");
break;
// to be continued...
}

View file

@ -0,0 +1,45 @@
esphome:
on_boot:
then:
- canbus.send:
# Extended ID explicit
use_extended_id: true
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
- canbus.send:
# Standard ID by default
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
canbus:
- platform: esp32_can
id: esp32_internal_can
rx_pin: 13
tx_pin: 14
can_id: 4
bit_rate: 50kbps
on_frame:
- can_id: 500
then:
- lambda: |-
std::string b(x.begin(), x.end());
ESP_LOGD("canid 500", "%s", b.c_str() );
- can_id: 0b00000000000000000000001000000
can_id_mask: 0b11111000000000011111111000000
use_extended_id: true
then:
- lambda: |-
auto pdo_id = can_id >> 14;
switch (pdo_id)
{
case 117:
ESP_LOGD("canbus", "exhaust_fan_duty");
break;
case 118:
ESP_LOGD("canbus", "supply_fan_duty");
break;
case 119:
ESP_LOGD("canbus", "supply_fan_flow");
break;
// to be continued...
}

View file

@ -0,0 +1,4 @@
output:
- platform: esp32_dac
id: dac_output
pin: 25

View file

@ -0,0 +1,4 @@
output:
- platform: esp32_dac
id: dac_output
pin: 25

View file

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

View file

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

View file

@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
binary_sensor:
- platform: gpio
pin: 0
id: io0_button
output:
- platform: gpio
pin: 2
id: built_in_led
esp32_improv:
authorizer: io0_button
authorized_duration: 1min
status_indicator: built_in_led

View file

@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
binary_sensor:
- platform: gpio
pin: 0
id: io0_button
output:
- platform: gpio
pin: 2
id: built_in_led
esp32_improv:
authorizer: io0_button
authorized_duration: 1min
status_indicator: built_in_led

View file

@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
binary_sensor:
- platform: gpio
pin: 0
id: io0_button
output:
- platform: gpio
pin: 2
id: built_in_led
esp32_improv:
authorizer: io0_button
authorized_duration: 1min
status_indicator: built_in_led

View file

@ -0,0 +1,18 @@
wifi:
ssid: MySSID
password: password1
binary_sensor:
- platform: gpio
pin: 0
id: io0_button
output:
- platform: gpio
pin: 2
id: built_in_led
esp32_improv:
authorizer: io0_button
authorized_duration: 1min
status_indicator: built_in_led

View file

@ -0,0 +1,18 @@
light:
- platform: esp32_rmt_led_strip
id: led_strip
pin: 4
num_leds: 60
rmt_channel: 0
rgb_order: GRB
chipset: ws2812
- platform: esp32_rmt_led_strip
id: led_strip2
pin: 5
num_leds: 60
rmt_channel: 1
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us

View file

@ -0,0 +1,18 @@
light:
- platform: esp32_rmt_led_strip
id: led_strip
pin: 4
num_leds: 60
rmt_channel: 0
rgb_order: GRB
chipset: ws2812
- platform: esp32_rmt_led_strip
id: led_strip2
pin: 5
num_leds: 60
rmt_channel: 1
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us

View file

@ -0,0 +1,18 @@
light:
- platform: esp32_rmt_led_strip
id: led_strip
pin: 13
num_leds: 60
rmt_channel: 6
rgb_order: GRB
chipset: ws2812
- platform: esp32_rmt_led_strip
id: led_strip2
pin: 14
num_leds: 60
rmt_channel: 2
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us

View file

@ -0,0 +1,18 @@
light:
- platform: esp32_rmt_led_strip
id: led_strip
pin: 13
num_leds: 60
rmt_channel: 6
rgb_order: GRB
chipset: ws2812
- platform: esp32_rmt_led_strip
id: led_strip2
pin: 14
num_leds: 60
rmt_channel: 2
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us

View file

@ -0,0 +1,16 @@
esp32_touch:
setup_mode: false
iir_filter: 10ms
sleep_duration: 27ms
measurement_duration: 8ms
low_voltage_reference: 0.5V
high_voltage_reference: 2.7V
voltage_attenuation: 1.5V
binary_sensor:
- platform: esp32_touch
name: ESP32 Touch Pad
pin: 27
threshold: 1000
on_press:
- logger.log: "I'm touched!"

View file

@ -0,0 +1,16 @@
esp32_touch:
setup_mode: false
iir_filter: 10ms
sleep_duration: 27ms
measurement_duration: 8ms
low_voltage_reference: 0.5V
high_voltage_reference: 2.7V
voltage_attenuation: 1.5V
binary_sensor:
- platform: esp32_touch
name: ESP32 Touch Pad
pin: 27
threshold: 1000
on_press:
- logger.log: "I'm touched!"

View file

@ -0,0 +1,8 @@
output:
- platform: esp8266_pwm
id: out
pin: 4
frequency: 50Hz
- platform: esp8266_pwm
id: out2
pin: 5

View file

@ -0,0 +1,12 @@
ethernet:
type: LAN8720
mdc_pin: 23
mdio_pin: 25
clk_mode: GPIO0_IN
phy_addr: 0
power_pin: 26
manual_ip:
static_ip: 192.168.178.56
gateway: 192.168.178.1
subnet: 255.255.255.0
domain: .local

View file

@ -0,0 +1,12 @@
ethernet:
type: LAN8720
mdc_pin: 23
mdio_pin: 25
clk_mode: GPIO0_IN
phy_addr: 0
power_pin: 26
manual_ip:
static_ip: 192.168.178.56
gateway: 192.168.178.1
subnet: 255.255.255.0
domain: .local

View file

@ -0,0 +1,17 @@
ethernet:
type: LAN8720
mdc_pin: 23
mdio_pin: 25
clk_mode: GPIO0_IN
phy_addr: 0
power_pin: 26
manual_ip:
static_ip: 192.168.178.56
gateway: 192.168.178.1
subnet: 255.255.255.0
domain: .local
text_sensor:
- platform: ethernet_info
ip_address:
name: IP Address

View file

@ -0,0 +1,17 @@
ethernet:
type: LAN8720
mdc_pin: 23
mdio_pin: 25
clk_mode: GPIO0_IN
phy_addr: 0
power_pin: 26
manual_ip:
static_ip: 192.168.178.56
gateway: 192.168.178.1
subnet: 255.255.255.0
domain: .local
text_sensor:
- platform: ethernet_info
ip_address:
name: IP Address

View file

@ -0,0 +1,9 @@
esp32_ble_tracker:
exposure_notifications:
on_exposure_notification:
then:
- lambda: |
ESP_LOGD("main", "Got notification:");
ESP_LOGD("main", " RPI: %s", format_hex(x.rolling_proximity_identifier).c_str());
ESP_LOGD("main", " RSSI: %d", x.rssi);

View file

@ -0,0 +1,9 @@
esp32_ble_tracker:
exposure_notifications:
on_exposure_notification:
then:
- lambda: |
ESP_LOGD("main", "Got notification:");
ESP_LOGD("main", " RPI: %s", format_hex(x.rolling_proximity_identifier).c_str());
ESP_LOGD("main", " RSSI: %d", x.rssi);

View file

@ -0,0 +1,9 @@
esp32_ble_tracker:
exposure_notifications:
on_exposure_notification:
then:
- lambda: |
ESP_LOGD("main", "Got notification:");
ESP_LOGD("main", " RPI: %s", format_hex(x.rolling_proximity_identifier).c_str());
ESP_LOGD("main", " RSSI: %d", x.rssi);

View file

@ -0,0 +1,9 @@
esp32_ble_tracker:
exposure_notifications:
on_exposure_notification:
then:
- lambda: |
ESP_LOGD("main", "Got notification:");
ESP_LOGD("main", " RPI: %s", format_hex(x.rolling_proximity_identifier).c_str());
ESP_LOGD("main", " RSSI: %d", x.rssi);

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,6 @@
external_components:
- source: github://esphome/esphome@dev
refresh: 1d
components: [bh1750]
- source: ../../../esphome/components
components: [sntp]

View file

@ -0,0 +1,10 @@
i2c:
- id: i2c_ezo
scl: 5
sda: 4
sensor:
- platform: ezo
id: ph_ezo
address: 99
unit_of_measurement: pH

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