A logic firmware module of NetPing devices is designed for a simple automation and may perform such tasks as maintaining micro climate, controlling automatic switching on/off the backup equipment and many other. Logic works on the basis of rules programmed by a user through a web interface. In the new firmware DKSF 54.3.2 for a NetPing 4/PWR-220 v4/SMS power distribution unit, a new module "Logic" was developed with the extended functionality. In the nearest time, the old module "Logic" will be replaced by the new module in all other devices.
Task: There is a need to ensure the temperature is in the range 10°C - 20°C indoors. To do this, there is a need to switch a heater on when the temperature drops below 10°C and switch it off at its rising more than 20°C. When a temperature sensor fails, there is a need to send an SMS-notification about the failure and activate an emergency mode without controlling temperature with periodic switching on a heater for 15 minutes every hour. When the normal operation of a temperature sensor is restored, there is a need to switch to a regular mode.
Let's consider the way of solving this task by using a NetPing 4/PWR-220 v4/SMS device with a new module "Logic".
Necessary equipment is as follows:
Operation Algorithm of a Solution:
- Start the operation of a thermostat (t<10°C -> switch a relay 1 on, t>20°C -> switch a relay 1 off);
- If a temperature sensor fails, send an SMS-notification and start an endless cycle with a duration of 1 hour;
- In the beginning of the cycle, switch a heater on for 15 minutes;
- When the operation of a temperature sensor is restored, start a thermostat.
Configuring a NetPing 4/PWR-220 v4/SMS Power Distribution Units
Let's suggest that a NetPing 4/PWR-220 v4/SMS device is configured for the operation in your local network and for the work with a temperature sensor. It is possible to learn more about the settings of NetPing 4/PWR-220 v4/SMS from the documentation of a device.
Let's go to the page "Logic" through a navigation menu under the header of the web interface:
Enable the line Rules by checking a checkbox on the left (1). Then, create a rule by choosing points of drop down menus and moving by the line from the left to the right, where conditions are on the left and actions that are activated by them are on the right.
If there is no need in a rule, uncheck a checkbox in the beginning of the line and move an inactive rule to the bottom of the list by buttons on the right of the line (2). Active working rules are better be kept at the top of the list in the order convenient for understanding.
Specify the first rule in the block "Rules":
If a temperature sensor 1 registers the indoor temperature is below 10°C, then the Relay 1 is switched on, which a heater is connected to. Check the first checkbox and specify the rule as in the example below:
The second rule:
If a temperature sensor 1 registers the indoor temperature is above 20°C, then the Relay 1 is switched off, which a heater is connected to. Check the second checkbox and specify the rule as in the example below:
The third and the fourth rule:
If a temperature sensor is switched to the status "Failed", then there is a need to enable sending an SMS-notification and start Timer/Counter 1 to enable the emergency mode. Check the third and the fourth check boxes and specify the rules as in the example below:
The fifth rule:
When the timer reaches the value 1, there is a need to switch on the Relay 1, which a heater is connected to. Check the fifth checkbox and specify the rule as in the example below:
The sixth rule:
When the Timer reached the value 901 (15 minutes from the moment of strarting the counter), there is a need to switch off the Relay 1, which a heater is connected to. Check the sixth checkbox and specify the rule as in the example below:
The seventh rule:
When the Timer reached the value 3600 (1 hour from the start of the counter), then there is a need to restart it to restart the next cycle of emergency work of a heater. Check the seventh checkbox and specify the rule as in the example below:
The eighth rule:
When a temperature sensor starts registering temperature again, there is a need to switch off the emergency mode. If a temperature sensor registers temperature above -40°C, then the Timer needs to be set to zero. Setting the Timer/Counter to zero means it is stopped. Check the eighth checkbox and specify the rule as in the example:
Click the button "Apply changes" (1) under the block "Rules" to apply the rules, then check the checkbox "Enable logic" (2) and click the button "Apply changes" (3) in the block "Logic" to start the operation of the programmed Logic:
Now, configure the sending of an SMS-notification about failure of the Temperature Sensor 1.
Go to the page "Notification":
Click the note "Click here to add new record" in the last line of the block "Customizable Notifications":
Fill in the notification form as in the example below, and click the button "Apply changes". Before, there is a need to configure sending SMS-notifications from a NetPing 4/PWR-220 v4/SMS power distribution unit. It is possible to learn how to do this from this article.
Done! A thermostat with the emergency operation mode when a temperature sensor fails is used.
Pay your attention please that the updated Logic is not the only way to control a relay depending on time. There is the module Schedule for periodic switching on/off depending on time and day of the week. It is possible to learn its settings and features in the documentation of a device.