Create an action
The actions we have to implement are:
- turn on heating
- turn off heating
We will use the Item.Write XCommand to write a boolean value on the Server Item NETx\VAR\Boolean\Item001 which will switch the heating system.
Step by step
- Select the folder where to create the action and click Add > Action from the menu.
- In the form enter the name and the description of the action.
- In the form click the Add button to add some logic what to do in this action. Repeat this step to add additional actions.
- The XCommand sections appears
- Expand the XCommand list and select Item > Write
- Enter the Server Item and the values to write
- Save the action
- To create the "turn off" action we will copy and paste the action created right now.
Select in the project tree on the left hand side and click and from the menu. - The new action will get the name "TurnOnHeatingAction (1)" - so we have to change its name, the description and the action what to do
- Save the action
Animation
Create a condition
The condition we have to implement is to hold the temperature of minimum 22 degrees. We imagine to read the current room temperature from the Server Item NETx\VAR\Numeric\Item001.
Step by step
- Select the folder where to create the condition and click the Add button from the menu.
- Next from the menu click
- In the form enter the name and the description of the condition
- Click the button to add some logic what to do in this action. Repeat this step to add additional actions.
- The XCommand sections appears
- Expand the XCommand list and select Comparison > LessOrEqual
- Enter the Server Item and the value to conpare
- Save the condition
Animation