# \[APP\]\[Pro\] Timey - Make your time flows dynamic with variables

**URL:** <https://community.homey.app/t/app-pro-timey-make-your-time-flows-dynamic-with-variables/118139>\
**Category:** Apps\
**Tags:** app, flow, homey-pro\
**Created:** [October 14, 2024, 5:09pm UTC](https://community.homey.app/t/app-pro-timey-make-your-time-flows-dynamic-with-variables/118139 "2024-10-14T17:09:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kjeet90](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kjeet90/32/45190_2.png) [@kjeet90](https://community.homey.app/u/kjeet90)\
**Post date:** [October 14, 2024, 5:09pm UTC](https://community.homey.app/t/app-pro-timey-make-your-time-flows-dynamic-with-variables/118139/1 "2024-10-14T17:09:58Z")

</div>

# Timey

Use text variables in time flow cards with a 24-hour format: ‘H:mm’, ‘H.decimal’ or ‘H’

00:00 is the earliest, 23:59 is the latest.

### Current version

- Stable: [1.5.0](https://homey.app/en-us/app/no.kjeet90.timey)
- Test:

### Why a own app for time flow cards?

I wanted to set the time in one place and have it reflect in all my flows. The built in time flow cards does not support to set the time through variables, and the alarms did not have all the flow cards I needed. So I made a app which behaves like the built in time flow cards, just with the option to set the time with text variables. Maybe you’ll find it useful too?

Tip: Add the time to the variable name to make it more readable in the flows.  
 ![variable-name](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/70f280f2e32868659034d2ea5aae222f4402ea4c.png)  
 ![flow-with-variable](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/475ced6a835b57520e2a99bba3824ebf78705f4b.png)

You can of course also use a normal text input directly as a timestamp.  
 ![flow-with-text](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40275d72c787328eba1be429da4dd5f4389a30f8.png)

* * *

# Formats

Three formats are accepted.

## 1. Exact time (HH:mm)

- 00:00

- 01:05

- 12:30

- 23:59

**Notes:** Minutes must be two digits (strict). Hours may be 1 or 2 digits (0–23).

This format also accepts wildcards

## 2. Decimal hours (H.decimal)

- 7.5 → 07:30

- 12.25 → 12:15

## 3. Single hours (H)

- 2 → 02:00

- 14 → 14:00

## Invalid formats

### Single-digit minutes

- 23:3

- 0:5

- 12:7

**Notes:** Minutes must be two digits unless a wildcard is used.

### Invalid hour or minute numbers

- 24:00 → hour too high

- 12:60 → minute too high

- -1:00 → negative hour

- 12:-5 → negative minute

### Invalid wildcard usage

- `*:*1*` → ❌ mixed wildcard in one field

- `**:*` → ❌ double `*` in a field

- `20:4**` → ❌ double `*` in minutes

# Wildcards

Wildcards can only be used in the Exact time HH:mm format

## Full wildcard (_:_)

- `*:*` → every hour and every minute

**Notes:** Colon is mandatory; both hour and minute are required.

## Hour wildcard (\*) only

- `*:00` → every hour at minute 00

- `*:30` → every hour at minute 30

- `*:45` → every hour at minute 45

## Minute wildcard (\*) only

- `12:*` → hour 12, every minute

- `1*:*` → hours 10–19, every minute

- `2*:*` → hours 20–23, every minute

## Prefix wildcard (n\*)

- `1*:00` → hours 10–19, minute 00

- `2*:30` → hours 20–23, minute 30

- `20:4*` → hour 20, minutes 40–49

## Suffix wildcard (\*n)

- `*1:30` → hour ends with 1 (1, 11, 21), minute 30

- `2*:*0` → hours 20–23, minutes ending with 0 → 20:00, 20:10 … 23:50

- `*:*5` → every hour, minutes ending in 5 → 00:05, 01:05 … 23:55

**Notes:** Both hour and minute can have prefix or suffix wildcards, but a single field cannot have both (e.g., `*1*` is invalid).

# Expressions

You can use expressions to set the timestamp. You have two options, BLL or Homeys built in logic, but the result of the expressions needs to match the valid timestamps as mentioned above.

## Better Logic Library

You need to first have the Better Logic Library (BLL) installed: [Homey App Store](https://homey.app/en-us/app/net.i-dev.betterlogic/Better-Logic-Library/)

Then wrap your expressions with brackets like this: `{[expression]}` and the result must match one of the valid formats mentioned above

Read more about BLL here: [Community Topic](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)

## Homeys built in logic

Use Homeys built in expression brackets: `{{ expression }}`

# Changelog

## 1.5.0

- Added wildcard support

## 1.4.1

### Bugfix

- Fixed issue where decimal to timestamp would sometimes be incorrect

## 1.4.0

### Feature

- Added time1 is earlier/later than time2 flow cards.

### Bugfix

- Fixed wording in existing earlier/later flow cards

## 1.3.0

### Feature

- Added support for BetterLogicLibrary

## 1.2.0

### Feature

- Added support ‘H’ format

## 1.1.1

- Bugfixes

## 1.1.0

### Feature

- Added support for ‘H.decimal’ format

## 1.0.1

- Updated app description

## 1.0.0

- Initial version

## Issues and bugs 🐛

Bugs should be reported [here](https://github.com/kjeet90/homey-timey/issues)

## Donations 💰

If you like this app, please consider donating [through paypal](https://www.paypal.com/paypalme/kjetilhaugland)

---

_[View the full topic](https://community.homey.app/t/app-pro-timey-make-your-time-flows-dynamic-with-variables/118139)._
