N-Button Automation: Send Message with Compound Condition

N-Button Pro or Lite software supports sending message to your cell phone from your email account. You can also set up automation control rule to send message under some circumstances. Here will show you an example, send message only when both input channel 1 and 2 of push notification board are trigged together.

Be sure you have the push notification board connected with your computer by serial port/USB or Ethernet. 

Run N-Button Pro/Lite software.

1.  Add the push notification board to N-Button Device Manager.

N-Button - Device Manager

2.  Add Scan Channel widgets for both input channel 1 and 2.

N-Button - Scan Channel

3.  You can add two Label widgets for above Scan Channels to mark as 1 and 2

N-Button - Label

4. Trigger input channel 1 and 2. The Scan Channels on your desktop will change to green from red. It indicates the push notification board works well with N-Button software.

N-Button - Scan Channel and Label widgets

5.  Add a Customized Button widget to send message to your cell phone.

N-Button - Email Action Setting

6. Click the Customized Button on your desktop, you should get message on your cell phone. Otherwise, check your email account security setting to make sure you can get the message.

N-Button - Test Email Action

7.  Add two Simple Conditions and one Compound Condition.

  • The Simple Condition A and B indicate the status of input channel 1 and 2.
  • Compound Condition C includes Simple Condition A and B.
  • Compound Condition will be Meet Only when both Simple Condition A and B are Meet.

N-Button - Conditions Manager

8. Add two Automation – Push Notification Contact Closure Rules for input channel 1 and channel 2 separately. 

  • For Action When Status changes form Open to Close, set Condition A or B to Meet.
  • For Action When Status changes form Close to Open, set Condition A or B to Not Meet.
  • For Action When Status is Close, set Condition A or B to Meet.
  • For Action When Status is Open, set Condition A or B to Not Meet.

N-Button - Automation - Push Notificaiton Rule

9.  Add a Automation – Condition Rule.

  • Select Compound Condition C
  • Set Email Action When Condition Changes from Not Meet to Meet
  • All settings for Send Email should be same as the previous Customized Button

N-Button - Automation - Condition Rule

You have finished all settings! Trigger or change the input channel 1 and 2 together, you will receive the message automatically on your cell phone.

Follow the similar way, you can use N-Button software to send message or email with other automation control rules.