# Timer doesn't work if time is greater than 59 seconds

**URL:** <https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402>\
**Category:** Runtime\
**Created:** [July 9, 2021, 8:13am UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402 "2021-07-09T08:13:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sinister](https://community.openhab.org/user_avatar/community.openhab.org/sinister/32/42146_2.png) [@Sinister](https://community.openhab.org/u/Sinister)\
**Post date:** [July 9, 2021, 8:13am UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402/1 "2021-07-09T08:13:17Z")

</div>

Hello,

I have a timer on 2 KNX controlled lights to send command OFF if there is no activity from SATEL Alarm motion detectors. To turn on lights I use simple rule and it works perfect. To turn off lights, I set timers on both items.

The issue started at the moment when I’ve removed all all items and recreated them from model as points and upgraded Openhab to version 3.1. In addition to that, I’ve reconfigured KNX router to be used as tunnel as it was not receiving updates after few minutes after restart to items. This change resolved the problem and items are now being updated when physically someone press light button.

Before all that everything was working without smallest issues for last few months.

During the testing now, I was able to replicate the problem and applied a workaround changing timer from 3 minutes to 59 seconds. In that case everything works perfect. When I change to 1 minute 1 seconds, it stops working and timer will not send any command after 1 minute.

Interesting fact is that I was able to resolve this issue few days back just by rebooting raspberry pi as I thought maybe there are some catching issues after upgrade. Unfortunately, after few days problem is back and now even restart is not helping.

Can anyone suggest what should I check as the first thing and what are the logs to enable to see if timer was started/reset/closed? I wonder if KNX bus is not sending any updates to the Item, but I don’t see it in the standard log..

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [July 9, 2021, 12:54pm UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402/2 "2021-07-09T12:54:50Z")

</div>

May we know a little something about this mystery “timer”?

---

<div class="post-metadata">

**Author:** ![Sinister](https://community.openhab.org/user_avatar/community.openhab.org/sinister/32/42146_2.png) [@Sinister](https://community.openhab.org/u/Sinister)\
**Post date:** [July 9, 2021, 1:01pm UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402/3 "2021-07-09T13:01:40Z")

</div>

Sending screens from the UI configuration - by timer I was thinking Expiration Timer configured in Metadata

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/c/2/c296fa93778265aa16017077b699029a08929a93.png)  
 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/0/a/0abe2999b92ed70ea86f8de135cc11c0017d775e.png)

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [July 9, 2021, 1:34pm UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402/4 "2021-07-09T13:34:20Z")

</div>

See

> [@OpenHAB 3.1 expire command does not always work](https://community.openhab.org/t/openhab-3-1-expire-command-does-not-always-work/124355):
>
> Hello Friends, I require some assistance configuring Expiration Timers for a few Items controlling Z-Wave switches. I recently had to format my Raspberry Pi OS, so I took the opportunity to update my OpenHAB system to version 3.1 as a fresh install (building everything anew). The system is installed on a Raspberry Pi 4 4GB running Raspberry Pi OS with Desktop. I added a few Z-Wave Things and created corresponding Items to control the Z-Wave switches. I would like two Items to automatically …

---

<div class="post-metadata">

**Author:** ![Sinister](https://community.openhab.org/user_avatar/community.openhab.org/sinister/32/42146_2.png) [@Sinister](https://community.openhab.org/u/Sinister)\
**Post date:** [July 9, 2021, 3:03pm UTC](https://community.openhab.org/t/timer-doesnt-work-if-time-is-greater-than-59-seconds/124402/5 "2021-07-09T15:03:40Z")

</div>

@rossko57 Thank you, this post really helped and I’ve decided to work around described problem with virtual item controlling the light creating some roles thru GUI as I was to keep OpenHab config as easy as possible due to other aspiring home automation enthusiasts in my home not knowing programming languages.
