mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
15 lines
232 B
YAML
15 lines
232 B
YAML
|
binary_sensor:
|
||
|
- platform: template
|
||
|
id: bin1
|
||
|
lambda: |-
|
||
|
if (millis() > 10000) {
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
sensor:
|
||
|
- platform: duty_time
|
||
|
name: Duty Time
|
||
|
sensor: bin1
|