mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-12 20:10:50 +01:00
Lambda over multiple lines. |- added (#1173)
This commit is contained in:
parent
368564e659
commit
6d4f74e9e6
@ -56,7 +56,8 @@ After validating the sensor is working, we can proceed and add some formulas.
|
||||
unit_of_measurement: 'g/m³'
|
||||
- platform: template
|
||||
name: "Dew Point"
|
||||
lambda: return (243.5*(log(id(bme280_humidity).state/100)+((17.67*id(bme280_temperature).state)/
|
||||
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)-
|
||||
((17.67*id(bme280_temperature).state)/(243.5+id(bme280_temperature).state))));
|
||||
unit_of_measurement: °C
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in New Issue
Block a user