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.

Send notification when temperature exceeds 25 degrees

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

doc_tap_notified;

doc_tap_notification25deg;

Set name "Notification"

Set device type = Emergency:
Image Removed

Setting Emergency device type will automatically pre-define correct icons and names for On and Off states:
Image RemovedImage Removed

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

Select smart rule Equation
Image Removed

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.

...

Variables

Temperature 1
Temperature 2

doc_tap_Create_Emerg;
Image Added

doc_tap_SettingEmerg;
Image AddedImage Added

doc_tap_Opendetails;
Image Added

doc_tap_ruleEquation;
Image Added

doc_tap_EquationOften;

On

Off

(tick)

(error)

doc_tap_Equation;doc_tap_Ren1;
doc_tap_sett_cond1;

doc_tap_VTT12;

Te = 21.8ºC
Te1 = 22.3ºC

Equation

(Te > 25) or (Te1 > 25)

Actions

If result is TRUE, perform following actions:

Notification

If result is FALSE, perform following actions:

Notification

Duration

When to stop performing specified actions

Minimum duration
Value: 30 minutes

Maximum duration
Value: not set

Open detail of device Notification and add smart rule "Notification"
Image Removed

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

← NotificationRename
SETTINGS   INFO   LIMITING CONDITION

Send notifications when these sensors change:

Notification

+ Add sensor

Notifications

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

Notify if turned off
Message: Temperatures are OK

doc_tap_EquationTe;


doc_tap_ActNotific;

doc_tap_ActOn;

doc_tap_Falsenotif;

doc_tap_FalseOff;

doc_tap_Duration30min;



(tick)


(error)

doc_tap_OpenNotif;
Image Added

doc_tap_SetNotif;

doc_tap_Notific;doc_tap_Ren2;
doc_tap_sett_cond2;

doc_tap_NotifictSensor;


doc_tap_NotificTempr25ºC;


(tick)
 

(tick) 


Info

There are more ways to setup push notifications:

  • Smart rule Device error notification sends notification always when one of specified devices is in error state
  • Smart rule Simple alarm sends push notification when there is a motion detected on one of specified sensors. It can be door/window magnet, or motion sensor
  • Smart rule Alarm can have push notification defined for each phase

     doc_tap_DeviceSimpleAlarm;