mirror of
https://github.com/esphome/esphome.git
synced 2025-02-19 02:12:11 +01:00
[CI] Consolidate some tests (B) (#8185)
This commit is contained in:
parent
d4ac2d3c7e
commit
53c15f6716
12
tests/components/ballu/common.yaml
Normal file
12
tests/components/ballu/common.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: heatpumpir
|
||||
protocol: ballu
|
||||
horizontal_default: middle
|
||||
vertical_default: middle
|
||||
name: HeatpumpIR Climate
|
||||
min_temperature: 18
|
||||
max_temperature: 30
|
@ -1,12 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: heatpumpir
|
||||
protocol: ballu
|
||||
horizontal_default: middle
|
||||
vertical_default: middle
|
||||
name: HeatpumpIR Climate
|
||||
min_temperature: 18
|
||||
max_temperature: 30
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: heatpumpir
|
||||
protocol: ballu
|
||||
horizontal_default: middle
|
||||
vertical_default: middle
|
||||
name: HeatpumpIR Climate
|
||||
min_temperature: 18
|
||||
max_temperature: 30
|
||||
<<: !include common.yaml
|
||||
|
10
tests/components/bh1750/common.yaml
Normal file
10
tests/components/bh1750/common.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bh1750
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bh1750
|
||||
name: Living Room Brightness
|
||||
address: 0x23
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,9 +1,7 @@
|
||||
uart:
|
||||
- id: uart_bl0906
|
||||
tx_pin:
|
||||
number: ${tx_pin}
|
||||
rx_pin:
|
||||
number: ${rx_pin}
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 19200
|
||||
|
||||
sensor:
|
||||
|
24
tests/components/bl0939/common.yaml
Normal file
24
tests/components/bl0939/common.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO1
|
||||
rx_pin: GPIO3
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,26 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: bl0939
|
||||
voltage:
|
||||
name: BL0939 Voltage
|
||||
current_1:
|
||||
name: BL0939 Current 1
|
||||
current_2:
|
||||
name: BL0939 Current 2
|
||||
active_power_1:
|
||||
name: BL0939 Active Power 1
|
||||
active_power_2:
|
||||
name: BL0939 Active Power 2
|
||||
energy_1:
|
||||
name: BL0939 Energy 1
|
||||
energy_2:
|
||||
name: BL0939 Energy 2
|
||||
energy_total:
|
||||
name: BL0939 Total energy
|
||||
<<: !include common.yaml
|
||||
|
20
tests/components/bl0940/common.yaml
Normal file
20
tests/components/bl0940/common.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO1
|
||||
rx_pin: GPIO3
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
name: BL0940 Current
|
||||
power:
|
||||
name: BL0940 Power
|
||||
energy:
|
||||
name: BL0940 Energy
|
||||
internal_temperature:
|
||||
name: BL0940 Internal temperature
|
||||
external_temperature:
|
||||
name: BL0940 External temperature
|
||||
<<: !include common.yaml
|
||||
|
19
tests/components/bl0942/common.yaml
Normal file
19
tests/components/bl0942/common.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
reset: true
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
@ -1,27 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0942
|
||||
tx_pin:
|
||||
number: TX1
|
||||
rx_pin:
|
||||
number: RX1
|
||||
baud_rate: 2400
|
||||
substitutions:
|
||||
tx_pin: TX1
|
||||
rx_pin: RX1
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
address: 0
|
||||
line_frequency: 50Hz
|
||||
reset: false
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
voltage_reference: 15968
|
||||
current_reference: 124180
|
||||
power_reference: 309.1
|
||||
energy_reference: 2653
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
reset: true
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO1
|
||||
rx_pin: GPIO3
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
uart:
|
||||
- id: uart_bl0939
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: bl0942
|
||||
voltage:
|
||||
name: BL0942 Voltage
|
||||
current:
|
||||
name: BL0942 Current
|
||||
power:
|
||||
name: BL0942 Power
|
||||
energy:
|
||||
name: BL0942 Energy
|
||||
frequency:
|
||||
name: BL0942 Frequency
|
||||
voltage_reference: 15968
|
||||
current_reference: 124180
|
||||
<<: !include common.yaml
|
||||
|
21
tests/components/bme680/common.yaml
Normal file
21
tests/components/bme680/common.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
address: 0x77
|
||||
heater:
|
||||
temperature: 320
|
||||
duration: 150ms
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
29
tests/components/bme680_bsec/common.yaml
Normal file
29
tests/components/bme680_bsec/common.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
bme680_bsec:
|
||||
address: 0x77
|
||||
|
||||
sensor:
|
||||
- platform: bme680_bsec
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
iaq:
|
||||
name: BME680 IAQ
|
||||
co2_equivalent:
|
||||
name: BME680 eCO2
|
||||
breath_voc_equivalent:
|
||||
name: BME680 Breath eVOC
|
||||
|
||||
text_sensor:
|
||||
- platform: bme680_bsec
|
||||
iaq_accuracy:
|
||||
name: BME680 Accuracy
|
@ -1,29 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
bme680_bsec:
|
||||
address: 0x77
|
||||
|
||||
sensor:
|
||||
- platform: bme680_bsec
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
iaq:
|
||||
name: BME680 IAQ
|
||||
co2_equivalent:
|
||||
name: BME680 eCO2
|
||||
breath_voc_equivalent:
|
||||
name: BME680 Breath eVOC
|
||||
|
||||
text_sensor:
|
||||
- platform: bme680_bsec
|
||||
iaq_accuracy:
|
||||
name: BME680 Accuracy
|
||||
<<: !include common.yaml
|
||||
|
@ -1,29 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bme680
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
bme680_bsec:
|
||||
address: 0x77
|
||||
|
||||
sensor:
|
||||
- platform: bme680_bsec
|
||||
temperature:
|
||||
name: BME680 Temperature
|
||||
pressure:
|
||||
name: BME680 Pressure
|
||||
humidity:
|
||||
name: BME680 Humidity
|
||||
gas_resistance:
|
||||
name: BME680 Gas Sensor
|
||||
iaq:
|
||||
name: BME680 IAQ
|
||||
co2_equivalent:
|
||||
name: BME680 eCO2
|
||||
breath_voc_equivalent:
|
||||
name: BME680 Breath eVOC
|
||||
|
||||
text_sensor:
|
||||
- platform: bme680_bsec
|
||||
iaq_accuracy:
|
||||
name: BME680 Accuracy
|
||||
<<: !include common.yaml
|
||||
|
22
tests/components/bmi160/common.yaml
Normal file
22
tests/components/bmi160/common.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmi160
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmi160
|
||||
address: 0x68
|
||||
acceleration_x:
|
||||
name: BMI160 Accel X
|
||||
acceleration_y:
|
||||
name: BMI160 Accel Y
|
||||
acceleration_z:
|
||||
name: BMI160 Accel z
|
||||
gyroscope_x:
|
||||
name: BMI160 Gyro X
|
||||
gyroscope_y:
|
||||
name: BMI160 Gyro Y
|
||||
gyroscope_z:
|
||||
name: BMI160 Gyro z
|
||||
temperature:
|
||||
name: BMI160 Temperature
|
||||
<<: !include common.yaml
|
||||
|
15
tests/components/bmp085/common.yaml
Normal file
15
tests/components/bmp085/common.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp085
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp085
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
pressure:
|
||||
name: Outside Pressure
|
||||
filters:
|
||||
- lambda: >-
|
||||
return x / powf(1.0 - (x / 44330.0), 5.255);
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
13
tests/components/bmp581/common.yaml
Normal file
13
tests/components/bmp581/common.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: BMP581 Temperature
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: BMP581 Pressure
|
||||
oversampling: 128x
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_bmp581
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: bmp581
|
||||
temperature:
|
||||
name: "BMP581 Temperature"
|
||||
iir_filter: 2x
|
||||
pressure:
|
||||
name: "BMP581 Pressure"
|
||||
oversampling: 128x
|
||||
<<: !include common.yaml
|
||||
|
22
tests/components/bp1658cj/common.yaml
Normal file
22
tests/components/bp1658cj/common.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
bp1658cj:
|
||||
clock_pin: ${clock_pin}
|
||||
data_pin: ${data_pin}
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 16
|
||||
data_pin: 17
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO16
|
||||
data_pin: GPIO17
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 16
|
||||
data_pin: 17
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO16
|
||||
data_pin: GPIO17
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
bp1658cj:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
max_power_color_channels: 4
|
||||
max_power_white_channels: 6
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_red
|
||||
channel: 1
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_green
|
||||
channel: 2
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_blue
|
||||
channel: 0
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_coldwhite
|
||||
channel: 3
|
||||
- platform: bp1658cj
|
||||
id: bp1658cj_warmwhite
|
||||
channel: 4
|
||||
<<: !include common.yaml
|
||||
|
25
tests/components/bp5758d/common.yaml
Normal file
25
tests/components/bp5758d/common.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
bp5758d:
|
||||
clock_pin: ${clock_pin}
|
||||
data_pin: ${data_pin}
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 16
|
||||
data_pin: 17
|
||||
substitutions:
|
||||
clock_pin: GPIO16
|
||||
data_pin: GPIO17
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 16
|
||||
data_pin: 17
|
||||
substitutions:
|
||||
clock_pin: GPIO16
|
||||
data_pin: GPIO17
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
@ -1,25 +1,5 @@
|
||||
bp5758d:
|
||||
clock_pin: 5
|
||||
data_pin: 4
|
||||
substitutions:
|
||||
clock_pin: GPIO5
|
||||
data_pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: bp5758d
|
||||
id: bp5758d_red
|
||||
channel: 2
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_green
|
||||
channel: 3
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_blue
|
||||
channel: 1
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_coldwhite
|
||||
channel: 5
|
||||
current: 10
|
||||
- platform: bp5758d
|
||||
id: bp5758d_warmwhite
|
||||
channel: 4
|
||||
current: 10
|
||||
<<: !include common.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user