mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-20 03:11:17 +02:00
Update travis
This commit is contained in:
parent
dd5f63036f
commit
e6ef84dc1a
@ -125,8 +125,8 @@ Other notable changes
|
||||
|
||||
on_...:
|
||||
then:
|
||||
- switch.turn_on:
|
||||
id: my_switch
|
||||
- switch.turn_on:
|
||||
id: my_switch
|
||||
|
||||
You can now write:
|
||||
|
||||
@ -134,7 +134,7 @@ Other notable changes
|
||||
|
||||
on_...:
|
||||
then:
|
||||
- switch.turn_on: my_switch
|
||||
- switch.turn_on: my_switch
|
||||
|
||||
Or even shorter:
|
||||
|
||||
|
@ -41,8 +41,8 @@ After validating the sensor is working, we can proceed and add some formulas.
|
||||
- platform: template
|
||||
name: "Absolute Humidity"
|
||||
lambda: |-
|
||||
const float mw = 18.01534; // molar mass of water g/mol
|
||||
const float r = 8.31447215; // Universal gas constant J/mol/K
|
||||
const float mw = 18.01534; // molar mass of water g/mol
|
||||
const float r = 8.31447215; // Universal gas constant J/mol/K
|
||||
return (6.112 * powf(2.718281828, (17.67 * id(bme280_temperature).state) / (id(bme280_temperature).state + 243.5)) * id(bme280_humidity).state * mw) / ((273.15 + id(bme280_temperature).state) * r); // in grams/m^3
|
||||
update_interval: 15s
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in New Issue
Block a user