Add similar humidity offset
This commit is contained in:
parent
12df19ac28
commit
efc5fd2773
@ -80,6 +80,11 @@ globals:
|
||||
restore_value: yes
|
||||
initial_value: "0.0"
|
||||
|
||||
- id: humidity_offset
|
||||
type: float
|
||||
restore_value: yes
|
||||
initial_value: "0.0"
|
||||
|
||||
- id: pir_hold_time
|
||||
type: int
|
||||
restore_value: yes
|
||||
@ -538,14 +543,16 @@ sensor:
|
||||
oversampling: 16x
|
||||
filters:
|
||||
- offset: !lambda return id(temperature_offset);
|
||||
pressure:
|
||||
name: "BME680 Pressure"
|
||||
id: bme680_pressure
|
||||
oversampling: 16x
|
||||
humidity:
|
||||
name: "BME680 Relative Humidity"
|
||||
id: bme680_humidity
|
||||
oversampling: 16x
|
||||
filters:
|
||||
- offset: !lambda return id(humidity_offset);
|
||||
pressure:
|
||||
name: "BME680 Pressure"
|
||||
id: bme680_pressure
|
||||
oversampling: 16x
|
||||
gas_resistance:
|
||||
name: "BME680 Gas Resistance"
|
||||
id: bme680_gas_resistance
|
||||
@ -805,6 +812,22 @@ number:
|
||||
id: temperature_offset
|
||||
value: !lambda 'return float(x);'
|
||||
|
||||
# Humidity offset:
|
||||
# A calibration from -10 to +10 for the humidity sensor of the BME680
|
||||
- platform: template
|
||||
name: "Humidity Offset"
|
||||
id: humidity_offset_setter
|
||||
min_value: -10
|
||||
max_value: 10
|
||||
step: 0.1
|
||||
lambda: |-
|
||||
return id(humidity_offset);
|
||||
set_action:
|
||||
then:
|
||||
- globals.set:
|
||||
id: humidity_offset
|
||||
value: !lambda 'return float(x);'
|
||||
|
||||
# PIR Hold Time:
|
||||
# The number of seconds after motion detection for the PIR sensor to remain held on
|
||||
- platform: template
|
||||
|
Loading…
x
Reference in New Issue
Block a user