mirror of
https://github.com/esphome/esphome.git
synced 2025-03-12 21:58:14 +00: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:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
<<: !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:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_i2c
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
i2c_device:
|
<<: !include common.yaml
|
||||||
id: i2cdev
|
|
||||||
address: 0x2C
|
|
||||||
|
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:
|
substitutions:
|
||||||
i2s_bclk_pin: 27
|
i2s_bclk_pin: GPIO15
|
||||||
i2s_lrclk_pin: 26
|
i2s_lrclk_pin: GPIO16
|
||||||
i2s_mclk_pin: 25
|
i2s_mclk_pin: GPIO17
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
i2s_audio:
|
substitutions:
|
||||||
i2s_bclk_pin: 7
|
i2s_bclk_pin: GPIO5
|
||||||
i2s_lrclk_pin: 6
|
i2s_lrclk_pin: GPIO6
|
||||||
i2s_mclk_pin: 5
|
i2s_mclk_pin: GPIO7
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
i2s_audio:
|
substitutions:
|
||||||
i2s_bclk_pin: 7
|
i2s_bclk_pin: GPIO5
|
||||||
i2s_lrclk_pin: 6
|
i2s_lrclk_pin: GPIO6
|
||||||
i2s_mclk_pin: 5
|
i2s_mclk_pin: GPIO7
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
i2s_audio:
|
substitutions:
|
||||||
i2s_bclk_pin: 27
|
i2s_bclk_pin: GPIO15
|
||||||
i2s_lrclk_pin: 26
|
i2s_lrclk_pin: GPIO16
|
||||||
i2s_mclk_pin: 25
|
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:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_iaqcore
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: iaqcore
|
|
||||||
co2:
|
|
||||||
name: iAQ Core CO2 Sensor
|
|
||||||
tvoc:
|
|
||||||
name: iAQ Core TVOC Sensor
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
cs_pin1: GPIO12
|
||||||
|
dc_pin1: GPIO13
|
||||||
|
reset_pin1: GPIO14
|
||||||
|
cs_pin2: GPIO25
|
||||||
|
dc_pin2: GPIO26
|
||||||
|
reset_pin2: GPIO27
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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);
|
|
||||||
|
@ -1,36 +1,12 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin1: GPIO8
|
||||||
|
dc_pin1: GPIO9
|
||||||
|
reset_pin1: GPIO10
|
||||||
|
cs_pin2: GPIO2
|
||||||
|
dc_pin2: GPIO3
|
||||||
|
reset_pin2: GPIO4
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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);
|
|
||||||
|
@ -1,36 +1,12 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin1: GPIO8
|
||||||
|
dc_pin1: GPIO9
|
||||||
|
reset_pin1: GPIO10
|
||||||
|
cs_pin2: GPIO2
|
||||||
|
dc_pin2: GPIO3
|
||||||
|
reset_pin2: GPIO4
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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);
|
|
||||||
|
@ -1,23 +1,11 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
cs_pin1: GPIO12
|
||||||
miso_pin: 15
|
dc_pin1: GPIO13
|
||||||
|
reset_pin1: GPIO14
|
||||||
|
cs_pin2: GPIO25
|
||||||
|
dc_pin2: GPIO26
|
||||||
|
reset_pin2: GPIO27
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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());
|
|
||||||
|
@ -1,36 +1,12 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin1: GPIO5
|
||||||
|
dc_pin1: GPIO15
|
||||||
|
reset_pin1: GPIO16
|
||||||
|
cs_pin2: GPIO2
|
||||||
|
dc_pin2: GPIO4
|
||||||
|
reset_pin2: GPIO0
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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);
|
|
||||||
|
@ -1,36 +1,12 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_main_lcd
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin1: GPIO5
|
||||||
|
dc_pin1: GPIO15
|
||||||
|
reset_pin1: GPIO16
|
||||||
|
cs_pin2: GPIO20
|
||||||
|
dc_pin2: GPIO21
|
||||||
|
reset_pin2: GPIO22
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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);
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina219
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina226
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina260
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: ina260
|
|
||||||
address: 0x40
|
|
||||||
current:
|
|
||||||
name: INA260 Current
|
|
||||||
power:
|
|
||||||
name: INA260 Power
|
|
||||||
bus_voltage:
|
|
||||||
name: INA260 Voltage
|
|
||||||
update_interval: 60s
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_ina3221
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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,8 +1,8 @@
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: adc
|
- platform: adc
|
||||||
id: my_sensor
|
id: my_sensor
|
||||||
pin: 1
|
pin: ${pin}
|
||||||
attenuation: 11db
|
attenuation: 12db
|
||||||
- platform: integration
|
- platform: integration
|
||||||
sensor: my_sensor
|
sensor: my_sensor
|
||||||
name: Integration Sensor
|
name: Integration Sensor
|
@ -1,9 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
|
||||||
id: my_sensor
|
|
||||||
pin: A0
|
pin: A0
|
||||||
attenuation: 2.5db
|
|
||||||
- platform: integration
|
<<: !include common-esp32.yaml
|
||||||
sensor: my_sensor
|
|
||||||
name: Integration Sensor
|
|
||||||
time_unit: s
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO1
|
||||||
id: my_sensor
|
|
||||||
pin: 4
|
<<: !include common-esp32.yaml
|
||||||
attenuation: 11db
|
|
||||||
- platform: integration
|
|
||||||
sensor: my_sensor
|
|
||||||
name: Integration Sensor
|
|
||||||
time_unit: s
|
|
||||||
|
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:
|
substitutions:
|
||||||
- platform: adc
|
|
||||||
id: my_sensor
|
|
||||||
pin: A0
|
pin: A0
|
||||||
attenuation: 2.5db
|
|
||||||
- platform: integration
|
<<: !include common-esp32.yaml
|
||||||
sensor: my_sensor
|
|
||||||
name: Integration Sensor
|
|
||||||
time_unit: s
|
|
||||||
|
@ -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:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: "Internal Temperature"
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: "Internal Temperature"
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
<<: !include common.yaml
|
@ -1,6 +1,4 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
framework:
|
framework:
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
<<: !include common.yaml
|
@ -1,3 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: internal_temperature
|
|
||||||
name: Internal Temperature
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO17
|
||||||
tx_pin:
|
rx_pin: GPIO16
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO17
|
||||||
tx_pin:
|
rx_pin: GPIO16
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_jsn_sr04t
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: jsn_sr04t
|
|
||||||
id: jsn_sr04t_sensor
|
|
||||||
name: "jsn_sr04t Distance"
|
|
||||||
uart_id: uart_jsn_sr04t
|
|
||||||
update_interval: 1s
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user