plugin name: Super Trigger
version: 1.0
author: electron
description: The Super Trigger plugin is a powerful plugin allowing one to kick off homeseer events based on advanced conditions, applied to the device string of a device, all this without having to know any scripting. This plugin adds the following device string triggers to an Event: "is in", "matches", "matches (regex)", "matches (like)", "is equal to", "is greater than" and "is less than". Most of them are pretty obvious about what they do, but the numeric triggers are pretty powerful, since these triggers strip all non numerical data from a device string before continuing, all this without having to know one thing about scripting!
Since I believe in the power of example, I will post some examples below showing what these triggers can be used for:
isin: i.e. you are monitoring a garage door, and when the door is open, you have an animated door opening icon with the words "open" in the device string. Specify "open" as the keyword here, and if the word open is in the device string, the event will trigger.
matches: when a device string matches the exact value you have specified, the event will trigger. Be aware that this include spaces and any possible hidden HTML tags in the device string.
matches (regex): People familiar with regular expressions will really appreciate this. If you are new to regular expressions, check out http://www.regular-expressions.info/ for more information. Very useful when you want the event to trigger on very specific conditions. A good example is if you have all your weather data in virtual devices, you could monitor if there are any breaking weather alerts using i.e. ".*Important message.*".
matches (like): Uses the VB Like operator (http://www.vbexplorer.com/VBExplorer/Focus...tutorial_2.asp), not as powerful as regular expressions, but much easier to use to do some more flexible matches, since you can just use wildcards to do the matching i.e. "*breaking*news*Iraq*"
is equal to, is greater than, is less than: This trigger strips all non numerical data from the device string before matching it. Let's say you have a virtual device, v5, which reflects the current wind speed i.e. "NW 13.3 mph". Now you can have the event trigger when the device string is equal to, greater than or less than the value you have specified without having to write a script to strip the non numerical data, and then do the comparison. Another good example is, let's say you have a device string that monitors your favorite stock, and the device string format looks like "Homeseer stock is currently $50 per share". Simply specify 45 as the value, select is greater than, and use the speech tab to announce "Break out the Champaign!". When the device string changes, and the value is greater than 45, Homeseer will then execute the event and announce this, or do whatever you have specified, all without scripting.
There are also 2 checkboxes you can set, "case sensitive", which only applies to the "isin", "matches (regex)" and "matches (like)" triggers, and the "negate" option, which applies to all triggers.
Some other things you can do with this:
* Control your window AC unit depending on the outside temperature.
* Check if a device which contains all school delays also includes the school your kids to go.
* Monitor current homeland security status, and i.e. make an announcement when the current color code is yellor or red.
* Make an announcement when the Dow exceeds 10000.
* and anything else you can think of!
installation: just copy the hspi_supertrigger.ocx file to your Homeseer directory, and select it as an interface in Homeseer options.
version: 1.0
author: electron
description: The Super Trigger plugin is a powerful plugin allowing one to kick off homeseer events based on advanced conditions, applied to the device string of a device, all this without having to know any scripting. This plugin adds the following device string triggers to an Event: "is in", "matches", "matches (regex)", "matches (like)", "is equal to", "is greater than" and "is less than". Most of them are pretty obvious about what they do, but the numeric triggers are pretty powerful, since these triggers strip all non numerical data from a device string before continuing, all this without having to know one thing about scripting!
Since I believe in the power of example, I will post some examples below showing what these triggers can be used for:
isin: i.e. you are monitoring a garage door, and when the door is open, you have an animated door opening icon with the words "open" in the device string. Specify "open" as the keyword here, and if the word open is in the device string, the event will trigger.
matches: when a device string matches the exact value you have specified, the event will trigger. Be aware that this include spaces and any possible hidden HTML tags in the device string.
matches (regex): People familiar with regular expressions will really appreciate this. If you are new to regular expressions, check out http://www.regular-expressions.info/ for more information. Very useful when you want the event to trigger on very specific conditions. A good example is if you have all your weather data in virtual devices, you could monitor if there are any breaking weather alerts using i.e. ".*Important message.*".
matches (like): Uses the VB Like operator (http://www.vbexplorer.com/VBExplorer/Focus...tutorial_2.asp), not as powerful as regular expressions, but much easier to use to do some more flexible matches, since you can just use wildcards to do the matching i.e. "*breaking*news*Iraq*"
is equal to, is greater than, is less than: This trigger strips all non numerical data from the device string before matching it. Let's say you have a virtual device, v5, which reflects the current wind speed i.e. "NW 13.3 mph". Now you can have the event trigger when the device string is equal to, greater than or less than the value you have specified without having to write a script to strip the non numerical data, and then do the comparison. Another good example is, let's say you have a device string that monitors your favorite stock, and the device string format looks like "Homeseer stock is currently $50 per share". Simply specify 45 as the value, select is greater than, and use the speech tab to announce "Break out the Champaign!". When the device string changes, and the value is greater than 45, Homeseer will then execute the event and announce this, or do whatever you have specified, all without scripting.
There are also 2 checkboxes you can set, "case sensitive", which only applies to the "isin", "matches (regex)" and "matches (like)" triggers, and the "negate" option, which applies to all triggers.
Some other things you can do with this:
* Control your window AC unit depending on the outside temperature.
* Check if a device which contains all school delays also includes the school your kids to go.
* Monitor current homeland security status, and i.e. make an announcement when the current color code is yellor or red.
* Make an announcement when the Dow exceeds 10000.
* and anything else you can think of!
installation: just copy the hspi_supertrigger.ocx file to your Homeseer directory, and select it as an interface in Homeseer options.