# Introducing Apilio's native time conditions

**URL:** <https://community.apilio.com/t/introducing-apilios-native-time-conditions/997>\
**Category:** Apilio Updates\
**Tags:** conditions\
**Created:** [22 July 2020 08:57 UTC](https://community.apilio.com/t/introducing-apilios-native-time-conditions/997 "2020-07-22T08:57:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anna](https://community.apilio.com/user_avatar/community.apilio.com/anna/32/72_2.png) [@Anna](https://community.apilio.com/u/Anna)\
**Post date:** [22 July 2020 08:57 UTC](https://community.apilio.com/t/introducing-apilios-native-time-conditions/997/1 "2020-07-22T08:57:33Z")

</div>

Hi everyone!

Today we are introducing our **first native time conditions**! We know this has been requested many times and was long overdue, so, finally, you’ll be able to start setting up time conditions within Apilio 🕰

# Timeframe conditions in Apilio

In this first release you’ll be able to setup **timeframes for your automations** so you can make sure your logicblocks can only run on a specific schedule. For example:

- If your living room fan should turn on given a specific indoor temperature, but only during specific times of the day
- If you only want to turn on lights automatically when you are getting home, but only on specific days of the week
- If you want to limit the times of the day when your heater is turned on, but only during specific months of the year.

## 1. It’s a day of the week

 ![image](https://community.apilio.com/uploads/default/original/1X/d5aaf1a43ea3e54f57eb6cbb512067de880c5019.png)

Choose one or a few days of the week when your logic is allowed to run.

## 2. It’s between X and Y times

 ![image](https://community.apilio.com/uploads/default/original/1X/7bc8ef03672504038da8bdd3b0f6b5fbc4843348.png)

For example, you can setup:

- Between 10:05 AM and 5:23 PM

## 3. Advanced setup with cron expressions

 ![image](https://community.apilio.com/uploads/default/original/1X/add5d7c431a7d470bca6c21d71d452c5c1bb6acc.png)

> [@Cron time conditions - Intro and how to set them up](https://community.apilio.com/t/cron-expressions-intro-and-how-to-set-them-up/1010/):
>
> With our release of time conditions, we wanted to stay true to our tinkering roots and add an advanced time condition configuration through cron expressions. If you are familiar with these: this is exciting, right star_struck? And if you have never heard about them, don’t worry, as you can read more about them below and you’ll be using them in no time! What’s a cron expression? [image] A cron expression is a string that represents a schedule when you want to execute a routine. For example in…

## Using the new time conditions

These new conditions work similar to our current conditions, but you won’t have to setup any variables: just choose your time condition with the different time pickers and add a name to your condition. Once the time condition is created, you’ll be able to use it in any logicblock.  
Here’s a detailed article with step-by-step instructions to set these up:

> [@How to setup and use time conditions](https://community.apilio.com/t/how-to-setup-and-use-time-conditions/1012):
>
> In Apilio, you can setup time conditions to control when your actions are allowed to run. Conditions are the rules in your Logicblocks (your routines). Time Conditions are particularly handy as they allow you to reliably schedule automated activities at home or at work. Let’s see how you can set these Conditions up: What’s a Time Condition? Time Conditions relate to times of the day, the week, the month or the year, so they restrict the times when a specific logic can be run. Time events an…

You can combine multiple conditions using the simple AND or use the complex condition linking or the cron expression if you want to get really specific.

# What’s not ready yet

These conditions are not “triggering”: the logicblock is not evaluated at the start of the timeframe specified, but we have plans to make this an option you can control, as well as introducing new native time triggers!

Time control is going to get very interesting in following releases, so watch this space 👀

 ![dr strange time conditions](https://community.apilio.com/uploads/default/original/1X/adbb10a202abe39a85849771fa2de89b528e0ae4.jpeg)  
In this image: actual representation of an Apilio user setting up his time conditions.

---

<div class="post-metadata">

**Author:** ![Drivingforce](https://community.apilio.com/user_avatar/community.apilio.com/drivingforce/32/73_2.png) [@Drivingforce](https://community.apilio.com/u/Drivingforce)\
**Post date:** [29 July 2020 15:31 UTC](https://community.apilio.com/t/introducing-apilios-native-time-conditions/997/2 "2020-07-29T15:31:29Z")

</div>

Thanks, works great especially Cron 😄  
and I was just about to make a couple of suggestions but read your post again and realised you already had them covered in future release 👍

---

<div class="post-metadata">

**Author:** ![Anna](https://community.apilio.com/user_avatar/community.apilio.com/anna/32/72_2.png) [@Anna](https://community.apilio.com/u/Anna)\
**Post date:** [29 July 2020 15:36 UTC](https://community.apilio.com/t/introducing-apilios-native-time-conditions/997/3 "2020-07-29T15:36:28Z")

</div>

The cron setup is pretty powerful 😁 I’m a big fan!
