Update travis
This commit is contained in:
parent
dd5f63036f
commit
e6ef84dc1a
|
@ -125,8 +125,8 @@ Other notable changes
|
||||||
|
|
||||||
on_...:
|
on_...:
|
||||||
then:
|
then:
|
||||||
- switch.turn_on:
|
- switch.turn_on:
|
||||||
id: my_switch
|
id: my_switch
|
||||||
|
|
||||||
You can now write:
|
You can now write:
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ Other notable changes
|
||||||
|
|
||||||
on_...:
|
on_...:
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: my_switch
|
- switch.turn_on: my_switch
|
||||||
|
|
||||||
Or even shorter:
|
Or even shorter:
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@ After validating the sensor is working, we can proceed and add some formulas.
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Absolute Humidity"
|
name: "Absolute Humidity"
|
||||||
lambda: |-
|
lambda: |-
|
||||||
const float mw = 18.01534; // molar mass of water g/mol
|
const float mw = 18.01534; // molar mass of water g/mol
|
||||||
const float r = 8.31447215; // Universal gas constant J/mol/K
|
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
|
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
|
update_interval: 15s
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
@ -15,7 +15,7 @@ def find_all(a_str, sub):
|
||||||
column += len(sub)
|
column += len(sub)
|
||||||
|
|
||||||
|
|
||||||
for f in sorted(Path('.').glob('*.rst')):
|
for f in sorted(Path('.').glob('**/*.rst')):
|
||||||
try:
|
try:
|
||||||
content = f.read_text('utf-8')
|
content = f.read_text('utf-8')
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
|
|
Loading…
Reference in New Issue