binary_sensor:
  - platform: template
    id: duty_time_bin1
    lambda: |-
      if (millis() > 10000) {
        return true;
      }
      return false;

sensor:
  - platform: duty_time
    name: Duty Time
    sensor: duty_time_bin1
