mirror of
https://github.com/esphome/esphome.git
synced 2026-03-28 05:39:20 +08:00
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
20 lines
406 B
YAML
20 lines
406 B
YAML
sensor:
|
|
- platform: dew_point
|
|
name: Dew Point
|
|
temperature: template_temperature
|
|
humidity: template_humidity
|
|
- platform: template
|
|
id: template_humidity
|
|
lambda: |-
|
|
if (millis() > 10000) {
|
|
return 0.6;
|
|
}
|
|
return 0.0;
|
|
- platform: template
|
|
id: template_temperature
|
|
lambda: |-
|
|
if (millis() > 10000) {
|
|
return 42.0;
|
|
}
|
|
return 0.0;
|