This example shows how to setup Avior as a remote thermostat for boiler of your holiday house.
You will need NTC temperature sensor "RSR001 103AT-11" (order code 3010.00.90).
• Terminal 05 (Analog Input 4): NTC.
• Terminal 06 (Positive): NTC.
ADDITIONAL TEMPERATURE SENSORS CAN BE CONNECTED BETWEEN THE POSITIVE (TERMINAL 6)
AND THE OTHER ANALOG INPUTS (TERMINALS 2 3 4)
Set Analog Input 4 mode to TEMPERATURE °C [NTC 10K].
Set Analog Input 4 name to Temperature.
Set Memory Bit 4 name to Thermostat.
Set Memory Variable 4 name to Setpoint.
Set Relay Output 4 name to Boiler.
Users stored in user list can send SMS to control turn on/off the thermostat, asking status and setup temperature setpoint:
NAME: ProfessorX
TYPE: TELEPHONE
IDENTIFIER: +4499992222
GROUP: xmen
START: 01/01/2000 00:00
STOP: 31/12/2099 23:59
WEEKDAYS: YYYYYYY
TICKETS: UNLIMITED
NAME: Wolverine
TYPE: TELEPHONE
IDENTIFIER: +3912345678
GROUP: xmen
START: 01/01/2000 00:00
STOP: 31/12/2099 23:59
WEEKDAYS: YYYYYYY
TICKETS: UNLIMITED
Rule 001 is triggered at each incoming SMS from users.
Condition: text of received SMS contains the word "status".
An SMS is sent back to user (N23) with current status.
THE STATUS MESSAGE IS BUILT BY INSERTING TAGS:
• D01 = Device name
• A42 = Analog input 4 - Average value
• V41 = Variable 4 - value
• M41 = Memory bit 4 - status
• O42 = Output 4 - status
%0A USED TO START A NEW LINE
– StatusRequest ↯ SMS from user ✛ PLMN - Text of Last SMS Received ⊇ status ✛ ✛ ✛ ✛ > AT+SMS=$N23,"$D01%0ATemperature: $A42 C%0A(Setpoint: $V41)%0AThermostat: $M41%0ABoiler: $O42" > > > >
Rule 002 is triggered at each incoming SMS from users.
Condition: text of received SMS contains the word "ON".
Thermostat (memory bit 4) enabled (start temperature regulation).
YOU MAY NOTICE THAT WE HAVE USED THE ASSIGNED NAME OF MEMORY BIT4 Thermostat TO CHANGE ITS STATUS
– EnableThermostat ↯ SMS from user ✛ PLMN - Text of Last SMS Received ⊇ ON ✛ ✛ ✛ ✛ > Thermostat=1 > > > >
Rule 003 is triggered at each incoming SMS from users.
Condition: text of received SMS contains the word "OFF".
Thermostat (memory bit 4) disabled (stop temperature regulation)
Boiler (output 4) WILL BE TURNED OFF BY RULE 007
– DisableThermostat ↯ SMS from user ✛ PLMN - Text of Last SMS Received ⊇ OFF ✛ ✛ ✛ ✛ > Thermostat=0 > > > >
Rule 004 is triggered at each incoming SMS from users.
No conditions are set.
Text received (N24) used as a command.
HERE ANY TEXT RECEIVED WITHIN THE SMS MESSAGE
IS PARSED AS A COMMAND
THUS THE USER CAN SEND "Setpoint=<value>"
TO CHANGE THE VALUE OF MEMORY VARIABLE 4 Setpoint
– Setpoint
↯ SMS from user
✛
✛
✛
✛
✛
> $N24
>
>
>
>
Rule 005 is triggered by Analog Input 4.
Condition 1: temperature is above Setpoint.
Condition 2: Thermostat is enabled.
Switch Boiler (output 4) OFF.
– BoilerOFF ↯ Analog Input 4 ✛ Analog Input 4 - Average > Memory Variable 1 - Value ✛ Memory Bit 4 - Value = 1 ✛ ✛ ✛ > Boiler=OFF > > > >
Rule 006 is triggered by Analog Input 4.
Condition 1: temperature is below Setpoint.
Condition 2: Thermostat is enabled.
Condition 3: temperature out of range (NTC disconnected).
Switch Boiler (output 4) ON.
– BoilerON ↯ Analog Input 4 ✛ Analog Input 4 - Average < Memory Variable 1 - Value ✛ Memory Bit 4 - Value = 1 ✛ Analog Input 4 - Average ≠ -41 ✛ ✛ > Boiler=ON > > > >
Rule 007 is triggered by Memory Bit 4.
Condition 1: Thermostat is disabled.
Switch Boiler (output 4) OFF.
– DisableBoiler ↯ Memory Bit 4 ✛ Memory Bit 4 - Value = 0 ✛ ✛ ✛ ✛ > Boiler=OFF > > > >
POSSIBLE EXTENSION TO THIS EXAMPLE:
• ANTIFREEZE: BOILER ALWAYS ON FOR TEMP < 4°C
• FREE PHONE CALL TO TOGGLE THERMOSTAT ON/OFF
• CONTROL VIA TELEGRAM RATHER THAN SMS