Thermostat with the Emergency Mode (Periodic Switching a Heater On) When a Temperature Sensor Fails with SMS-Notification

  • Published In: FAQ
  • Created Date: 2017-10-16
  • Hits: 162

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:

  1. Start the operation of a thermostat (t<10°C -> switch a relay 1 on, t>20°C -> switch a relay 1 off);
  2. If a temperature sensor fails, send an SMS-notification and start an endless cycle with a duration of 1 hour;
  3. In the beginning of the cycle, switch a heater on for 15 minutes;
  4. 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:

Going to the page Logic of NetPing 4PWR-220 v4SMS

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.

IMPORTANT. In the updated Logic module, the location order of rules is irrelevant. Priorities of rules (a more important rule is located closer to the top of the list, While is more important than If) do not work anymore. Also, there is no need to connect a relay to Logic on the Relay page. In the updated Logic, all sources of control are equal and active simultaneously. The updated Logic without priorities is easy to determine by no choice of the rule type If/While on the left of the line.

General view of the updated module Logic

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:

NetPing 4PWR-220 v4SMS configuring the first rule

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:

NetPing 4PWR-220 v4SMS configuring the second rule

The third and the fourth rule:

The object Timer/Counter is new to the firmware DKSF 54.3.2. If the action "Start from 0" is applied to it, then it counts time in seconds. If the actions "set to zero", "add 1", "remove 1" are applied, the object works as a counter.

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:

NetPing 4PWR-220 v4SMS configuring the third and the fourth rules

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:

NetPing 4PWR-220 v4SMS configuring the fifth rule

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:

NetPing 4PWR-220 v4SMS configuring the sixth rule

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:

NetPing 4PWR-220 v4SMS configuring the seventh rule

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:

NetPing 4PWR-220 v4SMS configuring the eighth rule

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:

NetPing 4PWR-220 v4SMS applying changes

Now, configure the sending of an SMS-notification about failure of the Temperature Sensor 1.

Go to the page "Notification":

NetPing 4PWR-220 v4SMS going to the page Notification

Click the note "Click here to add new record" in the last line of the block "Customizable Notifications":

NetPing 4PWR-220 v4SMS creating a new notification

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.

NetPing 4PWR-220 v4SMS filling in a notification form

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.


comments powered by Disqus