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:
    1. Sensor reading:
      1. You will be presented with sensor reading trigger creation dialog.
        t sensor e
      2. 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
      3. 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
      4. 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
      5. Select value to compare sensor reading to.
        t sensor val
      6. Select valid time limit in which comparison that evaluates to true has to occur for the trigger to be triggered.
        t sensor last
      7. 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
      8. Set the name of the trigger.
        t sensor name
      9. Enter trigger description.
        t sensor desc
      10. Save the trigger by taping save button.
    2. Time:
      1. You will be presented with time trigger creation dialog.
        t time empty
      2. 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
      3. Select tirgger mode: avaliable types are once and repeatedly. If you choose repeatedly select interval on which trigger will be triggered.
        t time mode
      4. Set the name of the trigger.
        t time name
      5. Enter trigger description.
        t time desc
      6. Save the trigger.
    3. Schedule:
      1. Input time at which trigger will be triggered.
        t sch init
      2. Select days of the week on which trigger will be triggered.
      3. Select trigger mode. Avaliable types include: once and every time.
        t sch mode
      4. Set trigger name.
        t sch name
      5. Set trigger description.
        t sch desc
      6. Save the trigger. 
  5. 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.