Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to get notified when temperature exceeds certain value, or any other condition is met, use the setup scenario below.

doc_tap_notified;

Send notification when temperature exceeds 25 degrees

doc_tap_notification25deg;

Create virtual device (Menu → Settings → Virtual devices → + (or Add virtual device) → Switch

Set name "Notification"Set device type = Emergency:

doc_tap_Create_Emerg;
Setting Emergency device type will automatically pre-define correct icons and names for On and Off states:

doc_tap_SettingEmerg;

Open details of this new virtual switch and select Add a new smart rule

doc_tap_Opendetails;
Select smart rule Equation

doc_tap_ruleEquation;

Set smart rule Equation to turn on your virtual emergency switch if the notification condition is met.
In our example, we are checking if one of temperatures (Temperature 1, Temperature 2) is higher than 25ºC. Also, once this condition is met, we set minimum duration to 30 minutes, so that we don't receive notifications too often.

doc_tap_EquationOften;

...

doc_tap_Equation;doc_tap_Ren1;
SETTINGS   INFO   LIMITING CONDITION
doc_tap_sett_cond1;

Variables

Temperature 1
Temperature 2

doc_tap_VTT12;

Te = 21.8ºC
Te1 = 22.3ºC

doc_tap_

VTT12;

Equation

(Te > 25) or (Te1 > 25)

doc_tap_Equation;

Actions

If result is TRUE, perform following actions:

Notification

On

EquationTe;


doc_tap_ActNotific;

doc_tap_ActOn;

If result is FALSE, perform following actions:

Notification

Off

doc_tap_Falsenotif;

doc_tap_FalseOff;

Duration

When to stop performing specified actions

Minimum durationValue: 30 minutes

Maximum duration
Value: not set

(tick)

(error)

doc_tap_Duration30min;

doc_tap_(/);

doc_tap_(X);

...



(tick)


(error)

doc_tap_OpenNotif;
Set smart rule Notification to provide proper feedback when temperatures are higher than 25 degrees:

doc_tap_SetNotif;

There are more ways to setup push notifications:

...

SETTINGS   INFO   LIMITING CONDITIONNotifications
← NotificationRename
doc_tap_Notific;doc_tap_Ren2;
doc_tap_sett_cond2;

Send notifications when these sensors change:

Notification

+ Add sensor

doc_tap_NotifictSensor;


Notify if turned on
Message: Temperatures higher than 25ºC

Notify if turned off
Message: Temperatures are OK

(tick)
 

(tick) 

doc_tap_NotificTempr25ºC;

doc_tap_(/);

doc_tap_(/);

...


(tick)
 

(tick) 


Info

 doc_tap_DeviceSimpleAlarm;