Documentation
On change
The "On change" module enables the logic script to be executed when a specific variable has been changed (new value is assigned to the variable).
data points input
Name | Description |
---|---|
Value | Data point of the variable whose change is to trigger execution of the logic script. |
data point output
Name | Description |
---|---|
Value | Data point of the variable. The following branch of the logic script is only executed if the associated variable has been changed. |
Triggering | Data point of the module that returns TRUE if the linked variable has been changed. The following branch of the logic script is only executed if the variable has been changed. |
No triggering | Data point of the module that returns TRUE if the linked variable has not been changed. The following branch of the logic script is only executed if the variable has not been changed. |
application example
Given are 1 Homematic motion detector and 1 Homematic actuator for switching a light:
View of the two actuators in the WebFront
A logic script is now to be created in Logic Scripts that automatically switches a light on or off again when the motion detector is triggered.
You can implement this behavior by using a With change, predefined instance modules for setting the values can be found in the object tree of the logic script designer.
In this specific case, the logic script is called up each time the status variable of the motion detector is changed and applies its status to the light.