# \[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:** 8

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [April 29, 2021, 10:02am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/147 "2021-04-29T10:02:54Z")

</div>

I am looking for a simpler solution for the problem described below:

I want to start a dim transition with a wall switch, connected to a Shelly 1L.  
But I want the duration of the transition to be adjusted to the dim level of the lamp. For example, if the dim level is 1.0, the transition should have a duration of 10 seconds and 20 steps. If the dim level is 0.5, the transition duration should be 5 seconds and be done in 10 steps.

Because you can use tags in the transition flows, but can’t do math with the tags, I created a flow to calculate the duration and step level.  
See below:  
[https://homey.app/f/M9F3tA](https://homey.app/f/M9F3tA)

Ik know I can leave out the first logic variable called Woonkamer Plafondlamp Dinwaarde, because this is just the dim level from the lamp. I just made this variable so I can see it changes during the transition in my list of variables.

With the variables, I created the transition flow:  
[https://homey.app/f/MuA4tA](https://homey.app/f/MuA4tA)  
I had to disable the first flow, because otherwise Homey disables that flow because it gets triggered too much.

I was hoping I could somehow make the flows easier or use less variables, because I’ve got to program a lot of flows and variables for a lot of lamps…  
Are there ways to incorporate or calculate dim duration and number of steps without using the first flow?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [April 29, 2021, 12:40pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/148 "2021-04-29T12:40:02Z")

</div>

This is probably better done by a routine in HomeyScript.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [April 29, 2021, 12:40pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/149 "2021-04-29T12:40:47Z")

</div>

I’m not really familiar with writing scripts in HomeyScript. Do you have an idea how to do that?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [April 29, 2021, 12:46pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/150 "2021-04-29T12:46:15Z")

</div>

Start by reading and understanding the examples and try to make changes, and for specific problems, ask for assistance here, but not for complete solutions.

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [April 29, 2021, 1:23pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/151 "2021-04-29T13:23:40Z")

</div>

@TheFops: I didn’t read the whole story, but it looks like you are using Chronograph (very useful app by the way) to recreate something that [[APP] Splines](https://community.homey.app/t/app-splines/40884) does way better, maybe you should look there.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [April 29, 2021, 1:27pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/152 "2021-04-29T13:27:35Z")

</div>

Thanks for the suggestion, but to me it seems that splines is more useful for times during the day. But I just want to start a transition with a wall switch…Or am I wrong?

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [April 29, 2021, 1:46pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/153 "2021-04-29T13:46:51Z")

</div>

How you want to start a transition is not that important, but what you want isn’t a lineair function. Transitions are lineair, splines are not, so that is why I think they are a much better fit.

I do not know the shelly device that well, but if the button is also directly controlling the bulb that you want to apply the transition to then that is a challenge in its own, regardless of the kind of transition you use. Then you are bound have the bulp start in the wrong brightness and also at risk of ending up in an infinite loop.

Reading up un your example again, your needs are lineair. But your problem is that the the transition is determined by the thing you want to transition, so you are looking at the infinite loop trouble too. The trigger MUST be something else then the dim value. You can use the the dim value in the then part of the trigger to calculate the transition though, as long as you calculate all the things you need then.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [April 29, 2021, 9:30pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/154 "2021-04-29T21:30:20Z")

</div>

The Shelly device is not connected to the lamp. I just use the Shelly’s as a wall switch input, they don’t have an output (they are linked to the light bulb, but the switch doesn’t switch the bulb on or off. It just acts as an event action).

I’m not sure that I understand the second part of your reoonse correctly, but from what I see is that my transition is linear, only the starting point and therefor the duration is different each time.It would be nice to use some simple math in the transition values, but from what I see, that isn’t an option.

Usinf splines won’t solve my problem either, because X would then be dim level and Y as well, so I’m not sure how that would help me.

PS: maybe I should start a espérate topic for my problem? Because maybe it’s not only related to the Chronograph app…

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [April 30, 2021, 5:20pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/155 "2021-04-30T17:20:42Z")

</div>

If you calculate the values using logic cards in the flow that is triggered by the shelly, you could use the variables with the calculation when starting your transition.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [April 30, 2021, 5:50pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/156 "2021-04-30T17:50:07Z")

</div>

I guess there has to be a 1 second delay for starting the transition after calculating the values, right?

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [April 30, 2021, 5:58pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/157 "2021-04-30T17:58:57Z")

</div>

Due to Homey doing things asynchronously yes. It could be prevented I guess if you trigger on the change if the variable, but that would involve daisychaining multiple flows for each variable and resetting the variable afterwards.

A better option could be to calculate the values in an and condition using Homeyscript. That is always evaluated before then. You can set local tags from Homeyscript I believe.

---

<div class="post-metadata">

**Author:** ![Bug](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bug/32/16493_2.png) [@Bug](https://community.homey.app/u/Bug)\
**Post date:** [May 21, 2021, 9:25am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/158 "2021-05-21T09:25:42Z")

</div>

Anyone having trouble with the delay option currently?  
My 10 minute delays currently fail with [object Object] error somehow…  
@BobKersten zou je eens een blik kunnen werpen? Vertraging van 60 seconden werkt wel maar bij 120 seconden geeft hij al bovenstaande error. Het is ook op andere homeys getest op het Facebook forum.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [May 27, 2021, 1:28pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/160 "2021-05-27T13:28:23Z")

</div>

I thought there was a bug, but I just misspelled my timers. All’s good.

Very nice app! Thanks @BobKersten

---

<div class="post-metadata">

**Author:** ![Dennis\_van\_Dinter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_van_dinter/32/28180_2.png) [@Dennis\_van\_Dinter](https://community.homey.app/u/Dennis_van_Dinter)\
**Post date:** [July 25, 2021, 7:29am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/161 "2021-07-25T07:29:18Z")

</div>

@BobKersten

Hi all,

A few posts back I read the differences between this app and the countdown app. One difference was mentioned as a pro function in the Countdown app:

- The timer is available as a variable and can be read at any time, not only when the timer has stopped (Chronograph)

Is it possible to use the Chronograph app in a easy way to get the current value of a running timer?

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [July 25, 2021, 8:40am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/162 "2021-07-25T08:40:39Z")

</div>

Add it as a device.

---

<div class="post-metadata">

**Author:** ![Dennis\_van\_Dinter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_van_dinter/32/28180_2.png) [@Dennis\_van\_Dinter](https://community.homey.app/u/Dennis_van_Dinter)\
**Post date:** [July 25, 2021, 8:53am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/163 "2021-07-25T08:53:41Z")

</div>

Will do and test! Thanks.

---

<div class="post-metadata">

**Author:** ![Fred\_de\_Goede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_de_goede/32/13510_2.png) [@Fred\_de\_Goede](https://community.homey.app/u/Fred_de_Goede)\
**Post date:** [August 22, 2021, 5:29pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/164 "2021-08-22T17:29:57Z")

</div>

Having issues step ignoring Chronograph transition.  
My flows exists of two flows

Flow one

.  
Flow two

When I start flow one it gives me information about step level timeline.  
The problem is that most of the time I’m missing a step.  
Homey CPU is not overloaded at the running time.  
Timeline is not the issue because “paperline Log” is running parralel with timeline and swows the same missing step.  
Anyone can help me?

 ![Screenshot_20210822-192628_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0158d9e8f6d78bfd29eb49534792eb65046d755.jpeg)

-=-=- Log Cleared from Settings page 20210822191255] -=-=-  
2021-08-22 19:13.15 Test 0 0 true false  
2021-08-22 19:15.15 Test 120 2 false false  
2021-08-22 19:16.15 Test 180 3 false false  
2021-08-22 19:17.15 Test 240 4 false false  
2021-08-22 19:18.15 Test 300 5 false false  
2021-08-22 19:19.15 Test 360 6 false false  
2021-08-22 19:20.15 Test 420 7 false false  
2021-08-22 19:21.15 Test 480 8 false false  
2021-08-22 19:22.15 Test 540 9 false false  
2021-08-22 19:23.15 Test 600 10 false true

---

<div class="post-metadata">

**Author:** ![Paul\_Phillips](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_phillips/32/16669_2.png) [@Paul\_Phillips](https://community.homey.app/u/Paul_Phillips)\
**Post date:** [September 3, 2021, 11:24pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/165 "2021-09-03T23:24:38Z")

</div>

I’ve created a flow to start the transition, and another flow triggered on the transition reaching a value. When the second flow runs, it doesn’t seem to apply the transition value in an action to Dim to that value. I can use the TransitionValue ina notification but the dim action doesn’t work. Am I missing something in the workflow?

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [September 4, 2021, 3:51am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/166 "2021-09-04T03:51:13Z")

</div>

Most likely is that the transition value is not in the proper range for dimming. The UI speaks of percentages but the actual value is 0 to 1 and not 0 to 100.

---

<div class="post-metadata">

**Author:** ![Paul\_Phillips](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_phillips/32/16669_2.png) [@Paul\_Phillips](https://community.homey.app/u/Paul_Phillips)\
**Post date:** [September 4, 2021, 7:52am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/167 "2021-09-04T07:52:48Z")

</div>

Thanks for that, it’s working perfectly now!

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

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