mirror of
https://github.com/esphome/esphome.git
synced 2025-02-20 02:22:02 +01:00
[CI] Consolidate some tests (I, J) (#8200)
This commit is contained in:
parent
4e4566361f
commit
55203143df
4
tests/components/i2c/common.yaml
Normal file
4
tests/components/i2c/common.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
|
8
tests/components/i2c_device/common.yaml
Normal file
8
tests/components/i2c_device/common.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
i2c:
|
||||
- id: i2c_i2c_device
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_i2c
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c_device:
|
||||
id: i2cdev
|
||||
address: 0x2C
|
||||
<<: !include common.yaml
|
||||
|
4
tests/components/i2s_audio/common.yaml
Normal file
4
tests/components/i2s_audio/common.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
i2s_audio:
|
||||
i2s_bclk_pin: ${i2s_bclk_pin}
|
||||
i2s_lrclk_pin: ${i2s_lrclk_pin}
|
||||
i2s_mclk_pin: ${i2s_mclk_pin}
|
@ -1,4 +1,6 @@
|
||||
i2s_audio:
|
||||
i2s_bclk_pin: 27
|
||||
i2s_lrclk_pin: 26
|
||||
i2s_mclk_pin: 25
|
||||
substitutions:
|
||||
i2s_bclk_pin: GPIO15
|
||||
i2s_lrclk_pin: GPIO16
|
||||
i2s_mclk_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,6 @@
|
||||
i2s_audio:
|
||||
i2s_bclk_pin: 7
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_mclk_pin: 5
|
||||
substitutions:
|
||||
i2s_bclk_pin: GPIO5
|
||||
i2s_lrclk_pin: GPIO6
|
||||
i2s_mclk_pin: GPIO7
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,6 @@
|
||||
i2s_audio:
|
||||
i2s_bclk_pin: 7
|
||||
i2s_lrclk_pin: 6
|
||||
i2s_mclk_pin: 5
|
||||
substitutions:
|
||||
i2s_bclk_pin: GPIO5
|
||||
i2s_lrclk_pin: GPIO6
|
||||
i2s_mclk_pin: GPIO7
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,4 +1,6 @@
|
||||
i2s_audio:
|
||||
i2s_bclk_pin: 27
|
||||
i2s_lrclk_pin: 26
|
||||
i2s_mclk_pin: 25
|
||||
substitutions:
|
||||
i2s_bclk_pin: GPIO15
|
||||
i2s_lrclk_pin: GPIO16
|
||||
i2s_mclk_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
|
11
tests/components/iaqcore/common.yaml
Normal file
11
tests/components/iaqcore/common.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
@ -1,11 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_iaqcore
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: iaqcore
|
||||
co2:
|
||||
name: iAQ Core CO2 Sensor
|
||||
tvoc:
|
||||
name: iAQ Core TVOC Sensor
|
||||
<<: !include common.yaml
|
||||
|
36
tests/components/ili9xxx/common.yaml
Normal file
36
tests/components/ili9xxx/common.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: ${cs_pin1}
|
||||
dc_pin: ${dc_pin1}
|
||||
reset_pin: ${reset_pin1}
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
color_palette: 8bit
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: ${cs_pin2}
|
||||
dc_pin: ${dc_pin2}
|
||||
reset_pin: ${reset_pin2}
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
@ -1,36 +1,11 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin1: GPIO12
|
||||
dc_pin1: GPIO13
|
||||
reset_pin1: GPIO14
|
||||
cs_pin2: GPIO25
|
||||
dc_pin2: GPIO26
|
||||
reset_pin2: GPIO27
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
color_palette: 8bit
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 25
|
||||
dc_pin: 26
|
||||
reset_pin: 27
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
<<: !include common.yaml
|
||||
|
@ -1,36 +1,12 @@
|
||||
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_pin1: GPIO8
|
||||
dc_pin1: GPIO9
|
||||
reset_pin1: GPIO10
|
||||
cs_pin2: GPIO2
|
||||
dc_pin2: GPIO3
|
||||
reset_pin2: GPIO4
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: 8
|
||||
dc_pin: 9
|
||||
reset_pin: 10
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
<<: !include common.yaml
|
||||
|
@ -1,36 +1,12 @@
|
||||
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_pin1: GPIO8
|
||||
dc_pin1: GPIO9
|
||||
reset_pin1: GPIO10
|
||||
cs_pin2: GPIO2
|
||||
dc_pin2: GPIO3
|
||||
reset_pin2: GPIO4
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: 8
|
||||
dc_pin: 9
|
||||
reset_pin: 10
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 4
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
<<: !include common.yaml
|
||||
|
@ -1,23 +1,11 @@
|
||||
spi:
|
||||
- id: spi_main_lcd
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
cs_pin1: GPIO12
|
||||
dc_pin1: GPIO13
|
||||
reset_pin1: GPIO14
|
||||
cs_pin2: GPIO25
|
||||
dc_pin2: GPIO26
|
||||
reset_pin2: GPIO27
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: custom
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
init_sequence:
|
||||
- [0xFF, 0x77, 0x01, 0x00, 0x00, 0x10]
|
||||
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
<<: !include common.yaml
|
||||
|
@ -1,36 +1,12 @@
|
||||
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_pin1: GPIO5
|
||||
dc_pin1: GPIO15
|
||||
reset_pin1: GPIO16
|
||||
cs_pin2: GPIO2
|
||||
dc_pin2: GPIO4
|
||||
reset_pin2: GPIO0
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: 5
|
||||
dc_pin: 15
|
||||
reset_pin: 16
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 2
|
||||
dc_pin: 4
|
||||
reset_pin: 0
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
<<: !include common.yaml
|
||||
|
@ -1,36 +1,12 @@
|
||||
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_pin1: GPIO5
|
||||
dc_pin1: GPIO15
|
||||
reset_pin1: GPIO16
|
||||
cs_pin2: GPIO20
|
||||
dc_pin2: GPIO21
|
||||
reset_pin2: GPIO22
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
invert_colors: true
|
||||
dimensions: 320x240
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
cs_pin: 5
|
||||
dc_pin: 15
|
||||
reset_pin: 16
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
invert_colors: false
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 20
|
||||
dc_pin: 21
|
||||
reset_pin: 22
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
<<: !include common.yaml
|
||||
|
20
tests/components/ina219/common.yaml
Normal file
20
tests/components/ina219/common.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina219
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA219 Current
|
||||
power:
|
||||
name: INA219 Power
|
||||
bus_voltage:
|
||||
name: INA219 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA219 Shunt Voltage
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
19
tests/components/ina226/common.yaml
Normal file
19
tests/components/ina226/common.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina226
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina226
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA226 Current
|
||||
power:
|
||||
name: INA226 Power
|
||||
bus_voltage:
|
||||
name: INA226 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA226 Shunt Voltage
|
||||
max_current: 3.2A
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
15
tests/components/ina260/common.yaml
Normal file
15
tests/components/ina260/common.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina260
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina260
|
||||
address: 0x40
|
||||
current:
|
||||
name: INA260 Current
|
||||
power:
|
||||
name: INA260 Power
|
||||
bus_voltage:
|
||||
name: INA260 Voltage
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
19
tests/components/ina3221/common.yaml
Normal file
19
tests/components/ina3221/common.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,19 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ina3221
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ina3221
|
||||
address: 0x40
|
||||
channel_1:
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: INA3221 Channel 1 Current
|
||||
power:
|
||||
name: INA3221 Channel 1 Power
|
||||
bus_voltage:
|
||||
name: INA3221 Channel 1 Bus Voltage
|
||||
shunt_voltage:
|
||||
name: INA3221 Channel 1 Shunt Voltage
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,8 +1,8 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 1
|
||||
attenuation: 11db
|
||||
pin: ${pin}
|
||||
attenuation: 12db
|
||||
- platform: integration
|
||||
sensor: my_sensor
|
||||
name: Integration Sensor
|
@ -1,9 +1,4 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: A0
|
||||
attenuation: 2.5db
|
||||
- platform: integration
|
||||
sensor: my_sensor
|
||||
name: Integration Sensor
|
||||
time_unit: s
|
||||
substitutions:
|
||||
pin: A0
|
||||
|
||||
<<: !include common-esp32.yaml
|
||||
|
@ -1,9 +1,4 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 4
|
||||
attenuation: 11db
|
||||
- platform: integration
|
||||
sensor: my_sensor
|
||||
name: Integration Sensor
|
||||
time_unit: s
|
||||
substitutions:
|
||||
pin: GPIO1
|
||||
|
||||
<<: !include common-esp32.yaml
|
||||
|
4
tests/components/integration/test.esp32-c3-idf.yaml
Normal file
4
tests/components/integration/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
substitutions:
|
||||
pin: GPIO1
|
||||
|
||||
<<: !include common-esp32.yaml
|
@ -1,9 +1,4 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: A0
|
||||
attenuation: 2.5db
|
||||
- platform: integration
|
||||
sensor: my_sensor
|
||||
name: Integration Sensor
|
||||
time_unit: s
|
||||
substitutions:
|
||||
pin: A0
|
||||
|
||||
<<: !include common-esp32.yaml
|
||||
|
@ -1,9 +0,0 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 1
|
||||
attenuation: 11db
|
||||
- platform: integration
|
||||
sensor: my_sensor
|
||||
name: Integration Sensor
|
||||
time_unit: s
|
3
tests/components/internal_temperature/common.yaml
Normal file
3
tests/components/internal_temperature/common.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: "Internal Temperature"
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: "Internal Temperature"
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
@ -1,6 +1,4 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
||||
esp32:
|
||||
framework:
|
||||
|
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
@ -1,3 +1 @@
|
||||
sensor:
|
||||
- platform: internal_temperature
|
||||
name: Internal Temperature
|
||||
<<: !include common.yaml
|
||||
|
11
tests/components/jsn_sr04t/common.yaml
Normal file
11
tests/components/jsn_sr04t/common.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: jsn_sr04t Distance
|
||||
update_interval: 1s
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_jsn_sr04t
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: jsn_sr04t
|
||||
id: jsn_sr04t_sensor
|
||||
name: "jsn_sr04t Distance"
|
||||
uart_id: uart_jsn_sr04t
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user