mirror of
https://github.com/esphome/esphome.git
synced 2026-05-24 01:37:15 +08:00
[CI] Consolidate some tests (Q, R) (#8205)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmc5883l
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmc5883l
|
||||
address: 0x0D
|
||||
field_strength_x:
|
||||
name: QMC5883L Field Strength X
|
||||
field_strength_y:
|
||||
name: QMC5883L Field Strength Y
|
||||
field_strength_z:
|
||||
name: QMC5883L Field Strength Z
|
||||
heading:
|
||||
name: QMC5883L Heading
|
||||
temperature:
|
||||
name: QMC5883L Temperature
|
||||
range: 800uT
|
||||
oversampling: 256x
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qmp6988
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: qmp6988
|
||||
temperature:
|
||||
name: QMP6988 Temperature
|
||||
oversampling: 32x
|
||||
pressure:
|
||||
name: QMP6988 Pressure
|
||||
oversampling: 2x
|
||||
address: 0x70
|
||||
update_interval: 30s
|
||||
iir_filter: 16x
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: ${cs_pin}
|
||||
dc_pin: ${dc_pin}
|
||||
reset_pin: ${reset_pin}
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
@@ -1,25 +1,8 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin: GPIO12
|
||||
dc_pin: GPIO13
|
||||
reset_pin: GPIO14
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 21
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,25 +1,9 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
dc_pin: GPIO9
|
||||
reset_pin: GPIO10
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 8
|
||||
dc_pin: 9
|
||||
reset_pin: 10
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,25 +1,9 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
dc_pin: GPIO9
|
||||
reset_pin: GPIO10
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 8
|
||||
dc_pin: 9
|
||||
reset_pin: 10
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,25 +1,8 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin: GPIO12
|
||||
dc_pin: GPIO13
|
||||
reset_pin: GPIO14
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 21
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,25 +1,9 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO5
|
||||
dc_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 5
|
||||
dc_pin: 15
|
||||
reset_pin: 16
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,25 +1,9 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
dc_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: main_lcd
|
||||
model: ili9342
|
||||
cs_pin: 20
|
||||
dc_pin: 21
|
||||
reset_pin: 22
|
||||
invert_colors: false
|
||||
lambda: |-
|
||||
// Draw a QR code in the center of the screen
|
||||
auto scale = 2;
|
||||
auto size = id(homepage_qr).get_size() * scale;
|
||||
auto x = (it.get_width() / 2) - (size / 2);
|
||||
auto y = (it.get_height() / 2) - (size / 2);
|
||||
it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale);
|
||||
|
||||
qr_code:
|
||||
- id: homepage_qr
|
||||
value: https://esphome.io/index.html
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_qwiic_pir
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
binary_sensor:
|
||||
- platform: qwiic_pir
|
||||
name: Qwiic PIR Motion Sensor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: ${cs_pin}
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 12
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 4
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 4
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 12
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO15
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 15
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 6
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: ${pin}
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user