mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 19:44:53 +01:00
22 lines
456 B
YAML
22 lines
456 B
YAML
|
sensor:
|
||
|
- platform: absolute_humidity
|
||
|
name: Absolute Humidity
|
||
|
temperature: template_temperature
|
||
|
humidity: template_humidity
|
||
|
- platform: template
|
||
|
id: template_humidity
|
||
|
lambda: |-
|
||
|
if (millis() > 10000) {
|
||
|
return 0.6;
|
||
|
} else {
|
||
|
return 0.0;
|
||
|
}
|
||
|
- platform: template
|
||
|
id: template_temperature
|
||
|
lambda: |-
|
||
|
if (millis() > 10000) {
|
||
|
return 42.0;
|
||
|
} else {
|
||
|
return 0.0;
|
||
|
}
|