Author: HCA Central Version: 1 Added to Library: 11-Nov-23 HCAVersion needed: 18 Keywords: Utility
Package Description: See the notes on the program "Dispatch".
Program Description: Program to watch for tag changes and then dispatch to other programs when conditions are met.
Add tags to this program with names: Tag1, Tag2, Tag3, etc
The tag values are of the form: objectName, tagName, compare, value, programToStart
It looks for the named tag to change on the named object. Then it checks if the new tag value is equal to, less than, or greater than then value in the configuration. If it is, then the named program is started.
Parameters to the program started are the object name, tag name, and value. See the Example program in this folder.
The compare is given as a single character as =, <, or >
If the value given in the configuration and in the object's tag value are both convertible to numbers then a numeric compare is used.
Note: These two example tags are provided. Remeove them when you are reday to add your own.
Examples:
Tag name: Tag1
Tag value: Home-Kitchen sensor,temperature,>,75,Home-Kitchen Hot
If the "temperature" tag in the device "Home - Kitchen Sensor" is greater than 75, start the program "Home - Kitchen Hot".
Tag name: Tag2
Tag value: Hallway-motion,HE_Motion,=,active,Home-Lights
If the "HE_Motion" tag in the device "Hallway - Motion" is "active", start the program "Home - Lights".
NOTE: The trigger on this program is for any tag change on any device. That is inefficient if you only care about some tag changes. You may want to remove the ANY trigger and replace it with specific tags on specific devices, or any tags on specific devices.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Object | Object | Object on whose tag changed | |
TagName | Value | Tag Name | |
TagValue | Value | Tag Value |
Program Description: This is an example of a program that the "Responder Tag - Dispatch" program can start. Copy it and use it to create your own program.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ObjectName | Value | The name of the object whose tag value changed | |
TagName | Value | The name of the tag | |
Value | Value | The new value |