mirror of
https://github.com/esphome/esphome.git
synced 2025-03-12 05:38:16 +00: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:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: ballu
|
|
||||||
horizontal_default: middle
|
|
||||||
vertical_default: middle
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bh1750
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bh1750
|
|
||||||
name: Living Room Brightness
|
|
||||||
address: 0x23
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
uart:
|
uart:
|
||||||
- id: uart_bl0906
|
- id: uart_bl0906
|
||||||
tx_pin:
|
tx_pin: ${tx_pin}
|
||||||
number: ${tx_pin}
|
rx_pin: ${rx_pin}
|
||||||
rx_pin:
|
|
||||||
number: ${rx_pin}
|
|
||||||
baud_rate: 19200
|
baud_rate: 19200
|
||||||
|
|
||||||
sensor:
|
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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO1
|
||||||
tx_pin:
|
rx_pin: GPIO3
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO1
|
||||||
tx_pin:
|
rx_pin: GPIO3
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: uart_bl0942
|
tx_pin: TX1
|
||||||
tx_pin:
|
rx_pin: RX1
|
||||||
number: TX1
|
|
||||||
rx_pin:
|
|
||||||
number: RX1
|
|
||||||
baud_rate: 2400
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,21 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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,20 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bl0942
|
|
||||||
voltage:
|
|
||||||
name: BL0942 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0942 Current
|
|
||||||
power:
|
|
||||||
name: BL0942 Power
|
|
||||||
energy:
|
|
||||||
name: BL0942 Energy
|
|
||||||
frequency:
|
|
||||||
name: BL0942 Frequency
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bl0942
|
|
||||||
voltage:
|
|
||||||
name: BL0942 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0942 Current
|
|
||||||
power:
|
|
||||||
name: BL0942 Power
|
|
||||||
energy:
|
|
||||||
name: BL0942 Energy
|
|
||||||
frequency:
|
|
||||||
name: BL0942 Frequency
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bl0942
|
|
||||||
voltage:
|
|
||||||
name: BL0942 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0942 Current
|
|
||||||
power:
|
|
||||||
name: BL0942 Power
|
|
||||||
energy:
|
|
||||||
name: BL0942 Energy
|
|
||||||
frequency:
|
|
||||||
name: BL0942 Frequency
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO1
|
||||||
tx_pin:
|
rx_pin: GPIO3
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bl0942
|
|
||||||
voltage:
|
|
||||||
name: BL0942 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0942 Current
|
|
||||||
power:
|
|
||||||
name: BL0942 Power
|
|
||||||
energy:
|
|
||||||
name: BL0942 Energy
|
|
||||||
frequency:
|
|
||||||
name: BL0942 Frequency
|
|
||||||
|
@ -1,22 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_bl0939
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
bme680_bsec:
|
<<: !include common.yaml
|
||||||
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:
|
substitutions:
|
||||||
- id: i2c_bme680
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
bme680_bsec:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmi160
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
- id: i2c_bmp085
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO22
|
||||||
scl: 16
|
sda_pin: GPIO21
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_bmp581
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: bmp581
|
|
||||||
temperature:
|
|
||||||
name: "BMP581 Temperature"
|
|
||||||
iir_filter: 2x
|
|
||||||
pressure:
|
|
||||||
name: "BMP581 Pressure"
|
|
||||||
oversampling: 128x
|
|
||||||
|
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:
|
substitutions:
|
||||||
clock_pin: 16
|
clock_pin: GPIO16
|
||||||
data_pin: 17
|
data_pin: GPIO17
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 16
|
clock_pin: GPIO16
|
||||||
data_pin: 17
|
data_pin: GPIO17
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
max_power_color_channels: 4
|
|
||||||
max_power_white_channels: 6
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
clock_pin: 16
|
clock_pin: GPIO16
|
||||||
data_pin: 17
|
data_pin: GPIO17
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 16
|
clock_pin: GPIO16
|
||||||
data_pin: 17
|
data_pin: GPIO17
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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:
|
substitutions:
|
||||||
clock_pin: 5
|
clock_pin: GPIO5
|
||||||
data_pin: 4
|
data_pin: GPIO4
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user