# Timer 0.8.16 test (Homey V3) - 0.7.3 beta (Homey V2) - v0.4.3 stable (Homey V1.5) - (fka Then More) add Timers to temporarily turn on devices

**URL:** <https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [November 5, 2018, 7:22pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722 "2018-11-05T19:22:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 5, 2018, 7:22pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/1 "2018-11-05T19:22:29Z")

</div>

**Timer** - fka Then More  
_Timer adds more options to the then column in your flows, to enable devices for a given amount of time._

> **[Timer | Homey](https://homey.app/en-us/app/com.synplyworks.thenmore/Timer/)**
>
> Timer adds Timer functionality in the Then clause of your flows

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/03def01283513b396c41fe188c1b45dfd57fa890.jpeg)

It is inspired by the possibilities provided by the CountDown app, but easier (and probably a bit more efficient) to use. Also thanks to other apps, like blowfish for getting me started and Heimdall for providing some examples of the code/API.

Please let me know if it works for you as well, so I can promote it to stable. For now it works for me 😉  
If you are missing functionality let me know as well, and maybe I can add it in a new version

## TODO

- Implement a capability listener to process updates of changed capability values for devices on which a timer has run

## Version history

**v0.8.16** test - Homey V3

- added lots of (stability, usability and debug) improvements by @Sharky

**v0.8.1** test - Homey V3

- fix an issue of reading a capability value

**v0.8.0** test - Homey V3

- Upgraded to SDKv3

**v0.7.3** beta - Homey V2 Only

- Fixed a bug where timers wouldn’t start anymore, after you manually turned off a device while the timer was still running

**v0.7.2** beta - Homey V2 Only

- updated athom api library, since it caches capability values, without updating them, but unfortunately without improvements
- So implemented a dumb cache overwrite myself

**v0.7.1** alpha - Homey V2 Only

- refactored code to be more consistent
- Fix retreiving capability value, instead of set
- Probably fixed an issue, where old capability values got lost
- Handle missing reference to previous timer, by logging warnings
- TODO: find out how to get an up to date capability value

**v0.7.0** alpha - Homey V2 Only

- Removed instance caching of API results in app
- Fixed a bug when filtering on devices, while zone name isn’t available anymore

**v0.6.2** beta - Homey V2 Only

- fixed selecting devices **blocking**
- fixed missing reference to event listener, making the app crash **blocking**
- extra cache clear of api, to force update device state
- updated athom api

**v0.6.1** beta - Homey V2 Only

- fixed settings page, that could contain timers that where already expired

**v0.6.0** beta - Homey V2 Only

- cancel timer when light turned off manually
- handle name changes of devices

**v0.5.0** beta

- version 0.4.1 with new API compatibility for Homey V2

**v0.4.3** stable

- promoted 0.4.1 as stable, bumped as v0.4.3

**v0.4.2** _revoked_

- update for Homey V2. But incompatbile with V1.5 without proper compatiblity requirement

**v0.4.1** beta/stable

- added detail view for timer settings

**v0.4.0** beta

- added a settings page to give an overview of running timers, renamed from ThenMore to Timer

**v0.3.1**

- fixed an issue, causing timers to not being able to reset/extend when retriggered

---

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [November 5, 2018, 7:27pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/2 "2018-11-05T19:27:02Z")

</div>

Great app now i can delete a lot of flows with timers

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [November 5, 2018, 11:30pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/3 "2018-11-05T23:30:52Z")

</div>

can you explain a bit more why this app is easier to use / work with when compared to countdown?

---

<div class="post-metadata">

**Author:** ![rhannink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rhannink/32/10648_2.png) [@rhannink](https://community.homey.app/u/rhannink)\
**Post date:** [November 6, 2018, 6:48am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/4 "2018-11-06T06:48:04Z")

</div>

Hello,

I just use the existing delay button in the action cards to create a simple countdown action (e.g. turn light on and 5 minutes later off)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d57f7e2d81197424322c09f2ea9a1a0c079c1b00.jpeg)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [November 6, 2018, 7:15am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/5 "2018-11-06T07:15:43Z")

</div>

This is not a countdown action but a delay. Countdown is used very often by lots of peeps to keep the lights on while there is movement. Delay actions cannot be used for that while the countdown actions are perfect for this. The delay cannot be stopped or overruled while the countdown action can be stopped and/or reset at any moment.

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 6, 2018, 8:07am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/6 "2018-11-06T08:07:41Z")

</div>

@rhannink you can of course use two action cards, one to turn it on, and one to turn it off, but (as **Rocodamelshe** says as well) this has one shortcomming: your lights go off after the timer, which cannot be reset. So say for instance you trigger your doorbell at 20:00 so your lights go on at 20:00 and will turn off at 20:05. However when you ring again at 20:04 your lights are still on, but will be turned on again (which doesn’t make any difference), and get turned off at 20:09 as well. The first timer is however still running, so at 20:05 your lights are turned off again, which is annoying when you just reached your door. So you switch on your lights with a switch, but since the second timer is running as well, they are again turned of automatically at 20:09. If you now turn on your lights again at 20:09 with the switch, you now have to turn off your lights with the switch yourself, since no timers are running. You probably understand this, but who else in your house knows this?!

That is why people install the countdown app, which is used to (re)set a countdown timer which will turn of the device(s) when the timer reached 0. triggering the timer (by pressing your doorbell) will reset the timer, so extending the time your light will be kept on.  
@Jeroen_Somhorst This however requires at least two flows to be defined. One triggering the countdown timer, and one turning the lights off when the timer has run out (and nicer one to turn lights on when the timer has started). It gets even harder when you want you have (multiple) lights to turn on, only when they are not already on. Or when they have to restore to their original brightness when they where already on (I have a flow where I increase the brightness of the lights at my frontdoor when someone rings, keeping them bright as long as my motion sensor in my hall registers I am still in the hall).

With this app you can control the timeout of your devices, even based on multiple flows. Every flow can also have different timeout values as well, and you can define the strategy you prefer: keep the longest timeout (the value of the trigger, or the currently remaining timeout) or set the timeout of the current trigger; without turning the lights off in between.

---

<div class="post-metadata">

**Author:** ![Morgan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morgan/32/15416_2.png) [@Morgan](https://community.homey.app/u/Morgan)\
**Post date:** [November 10, 2018, 5:40pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/7 "2018-11-10T17:40:00Z")

</div>

Great work!  
Question: What’s the use of the shorter timeout setting?

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 10, 2018, 9:43pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/8 "2018-11-10T21:43:16Z")

</div>

Thanks.  
The keep shorter timeout is maybe a bit too much. I used sensible defaults for all options, so keeping things at default would probably give you the desired effect, but to answer your question:

The keep shorter timeout option can be of use when you have multiple triggers for the same device, that have different timeout values. For instance two motion sensors. When the first triggers a light with a timeout for 1 minute, ande the other sensor tirggers the same light but you set the timeout for 2 minutes, if is easy to say you now expect the light to be kept on for 2 minutes.  
But what if you trigger the sensors the other way around? First setting it for 2 minutes, and then 1 minute. Should I keep the timer for the remaining of the 2 minutes (when more than 1), or reset it to 1 minute anyway? This is the strategy that you can configure with this setting.

---

<div class="post-metadata">

**Author:** ![Morgan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morgan/32/15416_2.png) [@Morgan](https://community.homey.app/u/Morgan)\
**Post date:** [November 11, 2018, 11:00am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/9 "2018-11-11T11:00:30Z")

</div>

Ok.  
I think the timouts settings is only relevant with the setting “Control it anyway”.  
If I understand the usage correctly I suggest renaming settings like this:

- Keep longest timeout
- Shortest timeout wins  
If this setting is removed I would like to have the first alternative permanent.

---

<div class="post-metadata">

**Author:** ![jnwllm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jnwllm/32/12909_2.png) [@jnwllm](https://community.homey.app/u/jnwllm)\
**Post date:** [November 20, 2018, 6:15pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/10 "2018-11-20T18:15:51Z")

</div>

Hi! I’ve posted a question regarding Then More and the Aqara app here:

> [@\[APP\] Aqara & Xiaomi Smart Home - A different kind of Smart Home solution (Zigbee App)](https://community.homey.app/t/xiaomi-aqara-smart-home-zigbee-app-v0-4-3/156/230):
>
> I’d like some help with defining flow(s) to do the following. Situation: Somebody enters the Toilet during daytime when it’s too dark for the lights to be turned off Desired result: Turn on the lights when detecting motion and sensing it’s too dark in the room Edge-case: It’s night time, so the lights should be dimmed to a minimum to prevent me waking up wink Planned solution: Flow: WHEN motion alarm is turned on AND luminance is X and time is between 0:00 & 7:00 THEN [Then More] timer en…

Would be great if you could help me out on the Then More part 🙏

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 20, 2018, 7:11pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/11 "2018-11-20T19:11:43Z")

</div>

Hello Jan Willem, I want to help you, but don’ t understand what you want. I contacted you ons slack, so we can elaborate on your wishes

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 21, 2018, 8:05am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/12 "2018-11-21T08:05:40Z")

</div>

I found the bug that introduced the problems @jnwllm was experiencing and fixed it in 0.3.1

Due to a refactoring I missed the renaming of a property, causing timers to not being able to reset, making the entire app a lot less useful…

0.3.1 is now stable

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [November 23, 2018, 8:01pm UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/13 "2018-11-23T20:01:50Z")

</div>

I added a new Beta (v0.4.0) that adds a settings page, which gives an overview of the running timers

---

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [December 10, 2018, 7:30am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/14 "2018-12-10T07:30:43Z")

</div>

I am still on V1.5.13 and the app was updates to 0.42 last night and now it is not working anymore with this error

 ![2018-12-10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/0ecad59bf93650481822f2a7ab3b91ecf7e77bbb.png)

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [December 10, 2018, 7:46am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/15 "2018-12-10T07:46:15Z")

</div>

Hmm, I couldn’t test this, because my Homey is updated to V2.

My guess is, this is because of the Athom API library upgrade I’ve done.

I will promote 0.4.1 as stable and replace 0.4.2 with 0.5.0 adding a config change to require V2.  
It will take some time before Athom has approved all of this

---

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [December 10, 2018, 7:49am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/16 "2018-12-10T07:49:43Z")

</div>

I did install the stable V0.3.1 and then it works

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [December 10, 2018, 8:08am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/17 "2018-12-10T08:08:27Z")

</div>

Good to hear.

I’ve bumped some versions. Expect V0.4.3 as stable (replacing incompatible V0.4.2) compatible with Homey V1.5

Don’t upgrade to Beta V0.5.0 this is only compatible with Homey V2, but I added this as an requirement as well, so it probably shouldn’t be possible to update to this version anyway.

---

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [December 10, 2018, 9:27am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/18 "2018-12-10T09:27:10Z")

</div>

Now the app is back at 0.42 as stable and nor working anymore.  
I hope the 0.43 will be released very soon

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [December 10, 2018, 9:46am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/19 "2018-12-10T09:46:32Z")

</div>

Yes I know. Unfortunately the backend of the app-store at Athom promoted all versions of the app, not the version I intended to promote. As mentioned I posted new versions, but it is up to Athom to inspect them first.

In the meanwhile you can install any version via CLI if you are known to GIT and the athom-cli tool. But I will ask some persons if they can inspect as soon as possible. Shouldn’t be too hard with only some version bumps

---

<div class="post-metadata">

**Author:** ![LvanderRee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lvanderree/32/1853_2.png) [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Post date:** [December 10, 2018, 10:47am UTC](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722/20 "2018-12-10T10:47:06Z")

</div>

Done, 0.4.3 should be available

[Next page](https://community.homey.app/t/timer-0-8-16-test-homey-v3-0-7-3-beta-homey-v2-v0-4-3-stable-homey-v1-5-fka-then-more-add-timers-to-temporarily-turn-on-devices/3722.md?page=2)
