# \[APP\]\[Pro\] Chronograph - Adds precise timer, stopwatch and transition functionality to Homey

**URL:** <https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214>\
**Category:** Apps\
**Tags:** app, official, tools, homey-pro\
**Created:** [September 17, 2019, 5:55am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214 "2019-09-17T05:55:42Z")\
**Posts on this page:** 20\
**Page:** 30

<div class="post-metadata">

**Author:** ![clindh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/clindh/32/60091_2.png) [@clindh](https://community.homey.app/u/clindh)\
**Post date:** [October 22, 2023, 7:36pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/599 "2023-10-22T19:36:24Z")

</div>

I have a number in a tag (a flow started with a number), and want to adjust a running timer by adding N hours to it.

I must have a negative number to add to the timer?

I tries this but cannot get it to work

 ![IMG_0041](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/25f0547e889de78de2494632628ef800cae9a865.jpeg)

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 22, 2023, 9:39pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/600 "2023-10-22T21:39:02Z")

</div>

If you want to add a number and you have -2 you maybe can multiply it with -1. The outcome is then 2. If you want to add a negative number and you have a positive number also multiply by -1

---

<div class="post-metadata">

**Author:** ![clindh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/clindh/32/60091_2.png) [@clindh](https://community.homey.app/u/clindh)\
**Post date:** [October 23, 2023, 2:00pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/601 "2023-10-23T14:00:16Z")

</div>

Thanks- but unfortunately that does not work either, maybe you cannot use tags with calculations at all in the Adjustment field.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 23, 2023, 8:24pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/602 "2023-10-23T20:24:20Z")

</div>

If I try to use a Voltage card for this flow the timer will get set to 227 minutes.  
3:47:00.  
Only when the tag get changed it will not update, you first have to stop te timer.  
Think that will work.  
Maybe @Arie_J_Godschalk has an idea to replace the timer with a tag.

 ![SmartSelect_20231023_221933_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d03cee7d96df47e7e08dbc9f4fb58cfe47cd1ae.jpeg)

---

<div class="post-metadata">

**Author:** ![clindh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/clindh/32/60091_2.png) [@clindh](https://community.homey.app/u/clindh)\
**Post date:** [October 29, 2023, 1:34pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/603 "2023-10-29T13:34:51Z")

</div>

> [@clindh](#):
>
> Thanks- but unfortunately that does not work either, maybe you cannot use tags with calculations at all in the Adjustment field.

I figured out now why it does not work for me - I missed the constraint “_One can’t extend the duration, when the new duration will be longer than the timer’s original duration_”

Is this limitation technical in nature, or a decision by the developer to enforce this rule? For my use case, I would like to start a countdown for say 1 hour. The a flow can choose to extend this countdown 15 minutes each time it is run (for example a button press on a remote), to postpone the time when the timer will reach zero. But that is not possible due to this constraint.

Any idea on how to implement what I want using Chronograph?  
If it was possible to retreive the current count of the timer using a tag/variable, I could do math and restart the timer using + 15 minutes, but I cant se that the timer value is exposed as a tag either.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [October 29, 2023, 1:47pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/604 "2023-10-29T13:47:10Z")

</div>

@clindh I believe there is a Recieve Duration flowcard.

---

<div class="post-metadata">

**Author:** ![clindh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/clindh/32/60091_2.png) [@clindh](https://community.homey.app/u/clindh)\
**Post date:** [October 29, 2023, 2:33pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/605 "2023-10-29T14:33:55Z")

</div>

Excellent, found it - in Advanced only, but that’s OK - I’ll switch to Advanced Flow for this flow.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 29, 2023, 3:30pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/606 "2023-10-29T15:30:11Z")

</div>

Afaik you can _adjust_ a timer’s duration towards zero, or towards the defined duration, when you want a _longer_ time than the defined duration, you can use the card “Start or replace timer X”, and just enter a duration of your likings. _Disadvantage_, the new duration will be the default timer’s duration…

> [@Peter\_Kawa](#):
>
> _+30mins fastforwards_ the timer, _-30mins rewinds_ the timer

> [@clindh](#):
>
> If it was possible to retreive the current count of the timer using a tag/variable

I see you just found it, but I just finished my example flow, so I’ll share it anyways 😛

 ![Screenshot from 2023-10-29 16-20-36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/64f55fd0b171c2b6d5f46e9fcbfcaf22ecaf8d7b.png)

 ![Screenshot from 2023-10-29 16-20-46](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53253a91468771d21f35207e64b6b42c984857a9.png)

LOG output

> ![Screenshot from 2023-10-29 16-21-34](https://us1.discourse-cdn.com/flex025/uploads/athom/optimized/3X/8/2/822ea0c0f65f64280692f5bd4dce6de107369bd1_2_690x26.png)

---

<div class="post-metadata">

**Author:** ![Olex](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olex/32/79016_2.png) [@Olex](https://community.homey.app/u/Olex)\
**Post date:** [December 9, 2023, 2:46pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/607 "2023-12-09T14:46:52Z")

</div>

Great app!  
This app is overwhelming for a newbie…

The countdown app has this function:  
“Examples: When motion is detected, turn on light and start a timer for 90 seconds  
After 11 seconds, when motion is detected again, restart the timer for 90 seconds  
When the timer reaches 0, there was no motion for 90 seconds, turn off the light”.

I guess this app(Chronological) also has the same function?

Thanks, from a newbie with Homey 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 9, 2023, 5:08pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/608 "2023-12-09T17:08:13Z")

</div>

Here’s some example flows

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/8):
>
> Zone Activity Controlled Light / Device To prevent the light (or other device) from turning off (or on), while there’s still motion detected. It uses Homey’s Zone Activity AND a timer. This way your motion- & contactsensors become exchangeable and expandable, without having to fix the flow. This way, you can add a sensor, remove one (use 1 sensor minimum), use one with another protocol (f.i. zigbee/wifi/z-wave) in a zone. Apps used [Chronograph](https://homey.app/a/nl.fellownet.chronograph/)Flow example:

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/26):
>
> Motion and Presence activated Light/Device with Sunset condition This flow triggers a light when a motion sensor triggers, or a person enters the home location. With both events, the light turns off after 5 minutes, IF there’s no motion detected in the mean time. Apps used: [Chronograph](https://homey.app/nl-nl/app/nl.fellownet.chronograph) TEF: [TEF:FLOWS:H4sIAAAAAAACA7VWy24jNxD8FYFn94bvh67JIYfNaXNbGEaTbFoDSCNhNPbGMPzv6RlJgZ/YQeIcpBE5ZLO6q6qpR1HF+lH45Jpp0YHzSGBDkoA+e3C5lOgMVaPstK4Xa/EVd4fV77gV…

---

<div class="post-metadata">

**Author:** ![rizzah](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rizzah/32/79804_2.png) [@rizzah](https://community.homey.app/u/rizzah)\
**Post date:** [December 11, 2023, 6:23pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/610 "2023-12-11T18:23:40Z")

</div>

Hi,

I noticed that timers don’t finish and just ‘stalls’ like below picture. This of course results (in my case) lights not being turned off. It’s never the same amount of remaining seconds and it happens with multiple timers in different flows. It happens quite often. I use the Chronograph app. Anyone know what could cause this?

![Screenshot 2023-12-11 at 19.19.59](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/b/6b7389a8a819d689fe298ffc6c3017f3ab07e53d.png)

Regads,  
Peter

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [December 16, 2023, 9:30am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/612 "2023-12-16T09:30:34Z")

</div>

When it stalls, please send me a diagnostic.

---

<div class="post-metadata">

**Author:** ![MeneerSjon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meneersjon/32/57099_2.png) [@MeneerSjon](https://community.homey.app/u/MeneerSjon)\
**Post date:** [December 16, 2023, 11:58am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/613 "2023-12-16T11:58:35Z")

</div>

Hi, I am running the Chronograph app (version 2.1.2) on Homey Pro 2019. Since Homey has been upgraded to version 10.0.4 the Stop Timer cards give an error “Timer xxx loopt niet” and stop the flow (or follow the red error line in advanced flows if connected) when they are called while the selected timer is not running. These used to just continue the flow normally when the timer was not running.  
Is this an intended change? If so, then I would have to add a check to see if the timer is running before calling the Stop Timer card in all my flows (which are a lot of them).

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [December 16, 2023, 1:51pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/614 "2023-12-16T13:51:55Z")

</div>

> [@MeneerSjon](#):
>
> Is this an intended change?

Not afaik.

> [@MeneerSjon](#):
>
> These used to just continue the flow normally when the timer was not running.

Well, im not sure about that.  
I just checked the sourcode to be curtain, and afaik, this has always been the case.  
At least, from the moment i took this app over, about a year ago, it has always been the case that an error will be thrown whenever you try to stop a timer that is not running:

Here is the sourcecode from 17-10-2022, version 1.1.2, when i took over. It already shows the Error when a timer is not running.

```auto
let id = Utils.generateId(ChronographType.TIMER, args.name);
let timer = Chronograph.get(id);
if (!!timer) {
	timer.stop();
	return Promise.resolve(true);
}
return Promise.reject(new Error(Homey.__("timer_not_running", { "name": args.name })));

```

---

<div class="post-metadata">

**Author:** ![MeneerSjon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meneersjon/32/57099_2.png) [@MeneerSjon](https://community.homey.app/u/MeneerSjon)\
**Post date:** [December 17, 2023, 6:29pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/615 "2023-12-17T18:29:45Z")

</div>

Thanks for your quick and elaborate reply 🙂  
All my flows containing this card stopped running with the mentioned error since the last firmware update (when called while the specified timer was not running). Before the firmware update these flows kept running. Note that the timers do exist, they are only not running. Maybe the firmware update has caused some things to work differently than beforen.  
Anyway, I will work around this by adding a check if a timer is running before calling this card. And once more, thanks for your quick reply and keep up the good work with all the apps you are maintaining!

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [December 17, 2023, 8:45pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/616 "2023-12-17T20:45:31Z")

</div>

Maybe easier to connect the error connection also to where you want to continue?  
I am quit sure that stopping a non-running timer gave an error in previous verion.  
Which version did you come from?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 17, 2023, 9:00pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/617 "2023-12-17T21:00:53Z")

</div>

Can you show such a flow pls?

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [December 18, 2023, 6:32am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/618 "2023-12-18T06:32:16Z")

</div>

> [@MeneerSjon](#):
>
> Anyway, I will work around this by adding a check if a timer is running before calling this card. And once more, thanks for your quick reply and keep up the good work with all the apps you are maintaining!

You could also just not use the outgoing connection of the timer-stop card, connect the following card(s) to the same startpoint as the timer-stop card.

---

<div class="post-metadata">

**Author:** ![MeneerSjon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meneersjon/32/57099_2.png) [@MeneerSjon](https://community.homey.app/u/MeneerSjon)\
**Post date:** [December 18, 2023, 7:04am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/619 "2023-12-18T07:04:04Z")

</div>

Gents, I found the source of my own confusion… The basic flows kept running fine and they still do… If I run them using the test button I see that the card gives an error but all the other cards are still executed. That is how basic flows work (I should have known, I just overlooked that).  
For the two advanced flows which are not working as expected anymore, I now think that the timers were always running when these flows executed. I am not sure what happened last week why these timers were not running and causing the flows to break on the stop timer card. I have now changed those as adviced by Anders\_Gregow (place them in parallell flow instead of the serial flow).  
Thanks gents, for thinking along with me. It’s greatly appreciated.

---

<div class="post-metadata">

**Author:** ![rizzah](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rizzah/32/79804_2.png) [@rizzah](https://community.homey.app/u/rizzah)\
**Post date:** [December 18, 2023, 9:37am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/620 "2023-12-18T09:37:43Z")

</div>

Hi Arie, sorry for late reply. I was still doing some testing trying to find out where my issue is coming from. The timer not completing would match the behaviour i saw, however after testing some more i noticed that the timer ‘stalls’ in the browser, but not in the app. So i guess there is not a real issue what i states above.

[Previous page](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214.md?page=29)

[Next page](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214.md?page=31)
