Lambda over multiple lines. |- added (#1173)
This commit is contained in:
parent
368564e659
commit
6d4f74e9e6
|
@ -56,9 +56,10 @@ After validating the sensor is working, we can proceed and add some formulas.
|
||||||
unit_of_measurement: 'g/m³'
|
unit_of_measurement: 'g/m³'
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Dew Point"
|
name: "Dew Point"
|
||||||
lambda: return (243.5*(log(id(bme280_humidity).state/100)+((17.67*id(bme280_temperature).state)/
|
lambda: |-
|
||||||
(243.5+id(bme280_temperature).state)))/(17.67-log(id(bme280_humidity).state/100)-
|
return (243.5*(log(id(bme280_humidity).state/100)+((17.67*id(bme280_temperature).state)/
|
||||||
((17.67*id(bme280_temperature).state)/(243.5+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
|
unit_of_measurement: °C
|
||||||
icon: 'mdi:thermometer-alert'
|
icon: 'mdi:thermometer-alert'
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in New Issue