esphome/tests/components/duty_time/common.yaml

15 lines
232 B
YAML
Raw Normal View History

binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
} else {
return false;
}
sensor:
- platform: duty_time
name: Duty Time
sensor: bin1