mirror of
https://github.com/esphome/esphome.git
synced 2025-02-15 09:28:16 +00:00
[CI] Consolidate some tests (S) (#8206)
This commit is contained in:
parent
da3d007d7b
commit
353924257a
20
tests/components/scd30/common.yaml
Normal file
20
tests/components/scd30/common.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_scd30
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: scd30
|
||||||
|
co2:
|
||||||
|
name: SCD30 CO2
|
||||||
|
temperature:
|
||||||
|
id: scd30_temperature
|
||||||
|
name: SCD30 Temperature
|
||||||
|
humidity:
|
||||||
|
name: SCD30 Humidity
|
||||||
|
address: 0x61
|
||||||
|
automatic_self_calibration: true
|
||||||
|
altitude_compensation: 10m
|
||||||
|
ambient_pressure_compensation: 961mBar
|
||||||
|
temperature_offset: 4.2C
|
||||||
|
update_interval: 15s
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd30
|
|
||||||
co2:
|
|
||||||
name: SCD30 CO2
|
|
||||||
temperature:
|
|
||||||
id: scd30_temperature
|
|
||||||
name: SCD30 Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD30 Humidity
|
|
||||||
address: 0x61
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
20
tests/components/scd4x/common.yaml
Normal file
20
tests/components/scd4x/common.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_scd4x
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: scd4x
|
||||||
|
id: scd40
|
||||||
|
co2:
|
||||||
|
name: SCD4X CO2
|
||||||
|
temperature:
|
||||||
|
id: scd4x_temperature
|
||||||
|
name: SCD4X Temperature
|
||||||
|
humidity:
|
||||||
|
name: SCD4X Humidity
|
||||||
|
automatic_self_calibration: true
|
||||||
|
altitude_compensation: 10m
|
||||||
|
ambient_pressure_compensation: 961mBar
|
||||||
|
temperature_offset: 4.2C
|
||||||
|
update_interval: 15s
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_scd4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: scd4x
|
|
||||||
id: scd40
|
|
||||||
co2:
|
|
||||||
name: SCD4X CO2
|
|
||||||
temperature:
|
|
||||||
id: scd4x_temperature
|
|
||||||
name: SCD4X Temperature
|
|
||||||
humidity:
|
|
||||||
name: SCD4X Humidity
|
|
||||||
automatic_self_calibration: true
|
|
||||||
altitude_compensation: 10m
|
|
||||||
ambient_pressure_compensation: 961mBar
|
|
||||||
temperature_offset: 4.2C
|
|
||||||
update_interval: 15s
|
|
||||||
|
23
tests/components/sdm_meter/common.yaml
Normal file
23
tests/components/sdm_meter/common.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_sdm_meter
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sdm_meter
|
||||||
|
phase_a:
|
||||||
|
current:
|
||||||
|
name: Phase A Current
|
||||||
|
voltage:
|
||||||
|
name: Phase A Voltage
|
||||||
|
active_power:
|
||||||
|
name: Phase A Power
|
||||||
|
power_factor:
|
||||||
|
name: Phase A Power Factor
|
||||||
|
apparent_power:
|
||||||
|
name: Phase A Apparent Power
|
||||||
|
reactive_power:
|
||||||
|
name: Phase A Reactive Power
|
||||||
|
phase_angle:
|
||||||
|
name: Phase A Phase Angle
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
@ -1,23 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdm_meter
|
|
||||||
phase_a:
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
active_power:
|
|
||||||
name: Phase A Power
|
|
||||||
power_factor:
|
|
||||||
name: Phase A Power Factor
|
|
||||||
apparent_power:
|
|
||||||
name: Phase A Apparent Power
|
|
||||||
reactive_power:
|
|
||||||
name: Phase A Reactive Power
|
|
||||||
phase_angle:
|
|
||||||
name: Phase A Phase Angle
|
|
||||||
|
11
tests/components/sdp3x/common.yaml
Normal file
11
tests/components/sdp3x/common.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sdp3x
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sdp3x
|
||||||
|
id: filter_pressure
|
||||||
|
name: HVAC Filter Pressure drop
|
||||||
|
accuracy_decimals: 3
|
||||||
|
update_interval: 5s
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sdp3x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sdp3x
|
|
||||||
id: filter_pressure
|
|
||||||
name: HVAC Filter Pressure drop
|
|
||||||
accuracy_decimals: 3
|
|
||||||
update_interval: 5s
|
|
||||||
|
14
tests/components/sds011/common.yaml
Normal file
14
tests/components/sds011/common.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_sdm_sds011
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sds011
|
||||||
|
pm_2_5:
|
||||||
|
name: SDS011 PM2.5
|
||||||
|
pm_10_0:
|
||||||
|
name: SDS011 PM10.0
|
||||||
|
rx_only: false
|
||||||
|
update_interval: 5min
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_sdm_sds011
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sds011
|
|
||||||
pm_2_5:
|
|
||||||
name: SDS011 PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: SDS011 PM10.0
|
|
||||||
rx_only: false
|
|
||||||
update_interval: 5min
|
|
||||||
|
45
tests/components/selec_meter/common.yaml
Normal file
45
tests/components/selec_meter/common.yaml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_selec_meter
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: selec_meter
|
||||||
|
total_active_energy:
|
||||||
|
name: SelecEM2M Total Active Energy
|
||||||
|
import_active_energy:
|
||||||
|
name: SelecEM2M Import Active Energy
|
||||||
|
export_active_energy:
|
||||||
|
name: SelecEM2M Export Active Energy
|
||||||
|
total_reactive_energy:
|
||||||
|
name: SelecEM2M Total Reactive Energy
|
||||||
|
import_reactive_energy:
|
||||||
|
name: SelecEM2M Import Reactive Energy
|
||||||
|
export_reactive_energy:
|
||||||
|
name: SelecEM2M Export Reactive Energy
|
||||||
|
apparent_energy:
|
||||||
|
name: SelecEM2M Apparent Energy
|
||||||
|
active_power:
|
||||||
|
name: SelecEM2M Active Power
|
||||||
|
reactive_power:
|
||||||
|
name: SelecEM2M Reactive Power
|
||||||
|
apparent_power:
|
||||||
|
name: SelecEM2M Apparent Power
|
||||||
|
voltage:
|
||||||
|
name: SelecEM2M Voltage
|
||||||
|
current:
|
||||||
|
name: SelecEM2M Current
|
||||||
|
power_factor:
|
||||||
|
name: SelecEM2M Power Factor
|
||||||
|
frequency:
|
||||||
|
name: SelecEM2M Frequency
|
||||||
|
maximum_demand_active_power:
|
||||||
|
name: SelecEM2M Maximum Demand Active Power
|
||||||
|
disabled_by_default: true
|
||||||
|
maximum_demand_reactive_power:
|
||||||
|
name: SelecEM2M Maximum Demand Reactive Power
|
||||||
|
disabled_by_default: true
|
||||||
|
maximum_demand_apparent_power:
|
||||||
|
name: SelecEM2M Maximum Demand Apparent Power
|
||||||
|
disabled_by_default: true
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
@ -1,45 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_selec_meter
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: selec_meter
|
|
||||||
total_active_energy:
|
|
||||||
name: SelecEM2M Total Active Energy
|
|
||||||
import_active_energy:
|
|
||||||
name: SelecEM2M Import Active Energy
|
|
||||||
export_active_energy:
|
|
||||||
name: SelecEM2M Export Active Energy
|
|
||||||
total_reactive_energy:
|
|
||||||
name: SelecEM2M Total Reactive Energy
|
|
||||||
import_reactive_energy:
|
|
||||||
name: SelecEM2M Import Reactive Energy
|
|
||||||
export_reactive_energy:
|
|
||||||
name: SelecEM2M Export Reactive Energy
|
|
||||||
apparent_energy:
|
|
||||||
name: SelecEM2M Apparent Energy
|
|
||||||
active_power:
|
|
||||||
name: SelecEM2M Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: SelecEM2M Reactive Power
|
|
||||||
apparent_power:
|
|
||||||
name: SelecEM2M Apparent Power
|
|
||||||
voltage:
|
|
||||||
name: SelecEM2M Voltage
|
|
||||||
current:
|
|
||||||
name: SelecEM2M Current
|
|
||||||
power_factor:
|
|
||||||
name: SelecEM2M Power Factor
|
|
||||||
frequency:
|
|
||||||
name: SelecEM2M Frequency
|
|
||||||
maximum_demand_active_power:
|
|
||||||
name: SelecEM2M Maximum Demand Active Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_reactive_power:
|
|
||||||
name: SelecEM2M Maximum Demand Reactive Power
|
|
||||||
disabled_by_default: true
|
|
||||||
maximum_demand_apparent_power:
|
|
||||||
name: SelecEM2M Maximum Demand Apparent Power
|
|
||||||
disabled_by_default: true
|
|
||||||
|
10
tests/components/sen0321/common.yaml
Normal file
10
tests/components/sen0321/common.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sen0321
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sen0321
|
||||||
|
name: Workshop Ozone Sensor
|
||||||
|
id: sen0321_ozone
|
||||||
|
update_interval: 10s
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen0321
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen0321
|
|
||||||
name: Workshop Ozone Sensor
|
|
||||||
id: sen0321_ozone
|
|
||||||
update_interval: 10s
|
|
||||||
|
9
tests/components/sen21231/common.yaml
Normal file
9
tests/components/sen21231/common.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sen21231
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sen21231
|
||||||
|
id: sen21231_sensor1
|
||||||
|
name: Person Sensor
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen21231
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen21231
|
|
||||||
id: sen21231_sensor1
|
|
||||||
name: Person Sensor
|
|
||||||
|
49
tests/components/sen5x/common.yaml
Normal file
49
tests/components/sen5x/common.yaml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sen5x
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sen5x
|
||||||
|
id: sen54
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
accuracy_decimals: 1
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
||||||
|
accuracy_decimals: 0
|
||||||
|
pm_1_0:
|
||||||
|
name: PM <1µm Weight concentration
|
||||||
|
id: pm_1_0
|
||||||
|
accuracy_decimals: 1
|
||||||
|
pm_2_5:
|
||||||
|
name: PM <2.5µm Weight concentration
|
||||||
|
id: pm_2_5
|
||||||
|
accuracy_decimals: 1
|
||||||
|
pm_4_0:
|
||||||
|
name: PM <4µm Weight concentration
|
||||||
|
id: pm_4_0
|
||||||
|
accuracy_decimals: 1
|
||||||
|
pm_10_0:
|
||||||
|
name: PM <10µm Weight concentration
|
||||||
|
id: pm_10_0
|
||||||
|
accuracy_decimals: 1
|
||||||
|
nox:
|
||||||
|
name: NOx
|
||||||
|
voc:
|
||||||
|
name: VOC
|
||||||
|
algorithm_tuning:
|
||||||
|
index_offset: 100
|
||||||
|
learning_time_offset_hours: 12
|
||||||
|
learning_time_gain_hours: 12
|
||||||
|
gating_max_duration_minutes: 180
|
||||||
|
std_initial: 50
|
||||||
|
gain_factor: 230
|
||||||
|
temperature_compensation:
|
||||||
|
offset: 0
|
||||||
|
normalized_offset_slope: 0
|
||||||
|
time_constant: 0
|
||||||
|
auto_cleaning_interval: 604800s
|
||||||
|
acceleration_mode: low
|
||||||
|
store_baseline: true
|
||||||
|
address: 0x69
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
@ -1,49 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sen5x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sen5x
|
|
||||||
id: sen54
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
accuracy_decimals: 1
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
accuracy_decimals: 0
|
|
||||||
pm_1_0:
|
|
||||||
name: PM <1µm Weight concentration
|
|
||||||
id: pm_1_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_2_5:
|
|
||||||
name: PM <2.5µm Weight concentration
|
|
||||||
id: pm_2_5
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_4_0:
|
|
||||||
name: PM <4µm Weight concentration
|
|
||||||
id: pm_4_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
pm_10_0:
|
|
||||||
name: PM <10µm Weight concentration
|
|
||||||
id: pm_10_0
|
|
||||||
accuracy_decimals: 1
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
voc:
|
|
||||||
name: VOC
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
temperature_compensation:
|
|
||||||
offset: 0
|
|
||||||
normalized_offset_slope: 0
|
|
||||||
time_constant: 0
|
|
||||||
auto_cleaning_interval: 604800s
|
|
||||||
acceleration_mode: low
|
|
||||||
store_baseline: true
|
|
||||||
address: 0x69
|
|
||||||
|
19
tests/components/senseair/common.yaml
Normal file
19
tests/components/senseair/common.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_senseair
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: senseair
|
||||||
|
id: senseair0
|
||||||
|
co2:
|
||||||
|
name: SenseAir CO2 Value
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- senseair.background_calibration: senseair0
|
||||||
|
- senseair.background_calibration_result: senseair0
|
||||||
|
- senseair.abc_get_period: senseair0
|
||||||
|
- senseair.abc_enable: senseair0
|
||||||
|
- senseair.abc_disable: senseair0
|
||||||
|
update_interval: 15s
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_senseair
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: senseair
|
|
||||||
id: senseair0
|
|
||||||
co2:
|
|
||||||
name: SenseAir CO2 Value
|
|
||||||
on_value:
|
|
||||||
then:
|
|
||||||
- senseair.background_calibration: senseair0
|
|
||||||
- senseair.background_calibration_result: senseair0
|
|
||||||
- senseair.abc_get_period: senseair0
|
|
||||||
- senseair.abc_enable: senseair0
|
|
||||||
- senseair.abc_disable: senseair0
|
|
||||||
update_interval: 15s
|
|
||||||
|
19
tests/components/servo/common.yaml
Normal file
19
tests/components/servo/common.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- servo.write:
|
||||||
|
id: test_servo
|
||||||
|
level: -100.0%
|
||||||
|
- servo.detach: test_servo
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ${output_platform}
|
||||||
|
id: servo_output_1
|
||||||
|
pin: ${pin}
|
||||||
|
|
||||||
|
servo:
|
||||||
|
id: test_servo
|
||||||
|
output: servo_output_1
|
||||||
|
restore: true
|
||||||
|
min_level: 4%
|
||||||
|
max_level: 8%
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO14
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO4
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO4
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO14
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: esp8266_pwm
|
||||||
then:
|
pin: GPIO14
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: esp8266_pwm
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: rp2040_pwm
|
||||||
then:
|
pin: GPIO4
|
||||||
- servo.write:
|
|
||||||
id: test_servo
|
|
||||||
level: -100.0%
|
|
||||||
- servo.detach: test_servo
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: rp2040_pwm
|
|
||||||
id: servo_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|
||||||
servo:
|
|
||||||
id: test_servo
|
|
||||||
output: servo_output_1
|
|
||||||
restore: true
|
|
||||||
min_level: 4%
|
|
||||||
max_level: 8%
|
|
||||||
|
15
tests/components/sfa30/common.yaml
Normal file
15
tests/components/sfa30/common.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sfa30
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sfa30
|
||||||
|
formaldehyde:
|
||||||
|
name: SFA30 formaldehyde
|
||||||
|
temperature:
|
||||||
|
name: SFA30 temperature
|
||||||
|
humidity:
|
||||||
|
name: SFA30 humidity
|
||||||
|
address: 0x5D
|
||||||
|
update_interval: 30s
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sfa30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sfa30
|
|
||||||
formaldehyde:
|
|
||||||
name: "SFA30 formaldehyde"
|
|
||||||
temperature:
|
|
||||||
name: "SFA30 temperature"
|
|
||||||
humidity:
|
|
||||||
name: "SFA30 humidity"
|
|
||||||
address: 0x5D
|
|
||||||
update_interval: 30s
|
|
||||||
|
15
tests/components/sgp30/common.yaml
Normal file
15
tests/components/sgp30/common.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sgp30
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sgp30
|
||||||
|
eco2:
|
||||||
|
name: Workshop eCO2
|
||||||
|
accuracy_decimals: 1
|
||||||
|
tvoc:
|
||||||
|
name: Workshop TVOC
|
||||||
|
accuracy_decimals: 1
|
||||||
|
address: 0x58
|
||||||
|
update_interval: 5s
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp30
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp30
|
|
||||||
eco2:
|
|
||||||
name: Workshop eCO2
|
|
||||||
accuracy_decimals: 1
|
|
||||||
tvoc:
|
|
||||||
name: Workshop TVOC
|
|
||||||
accuracy_decimals: 1
|
|
||||||
address: 0x58
|
|
||||||
update_interval: 5s
|
|
||||||
|
27
tests/components/sgp4x/common.yaml
Normal file
27
tests/components/sgp4x/common.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sgp4x
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sgp4x
|
||||||
|
voc:
|
||||||
|
name: VOC Index
|
||||||
|
id: sgp40_voc_index
|
||||||
|
algorithm_tuning:
|
||||||
|
index_offset: 100
|
||||||
|
learning_time_offset_hours: 12
|
||||||
|
learning_time_gain_hours: 12
|
||||||
|
gating_max_duration_minutes: 180
|
||||||
|
std_initial: 50
|
||||||
|
gain_factor: 230
|
||||||
|
nox:
|
||||||
|
name: NOx
|
||||||
|
algorithm_tuning:
|
||||||
|
index_offset: 100
|
||||||
|
learning_time_offset_hours: 12
|
||||||
|
learning_time_gain_hours: 12
|
||||||
|
gating_max_duration_minutes: 180
|
||||||
|
std_initial: 50
|
||||||
|
gain_factor: 230
|
||||||
|
update_interval: 5s
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sgp4x
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sgp4x
|
|
||||||
voc:
|
|
||||||
name: VOC Index
|
|
||||||
id: sgp40_voc_index
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
nox:
|
|
||||||
name: NOx
|
|
||||||
algorithm_tuning:
|
|
||||||
index_offset: 100
|
|
||||||
learning_time_offset_hours: 12
|
|
||||||
learning_time_gain_hours: 12
|
|
||||||
gating_max_duration_minutes: 180
|
|
||||||
std_initial: 50
|
|
||||||
gain_factor: 230
|
|
||||||
update_interval: 5s
|
|
||||||
|
13
tests/components/sht3xd/common.yaml
Normal file
13
tests/components/sht3xd/common.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_sht3xd
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sht3xd
|
||||||
|
temperature:
|
||||||
|
name: SHT3XD Temperature
|
||||||
|
humidity:
|
||||||
|
name: SHT3XD Humidity
|
||||||
|
address: 0x44
|
||||||
|
update_interval: 15s
|
@ -1,13 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_sht3xd
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: sht3xd
|
|
||||||
temperature:
|
|
||||||
name: SHT3XD Temperature
|
|
||||||
humidity:
|
|
||||||
name: SHT3XD Humidity
|
|
||||||
address: 0x44
|
|
||||||
update_interval: 15s
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user