Total overhaul - still need to rework racks.
This commit is contained in:
@@ -7,19 +7,19 @@ i2c:
|
||||
sensor:
|
||||
- platform: bme280
|
||||
temperature:
|
||||
name: Temp${dn}
|
||||
name: Temp${sn}
|
||||
id: bme280_temperature
|
||||
pressure:
|
||||
name: Press${dn}
|
||||
name: Press${sn}
|
||||
id: bme280_pressure
|
||||
humidity:
|
||||
name: HumidityRel${dn}
|
||||
name: HumidityRel${sn}
|
||||
id: bme280_humidity
|
||||
address: 0x76
|
||||
update_interval: 15s
|
||||
# Templates from https://esphome.io/cookbook/bme280_environment.html
|
||||
- platform: template
|
||||
name: HumidityAbs${dn}
|
||||
name: HumidityAbs${sn}
|
||||
lambda: |-
|
||||
const float mw = 18.01534; // molar mass of water g/mol
|
||||
const float r = 8.31447215; // Universal gas constant J/mol/K
|
||||
@@ -31,7 +31,7 @@ sensor:
|
||||
icon: 'mdi:water'
|
||||
unit_of_measurement: 'g/m³'
|
||||
- platform: template
|
||||
name: DewPt${dn}
|
||||
name: DewPt${sn}
|
||||
lambda: |-
|
||||
return (243.5*(log(id(bme280_humidity).state/100)+((17.67*id(bme280_temperature).state)/
|
||||
(243.5+id(bme280_temperature).state)))/(17.67-log(id(bme280_humidity).state/100)-
|
||||
|
||||
Reference in New Issue
Block a user