The Predicate Provider
This is the base class for all predicate provider.
You must overwrite this method and set up your listener here. You should call super() after that.
You must overwrite this method and remove your listener here. You should call super() after that.
The Switch Predicate Provider
Provides predicates for the state of switch devices like:
- device is on|off
- device is switched on|off
- device is turned on|off
Already had a match with another device?
If we have a match
and state as boolean.
The Presence Predicate Provider
Handles predicates of presence devices like
- device is present
- device is not present
- device is absent
Already had a match with another device?
The Contact Predicate Provider
Handles predicates of contact devices like
- device is opened
- device is closed
Already had a match with another device?
The Device-Attribute Predicate Provider
Handles predicates for comparing device attributes like sensor value or other states:
- attribute of device is equal to value
- attribute of device equals value
- attribute of device is not value
- attribute of device is less than value
- attribute of device is lower than value
- attribute of device is greater than value
- attribute of device is higher than value
take the longest match
_compareValues()
Does the comparison.
The Device-Attribute Watchdog Provider
Handles predicates that will become true if a attribute of a device was not updated for a certain time.
- attribute of device was not updated for time
The Variable Predicate Provider
Handles comparision of variables
- device is present
- device is not present
- device is absent
_compareValues()
Does the comparison.
Predicate Provider
A Predicate Provider provides a predicate for the Rule System. For predicate and rule explenations take a look at the rules file. A predicate is a string that describes a state. A predicate is either true or false at a given time. There are special predicates, called event-predicates, that represent events. These predicate are just true in the moment a special event happen.