The input received from any profile causes various actions by Big6.
- Create HS4 device. It happens automatically* and doesn’t need any action by user, however the HS4 devices that Big6 will create and the values that Big6 will put in those devices depend on the setup of the profile. See Create Profiles for details.
- Update HS4 device previously created by the same profile. It happens automatically* and doesn’t need any action by user.
- Set the HS4 device value and string (a.k.a. status) from the input data. It happens automatically* no action needed. *assuming that the profile was setup properly and the incoming data matches the assumptions used in the profile setting. See Create Profiles for more information.
- Trigger HS4 events
Triggering HS4 events from input
There are two ways of triggering HS4 events by an input
- Natively in HS4 by “Device value has changed or set”. As far as the HTTP input creates/updates devices this very action can be used to trigger an HS4 event.
- By Big6 HTTP conditions as explained below.
Big6 provides 7 types of conditions to trigger a HS4 event. They show in the native HS4 drop down for trigger conditions
Once you select the type of the Big6 trigger from the menu above, then Big6 will ask you to select the profile and the condition that will trigger the event
You’ll see several options ( called “matchers”) to act upon the received information. As the name suggests there will be HS4 action if there is a match and no action otherwise.
String matcher. You can provide any string that must be contained in the incoming message in order to trigger. You can also provide the exact starting position of your string within the income message for the trigger to happen. Use 0 for ignoring the position and find the string anywhere.
Income message: temp=56.26&name=Living&event=0&hilo=0&hum=19.86
String matcher (position):
name (0) – will trigger as name is within the income message and 0 means disregard position
event (6) – will not trigger as “event” does exist but it doesn’t start at position 6
motion (0) – will not trigger as the word “motion” is nowhere in the income message.
Training: Will the string “Liv” (0) trigger.
RegEx matcher. RexEx must produce logical result “true” or “false”. Will trigger if the result is “true” and will not trigger otherwise.
Income message: !00 NAME = 44 (from real Pentair Pool equipment)
RegEx: ^!\d\d \w* = \d*$
The RegEx checks the format of the message to make sure it is standard Pentair Pool response. This income message will trigger HS4 event as the RegEx returns true. More info on RegEx is available here .
Number matcher: You pick what count in the string to use for matching and to what value to match
Income message: Filter=1 Pump=0 Cleaner=1 Solar=0
Matcher setup: looks for number 1 in 2nd position
Result: Will not trigger as the second number in the income message is 0 not 1.
on/off matcher. Same as number matcher but looks for “on” and “off” strings instead.