Versions Compared

Key

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

...

  1. Create virtual device (Menu → Settings → Virtual devices → + (or Add virtual device) → Switch
  2. Set name "Notification"
  3. Set device type = Emergency:
  4. Setting Emergency device type will automatically pre-define correct icons and names for On and Off states:
  5. Open details of this new virtual switch and select Add a new smart rule
  6. Select smart rule Equation
  7. 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.

    ← EquationRename
    SETTINGS   INFO   LIMITING CONDITION

    Variables

    Temperature 1
    Temperature 2


    Te = 21.8ºC
    Te1 = 22.3ºC

    Equation

    (Te > 25) or (Te1 > 25)


    Actions

    If result is TRUE, perform following actions:

    Notification



    On

    If result is FALSE, perform following actions:

    Notification


    Off

    Duration

    When to stop performing specified actions

    Minimum duration
    Value: 30 minutes

    Maximum duration
    Value: not set



    (tick)

    (error)


  8. Open detail of device Notification and add smart rule "Notification"
  9. 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


    (tick)
     

    (tick) 


...