TapHome

Condition

The Condition smart rule lets you create custom automations by combining triggers (conditions that start the smart rule) with actions (what happens when the condition is met). You can trigger actions based on device values (temperature, motion, button presses, etc.) or based on time schedules.

Think of it as a customizable cause-and-effect smart rule: “If the temperature drops below 20 degrees, then turn on the heater”. You define the “if” (trigger) and the “then” (action).

When to use this smart rule

Use the Condition smart rule when you want to:

  • React to device changes — turn on lights when motion is detected, send a notification when a door opens, activate ventilation when CO2 is too high.
  • React to time events — turn on garden lights at sunset, switch off heating at 23:00, run different schedules on weekdays and weekends.
  • Combine conditions with actions — set up multiple triggers, each with its own set of actions.

A single Condition smart rule can contain multiple triggers. Each trigger has its own condition and its own set of actions. The first trigger whose condition is met “wins” — its actions are executed. This lets you build smart rules like: “If temperature < 18, turn on heater at high; if temperature < 20, turn on heater at low; otherwise, turn off heater”.

Getting started

Basic example

You want to turn on the hallway light when the motion sensor detects movement, and turn it off when motion stops.

  1. Create a new Condition smart rule.
  2. The smart rule starts in Device value mode (the default).
  3. In the Input devices section, tap Add Device and select your motion sensor.
  4. In the Triggers section, tap Add trigger to create the first trigger.
  5. On the trigger configuration page:
    • Triggered by: select Motion.
    • When: select Value equals.
    • Value: select Motion spotted.
    • In the Actions section, tap Add New Action, select the hallway light, and set the action to turn it on.
  6. Go back and tap Add trigger for the second trigger.
  7. Configure it the same way, but select Motion cleared as the value and set the action to turn the light off.
  8. Tap Save.

The hallway light now turns on when motion is detected and turns off when motion stops.

Triggers

Every Condition smart rule operates in one of two trigger modes, selectable via radio buttons at the top of the configuration page:

  • Device value (default) — monitors one or more devices and triggers actions based on their values.
  • Time — triggers actions at specific times or during time intervals. No input devices are needed.

Input devices (device value mode)

Tap Add Device to add one or more devices to monitor (all must be of the same type). All triggers in this smart rule evaluate against these shared devices.

Configuring triggers

Tap Add trigger or tap an existing trigger to open its configuration page. Trigger conditions fall into two categories — state conditions (active as long as true) and event conditions (fire once on a specific change). This distinction determines which action types are available — see Actions below.

For value types, trigger conditions, additional settings, and time trigger configuration, see Triggers.

Actions

Each trigger has its own list of actions that execute when the trigger’s condition is met. Actions define what happens — which devices to control and how.

Hold action vs One-time action

Actions come in two types:

  • A Hold action continuously controls the target device as long as the trigger is active.
  • A One-time action only affects the target device at the moment when the trigger is activated.

If your action is “turn on the light”, Hold action would override any attempt of lower priority smart rules to turn the light off until the trigger expires, while a One-time action would turn the light on once but allow other smart rules to freely change its state later.

Which type is available depends on the trigger:

  • Event trigger actions are always One-time action. Since the event fires instantly, there is nothing to “hold”.
  • State trigger actions default to Hold action, but you can switch to One-time action. By default the action configuration shows a simplified view. Tap the Show more button to reveal the Action type section, where you can choose between Hold action and One-time action.

Use a One-time action on a State trigger when you want the trigger condition to start something without locking the device. For example, a State trigger “temperature above 25 degrees” with a One-time action “turn on fan” will turn the fan on once when the temperature exceeds 25, but will not prevent other smart rules (even with lower priority) from turning the fan off while the temperature is still above 25.

Adding actions

On the trigger configuration page, tap Add New Action in the Actions section. Select a target device, then configure what the device should do (turn on, turn off, set to a specific value, etc.).

You can add multiple actions to a single trigger. For example, a single “motion detected” trigger could turn on a light, set a thermostat to 22 degrees, and close the blinds.

Notifications

Tap the bell icon in the Actions section header to add a notification action. Notifications are sent as push messages to selected users or user groups when the trigger fires.

Notification messages can include dynamic content using script constants:

  • SmartRuleName — the name of this smart rule.
  • LocationName — your installation name.
  • DeviceName — the name of the device that triggered the smart rule (Device value mode only).

Managing actions

Each action in the list shows the target device name and a summary of the configured action. Tap the three-dot menu on any action to:

  • Edit — modify the action configuration.
  • Remove — delete the action.
  • Rename — rename the action.

Multiple triggers

A single Condition smart rule can have multiple triggers. Each trigger has its own condition and its own actions. This is how priority works:

  1. All triggers are evaluated every time a device value changes (or a time event occurs).
  2. The first trigger whose condition is currently true “wins”.
  3. Only the winning trigger’s actions are executed.
  4. Other triggers still update their internal state, but their actions are not applied.

This first-match-wins behavior means trigger order matters. The trigger listed first has the highest priority.

Triggers are displayed with numbered icons (1, 2, 3, …). State triggers show a filled circle, Event triggers show an outlined circle.

Tap the three-dot menu on any trigger to:

  • Edit — open the trigger configuration.
  • Duplicate actions — copy this trigger’s actions into one or more other triggers in the same smart rule.
  • Remove — delete the trigger.

Examples and scenarios

Temperature control with hysteresis

Goal: Turn on a heater when the room gets cold, with hysteresis to prevent rapid cycling.

ParameterValue
ModeDevice value
Input deviceTemperature sensor
Trigger 1 typeValue is less than
Trigger 1 value20 degrees
Trigger 1 hysteresis1 degree, Mode: +
Trigger 1 actionTurn on heater (Hold action)
Trigger 2 typeValue is greater than or equals
Trigger 2 value21 degrees
Trigger 2 actionTurn off heater

Behavior: The heater turns on when the temperature drops below 20 degrees. Thanks to hysteresis in + mode, trigger 1 stays active until the temperature rises above 21 degrees (20 + 1 = 21). The heater then turns off. It will not turn back on until the temperature drops below 20 again. This prevents the heater from cycling on and off when the temperature hovers around 20 degrees.

Motion-activated light with delay

Goal: Turn on lights when motion is detected, and turn them off 5 minutes after motion stops.

ParameterValue
ModeDevice value
Input deviceMotion sensor
Trigger 1 typeValue equals
Trigger 1 valueMotion spotted
Trigger 1 actionTurn on light (Hold action)
Trigger 2 typeValue equals
Trigger 2 valueMotion cleared
Trigger 2 delay5 minutes
Trigger 2 actionTurn off light

Behavior: When motion is detected, the light turns on immediately (trigger 1). When motion stops, trigger 2 starts a 5-minute delay. If motion is detected again during those 5 minutes, the delay is cancelled (the condition “no motion” becomes false) and trigger 1 takes over again. The light only turns off if no motion is detected for a full 5 minutes.

Motion light with minimum duration

Goal: Turn on lights when motion is detected, and keep them on for at least 10 minutes even if motion stops.

ParameterValue
ModeDevice value
Input deviceMotion sensor
Trigger 1 typeValue equals
Trigger 1 valueMotion spotted
Trigger 1 Minimum duration10 minutes
Trigger 1 actionTurn on light (Hold action)
Trigger 2 typeValue equals
Trigger 2 valueMotion cleared
Trigger 2 actionTurn off light

Behavior: When motion is detected, the light turns on immediately and the 10-minute minimum duration timer starts. If motion stops after 2 minutes, the light stays on — the minimum duration guarantees at least 10 minutes. When the timer expires, the smart rule re-evaluates. If there is still no motion, trigger 2 wins and the light turns off. If motion has resumed, trigger 1 continues and the light stays on.

Daily blinds and lights automation

Goal: Automatically manage blinds and lights throughout the day — open blinds after sunrise, close blinds and turn on lights near sunset, and turn off lights at bedtime.

ParameterValue
ModeTime
Trigger 1 time frameDay
Trigger 1 modeInstant
Trigger 1 start timeSunrise + 30 minutes
Trigger 1 action 1Open living room blinds
Trigger 1 action 2Open bedroom blinds
Trigger 2 time frameDay
Trigger 2 modeInstant
Trigger 2 start timeSunset - 15 minutes
Trigger 2 action 1Close living room blinds
Trigger 2 action 2Close bedroom blinds
Trigger 2 action 3Turn on living room lights
Trigger 3 time frameDay
Trigger 3 modeInstant
Trigger 3 start time23:00
Trigger 3 action 1Turn off living room lights

Behavior: Each morning, 30 minutes after sunrise, both sets of blinds open. Shortly before sunset, the blinds close and the living room lights turn on. At 23:00, the lights turn off. Since all triggers use Instant mode, each action fires once at the specified time (One-time action). The Sunrise and Sunset times adjust automatically throughout the year based on your location.

Weekday vs weekend schedule

Goal: Run different heating schedules on workdays and weekends.

ParameterValue
ModeTime
Trigger 1 time frameWorkday/Weekend
Trigger 1 modeInterval
Trigger 1 start06:00 (Workday)
Trigger 1 end08:00 (Workday)
Trigger 1 actionSet thermostat to 22 degrees
Trigger 2 time frameWorkday/Weekend
Trigger 2 modeInterval
Trigger 2 start08:00 (Weekend)
Trigger 2 end10:00 (Weekend)
Trigger 2 actionSet thermostat to 22 degrees

Behavior: On workdays, heating starts at 06:00. On weekends, it starts at 08:00. Both schedules turn off the heating boost after 2 hours.