IntervalTimer-Tick Command

Functionality and usage of the OpenNethome Server
Post Reply
tommy_stahre
Posts: 2
Joined: Thu Jan 12, 2017 9:19 am

IntervalTimer-Tick Command

Post by tommy_stahre »

Hello. Should want to se some examples what/how to write in the Tick-command. The idea of this timer seems very intresting.
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: IntervalTimer-Tick Command

Post by stefangsbb »

Two typical examples:

1) Slowly dim up a lamp

Code: Select all

Time: 10 (minutes)
StartCommand: Lamp Off
StopCommand: Lamp On
TickInterval: 0.1
TickCommand: Lamp Bright
If the DimStep in the lamp is set to 1, the lamp will slowly go from off to fully on over a period of 10 minutes when the timer is activated

2) Blink a lamp for 1 minute

Code: Select all

Time: 1 (minutes)
StartCommand: Lamp On
StopCommand: Lamp Off
TickInterval: 0.03
TickCommand: Lamp Toggle
The lamp will blink for one minute when the timer is activated
tommy_stahre
Posts: 2
Joined: Thu Jan 12, 2017 9:19 am

Re: IntervalTimer-Tick Command

Post by tommy_stahre »

Thanks very much.
As I suspected it is a very useful timer.
Post Reply