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

Maybe you can provide some context: What is the purpose of your flow? Why do you need ‘a lot’ of timers? And what is ‘a lot’?

You can use wildcards; “Timer*30s” stops timers like “TimerSomeName30s” and “TimerSomeotherNAME30s”.

Ah sorry, you are correct. Context is needed.
Lets put it this way.

I have 5 rooms, with 5 motion sensor (going to convert them to presence sensors soon).
These rooms will turn on the lights when motion is detected.

Then when there is no motion, they will dimm after 30 seconds, and after that they will turn off after another 30 seconds. But when motion again is detected, everything will be reset.

Sounds simple, and i can make this. But then i have to give every timer for every room a different name right?

Sorry, if i am being real beginner :slight_smile:

As an alternative to timers, you can use the standard Zone cards provided by Homey. I assume that you created a different zone for each room. Then any motion or presence sensor in that zone will normally trigger the zone activity status for the whole zone/room.

This means that you can use this card in each zone to determine what needs to happen after a certain period of time:

So of the zone is inactive for 30 seconds then you would dim your lights. You can use a second of the same trigger card to determine what needs to happen after 1 minute of inactivity: turn off the lights. Every time motion or presence is detected in the zone, Homey resets the internal zone activity timer and the process begins again. This way you need 2 of these trigger cards per zone (one for the 30 second and one for the 1 minute event).

Aah thank you! Then this should work:

Yes, Indeed. I am not sure though whether the zone card accepts values smaller than 1 (minute). So it might be that 30 secs is not an option for these cards. But you’ll find out soon :wink:.

For your information, the cards work with 0.5 :wink:

Hi There!
Does anyone know if you can change the display of the time units in stopwatch view?
I’m running a stopwatch for multiple hours and it would be convenient to view in minutes or hours.
Thanks in advance!

I am not sure whether that is possible.

As an alternative, you can create an Advanced Virtual Device, using the Device Capabilities app, that included a timer ‘sensor’. The AVD allows you to directly pull the remaining time from a running Chronograph timer and format the time in the format you want.

For example, I created one AVD that contains all my Chronograph timers:

Each timer sensor is configured as a text field as follows:

The ‘BLL expression’ determines how the value is displayed. In this case minutes and seconds. But you can also add hour using the hh formatting parameter in the time function.

Yeah, if you create an Advanced Virtual Device from the device capabilities app.

Also, install the Better Logic Library app.

Then create an AVD with this field:

In the bll expression write time('M:ss')

or see the BLL settings for other Time formats

You might want H:mm:ss