Triggers

Triggers are user defined conditions that are constatntly compared to the selected input data and can be used together with actions to form a recipe. IoTool curently supports triggers bases on sensors, time and schedule.

How do I create a trigger?

  1. To create a trigger open left drawer menu located near IoTool logo.

    main
  2. In drawer menu select triggers.

    main left menu
  3. Once in trigger manager tap "+" button located on top toolbar. You will be presented with currently avaliable list of trigger types. Expand trigger types to continue.

    trigger manager
    triggers lv
    trigger types
  4. Select type of trigger you wish to create. If you choose:

    • Sensor reading:

      • You will be presented with sensor reading trigger creation dialog.

        t sensor e
      • Select type of the value to use for trigger comparison. Avaliable types include: VALUE - raw sensor reading, MIN - minimum sensor reading of the current session, MAX - maximum sensor reading of the current session, AVG - average sensor reading of the current session.

        t sensor v
      • Select sensor for trigger from readings list. Depending on installed services more sensors will be avaliable. If you wish to use external sensor, refer to the "How do I use my external sensor with IoTool application?" part of this guide.

        t sensor l
      • Select comparison operation which will be used to compare sensor to set value. Avaliable types are: < - less than set value, ⇐ - less OR equal than set value, = - equal to set value, >= - more OR equal to set value, > - more than set value.

        t sensor comp
      • Select value to compare sensor reading to.

        t sensor val
      • Select valid time limit in which comparison that evaluates to true has to occur for the trigger to be triggered.

        t sensor last
      • Select interval on which trigger can be triggered. If comparison condition evaluates to true and trigger was already triggered in set time window, trigger wont trigger untill next valid time window.

        t sensor every
      • Set the name of the trigger.

        t sensor name
      • Enter trigger description.

        t sensor desc
      • Save the trigger by taping save button.

    • Time:

      • You will be presented with time trigger creation dialog.

        t time empty
      • Select comparison operator to compare current and set time. Avaliable operatiors include: < - less than set time, ⇐ - less OR equal to set time, = - equal to set time, >= - greater OR equal than the set time, > - greater than set time.

        t time comp
      • Select tirgger mode: avaliable types are once and repeatedly. If you choose repeatedly select interval on which trigger will be triggered.

        t time mode
      • Set the name of the trigger.

        t time name
      • Enter trigger description.

        t time desc
      • Save the trigger.

    • Schedule:

      • Input time at which trigger will be triggered.

        t sch init
      • Select days of the week on which trigger will be triggered.

      • Select trigger mode. Avaliable types include: once and every time.

        t sch mode
      • Set trigger name.

        t sch name
      • Set trigger description.

        t sch desc
      • Save the trigger.

    • Created trigger should now be avaliable for use.

How can I edit existing trigger?

  1. To edit existing trigger open left drawer by taping menu icon next to the IoTool logo.

    main left menu
  2. In drawer select "Triggers". Trigger manager will open.

    t manager d
  3. Locate the trigger you wish to edit in trigger list. Once found tap on the trigger. Detail view will open.

    t detail
  4. To edit trigger parameters tap edit button on the top toolbar.

    t edit ex
  5. Proceed to modiyf trigger parameters as described in "How do I create a trigger?" section of this manual.

  6. Once desired edits have been made save trigger to apply the changes.

How do I remove a trigger?

  1. To remove a trigger open left drawer by taping menu icon next to the IoTool logo.

    main left menu
  2. In drawer select "Triggers". Trigger manager will open.

    t manager d
  3. Locate the trigger you wish to remove. Once found tap on the trigger to open the detail view.

    t detail
  4. Tap on the delete icon located on top toolbar. Trigger should now be deleted.