Chronograph

Bob Kersten

Adds precise timer, stopwatch and transition functionality to Homey.

FEATURES * Self-explanatory flow cards for easy integration of timers, stopwatches and transitions in your home automation, * Create timers, stopwatches and transitions directly from flow cards, no need for a prior configuration, * Start timers with a duration in milliseconds (fractional seconds), seconds, minutes, hours or days, * Start stopwatches without a predefined end time, * Start transitions to gradually change a device parameter over time, * Trigger flows at exact timer- or stopwatch durations with millisecond (fractional seconds) precision, * Pause and resume timers, stopwatches and transitions with action cards or from within settings, * Support for random or computed durations or adjustments using simple math expressions, * All timers, stopwatches and transitions are persistent across Homey restarts, * Target multiple timers, stopwatches and transitions at once using wildcards in supported cards. SIMPLE MATH EXPRESSIONS The start, resume and adjust action cards have built-in support for simple math expressions. This allows for random or computed timer and stopwatch durations, including calculations based on token values. For example: ceil(99.5) / 5 pick(1, 3, 5, 9) * 2 random(10, 30) abs(-10) In addition to basic math expressions, the following functions are supported: * abs(x) - calculate the absolute value of a number, * ceil(x) - rounds a number up to the next whole number, * floor(x) - rounds a number down to the previous whole number, * round(x) - rounds a number towards the nearest whole number, * random(min, max) - a random number larger or equal to min and smaller than max, * min(x, y) - the lowest number from the supplied list, * max(x, y) - the largest number from the supplied list, * pick(x, y[, n]) - pick a random value from the supplied list. HOMEYSCRIPT In addition to the available flow cards, timers and stopwatches can also be controlled using [HomeyScript](https://homeyscript.homey.app). For example, this script will stop all running timers: let app = await Homey.apps.getApp({id:'nl.fellownet.chronograph'}); app.apiGet('/timers').then(result => { let timers = JSON.parse(result); timers.forEach(timer => { app.apiDelete('/timers/' + timer.id); }); }); * GET /timers - retrieve a list of all active timers, * GET /timers/:id - retrieve a single timer, * PUT /timers/:id - pause or resume a timer, * DELETE /timers/:id - stops a timer. * GET /stopwatches - retrieve a list of all active timers, * GET /stopwatches/:id - retrieve a single timer, * PUT /stopwatches/:id - pause or resume a timer, * DELETE /stopwatches/:id - stops a timer. * GET /transitions - retrieve a list of all active transitions, * GET /transitions/:id - retrieve a single transition, * PUT /transitions/:id - pause or resume a transition, * DELETE /transitions/:id - stops a transition.
What's new in v1.1.1
Ability to delay the execution of flows. Additional tokens for transition cards. Simplified monitoring of timers, stopwatches and transitions.
Homey Pro
Homey beta

Supported devices

Stopwatch
Timer
Transition

Flow cards

Click on a device above to show related Flow cards only.

When...

Chronograph
Stopwatch Name is started
i
This card is activated when a stopwatch with the provided name is started.
Chronograph
Timer Name is started
i
This card is activated when a timer with the provided name is started.
Chronograph
Transition Name is started
i
This card is activated when a transition with the provided name is started.
Chronograph
Timer Name is finished
i
This card is activated when a timer with the provided name is finished, not when a timer is prematurely stopped.
Chronograph
Transition Name is finished
i
This card is activated when a transition with the provided name is finished, not when a transition is prematurely stopped.
Chronograph
Stopwatch Name is stopped
i
This card is activated when a stopwatch with the provided name is stopped.
Chronograph
Timer Name is stopped
i
This card is activated when a timer with the provided name is prematurely stopped, not when a timer is finished.
Chronograph
Transition Name is stopped
i
This card is activated when a transition with the provided name is prematurely stopped, not when a transition is finished.
Chronograph
Stopwatch Name has reached a duration of Duration Unit
i
This card is activated when a stopwatch with the provided name has reached a specific duration.
Chronograph
Timer Name has reached a duration of Duration Unit
i
This card is activated when a timer with the provided name has reached a specific duration.
Chronograph
Transition Name has reached a step
i
This card is activated when a transition with the provided name has reached a step.
Chronograph
Stopwatch Name is paused
i
This card is activated when a stopwatch with the provided name is paused.
Chronograph
Timer Name is paused
i
This card is activated when a timer with the provided name is paused.
Chronograph
Transition Name is paused
i
This card is activated when a transition with the provided name is paused.

And...

Chronograph
Stopwatch Name is running
i
Use this card to run or cancel a flow depending on the run state of the stopwatch with the provided name.
Chronograph
Timer Name is running
i
Use this card to run or cancel a flow depending on the run state of the timer with the provided name.
Chronograph
Transition Name is running
i
Use this card to run or cancel a flow depending on the run state of the transition with the provided name.
Chronograph
Stopwatch Name has a duration longer than Duration Unit
i
Use this card to run or cancel a flow depending on the duration of the stopwatch with the provided name.
Chronograph
Timer Name has a duration longer than Duration Unit
i
Use this card to run or cancel a flow depending on the duration of the timer with the provided name.
Chronograph
Transition Name has a duration longer than Duration Unit
i
Use this card to run or cancel a flow depending on the duration of the transition with the provided name.
Chronograph
A delay of Duration Unit has passed
i
Use this card to delay executing the then flow cards.

Then...

Chronograph
Start or replace stopwatch Name
i
Use this card to start a stopwatch with the provided name. If a stopwatch with the same name is already running, it is replaced.
Chronograph
Start or replace timer Name with a duration of Duration Unit
i
Use this card to start a new timer with the provided name and duration. If a timer with the same name already exists, it is replaced.
Chronograph
Start or replace timer Name with a duration of Duration Unit
i
Use this card to start a new timer with the provided name and duration. If a timer with the same name already exists, it is replaced.
Chronograph
Start or replace transition Name from From to To in Steps steps during Duration Unit
i
Use this card to start a new transition with the provided name, duration and steps. If a transition with the same name already exists, it is replaced.
Chronograph
Start or resume stopwatch Name
i
Use this card to start a stopwatch with the provided name. If a stopwatch with the same name is already running, it is resumed.
Chronograph
Start or resume timer Name with a duration of Duration Unit
i
Use this card to start a new timer with the provided name and duration. If a timer with the same name already exists, it is resumed.
Chronograph
Start or resume timer Name with a duration of Duration Unit
i
Use this card to start a new timer with the provided name and duration. If a timer with the same name already exists, it is resumed.
Chronograph
Start or resume transition Name from From to To in Steps steps during Duration Unit
i
Use this card to start a new transition with the provided name, duration and steps. If a transition with the same name already exists, it is replaced.
Chronograph
Pause stopwatch Name
i
Use this card to pause a stopwatch with the provided name.
Chronograph
Pause timer Name
i
Use this card to pause a timer with the provided name.
Chronograph
Pause transition Name
i
Use this card to pause a transition with the provided name.
Chronograph
Adjust stopwatch Name with a duration of Adjustment Unit
i
Use this card to adjust the duration of the stopwatch with the provided name. Use a positive duration to extend the stopwatch, or a negative duration to shorten the stopwatch.
Chronograph
Adjust stopwatch Name with a duration of Adjustment Unit
i
Use this card to adjust the duration of the stopwatch with the provided name. Use a positive duration to extend the stopwatch, or a negative duration to shorten the stopwatch.
Chronograph
Adjust timer Name with a duration of Adjustment Unit
i
Use this card to adjust the duration of the timer with the provided name. Use a positive duration to extend the timer, or a negative duration to shorten the timer.
Chronograph
Adjust timer Name with a duration of Adjustment Unit
i
Use this card to adjust the duration of the timer with the provided name. Use a positive duration to extend the timer, or a negative duration to shorten the timer.
Chronograph
Adjust transition Name with a duration of Adjustment Unit
i
Use this card to adjust the duration of the transition with the provided name. Use a positive duration to extend the transition, or a negative duration to shorten the transition.
Chronograph
Stop stopwatch Name
i
Use this card to stop a stopwatch with the provided name.
Chronograph
Stop timer Name
i
Use this card to stop a timer with the provided name.
Chronograph
Stop transition Name
i
Use this card to stop a transition with the provided name.
Chronograph
Stop all stopwatches
i
Use this card to stop all stopwatches.
Chronograph
Stop all timers
i
Use this card to stop all running timers.
Chronograph
Stop all transitions
i
Use this card to stop all running transitions.

Reviews

This app has no reviews yet.

You can leave a review once you're using this app.

Thank you for your review.

Submit review

Write a review

Support

Having an issue with this app? Contact the developer via the Homey Community Forum.

Install Chronograph on

Chronograph will install on Homey shortly.

Install

Be the first to hear about Homey’s latest developments.

Subscribe to our newsletter and be on top-of-mind about new Homey features, exclusive offers and more.