# Setup Triggers

Triggers are events that result in specific action. You can define these actions yourself.

    1. Login to HXA.io Portal
    1. Click on "Add Trigger".
    1. Set a name for the trigger
    1. Choose a control module and an event
    1. Depending of what type of device you choose as control device there must to set some values:
  • For RGB/W controllers: the values for the colors (0-255) and an effect (optional)
  • For relays: port name, port at the relay, port status (on or off if event was triggered)
  • For Bulbs: the values for the colors (0-255) and an effect (optional)
  • Color example: Red: 255,0,0,0; Green: 0,255,0,0
    1. Click on "Add".
    1. Repeat that steps for every actions you want to use.
    1. Scroll to the end of the page and click "Save".
    1. At least link a resource to the trigger.
  • Click the three points behind the new added trigger and choose "Edit trigger".
  • Fill out the network configuration:
    • Port name.
    • Port number.
    • Port status.
    • Automatic switching time (ON/OFF).