Skip to content

tim-hellhake/timer-adapter

Repository files navigation

Timer Adapter

Build Status dependencies devDependencies optionalDependencies license

There are two types of devices provided by this adapter:

  1. Timer: Runs for the specified number of seconds
  2. Interval: Continuously emits an event after the specified number of seconds

Configuration

  1. Go to settings
  2. Add a timer/interval

Usage

The timer has two actions:

  • start: Start the timer and set the elapsed property after the specified number of seconds
  • reset: Reset the timer to the specified number of seconds and clear the elapsed property

The interval provides an active property to control whether events are emitted.

When the specified number of seconds is over an elapsed event is emitted.