We have moved at community.getvera.com

Author Topic: Can i check a thermostat setpoint ?  (Read 6162 times)

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #15 on: November 25, 2013, 11:26:08 am »
Done it. It needs to be before ResendSP so that ResendSP has the right time stamp when it is checked ?

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #16 on: November 25, 2013, 04:41:14 pm »
It is working, but when i change the setpoint manually the ResendSP comes into action and changes it back...

For some reason when i change the setpoint manually, the StudyTimer starts, which then triggers ResendSP. Just not sure why the timer starts when i change the setpoint manually ???   

Actually looking at the time stamps, ResendSP triggers the StudyTimer. So the problem is ResendSP. I am not sure how i can get that to ignore manual changes. If it is possible.
« Last Edit: November 25, 2013, 05:01:40 pm by mikee123 »

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Can i check a thermostat setpoint ?
« Reply #17 on: November 25, 2013, 05:28:02 pm »
Can you post a complete status report?

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #18 on: November 25, 2013, 05:39:18 pm »
Sure. Here it is, but it is quite long... i have started working on using your logic to contraol my main heating thermostat as well, but have not added any actions yet as i first need to solve the manual setpoint problem. I have now changed the setpoint for my Study manually, just waiting for ResendStudySP (renamed from ResendSP) to change it back then i will add it here.
From what i understand, ResendStudySP will always compare the setpoint with the target setpoint, i think that is the problem. So i think i know where it is going wrong, i just cannot work out a solution. Its going to be even trickier with my main heating, as there are 4 different main setpoints plus i want manual setpoints possible, but thats next on the list...

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #19 on: November 25, 2013, 05:40:52 pm »
HVAC PLEG
Device ID: 2502013-11-25 22:39:07.519 PLC Version: 5.4
Triggers
Name   Description   Last Trigger   State
OutsideHot   Temperature outside temperature goes above 19 degrees   2013-11-06 21:24:19.705    false
AC_Auto_ON   MultiSwitch Switch 3 is turned on   2013-11-25 16:25:46.418    true
RWindowOpen   Window Right is tripped   2013-10-30 19:57:05.335    false
LWindowOpen   Window Left is tripped   2013-10-30 19:36:15.288    false
HeatingON   MultiSwitch Switch 4 is turned on   2013-09-24 05:35:51.009    true
HotWaterON   MultiSwitch Switch 5 is turned on   2013-09-24 05:35:51.070    true
Away   MultiSwitch Switch 7 is turned on   2013-11-25 19:25:55.727    false
Vacation   MultiSwitch Switch 8 is turned on   0   false
ACisON   Air Condition is set to cool   2013-10-04 20:45:05.261    false
BedroomHot1   Temperature Master Bedroom temperature goes above 23.5 degrees   2013-10-23 16:24:09.866    false
BedroomVeryhot1   Temperature Master Bedroom temperature goes above 26 degrees   2013-09-05 19:30:17.819    false
BedroomCold1   Temperature Master Bedroom temperature goes below 21.5 degrees   2013-11-25 22:25:07.305    true
BedroomVeryCold   Temperature Master Bedroom temperature goes below 16 degrees   2013-11-21 04:35:33.561    false
HeatACOff   Temperature Master Bedroom temperature goes above 19 degrees   2013-11-25 12:29:43.292    false
ACHeatOn   Air Condition is set to heat   2013-11-20 03:11:18.512    true
Justhome1   (*)Justine?s iPhone is present   2013-11-25 16:29:54.443    true
Mikehome1   (*)Mike is present   2013-11-25 18:27:55.067    true
Autoaway1   MultiSwitch 2 Switch 5 is turned on   2013-11-25 11:48:42.201    false
StudyOn   MultiSwitch Switch 1 is turned on   2013-11-25 20:40:50.807    false
Schedules
Name   Type   Time   Days   Random On Delay   Off After Type   Off Time   Off Days   Random Off Delay   State   Last Schedule
check_Window   Weekly   21:20:00   1,2,3,4,5,6,7   None   None         None   false   2013-11-25 21:20:00.100
HWOnWD1   Weekly   04:46:00   1,2,3,4,5   None   Weekly   05:29:00      None   false   2013-11-25 04:46:00.100
HWOnWE1   Weekly   05:57:00   6   None   Weekly   06:40:00   6   None   false   2013-11-23 05:57:00.101
HWOn1   Weekly   16:30:00   1,2,3,4,5,6,7   None   Weekly   16:50:00      None   false   2013-11-25 16:30:00.102
HeatWDOn   Weekly   05:05:00   1,2,3,4,5   None   Weekly   22:10:00   1,2,3,4,5   None   false   2013-11-25 05:05:00.100
HeatWEOn   Weekly   06:35:00   6   None   Weekly   22:40:00   6   None   false   2013-11-23 06:35:00.100
WD1   Weekly   21:30:00   1,2,3,4,7   None   Interval   7:20:00      None   true   2013-11-25 21:30:00.102
WE1   Weekly   22:00:00   6   None   Interval   9:10:00      None   false   2013-11-23 22:00:00.080
WD2   Weekly   21:45:00   5   None   Interval   09:20:00      None   false   2013-11-22 21:45:00.100
StudyWD1   Weekly   18:15:00   1,2,3,4   None   Weekly   22:00:00   1,2,3,4   None   false   2013-11-25 18:15:00.100
StudyWD2   Weekly   18:15:00   5   None   Weekly   22:20:00   5   None   false   2013-11-24 18:15:00.100
StudyWE1   Weekly   08:15:00   6   None   Weekly   20:00:00   6   None   false   2013-11-23 08:15:00.100
StudyWE2   Weekly   13:00:00   7   None   Weekly   22:10:00   7   None   false   2013-11-24 13:00:00.081
GuestbedWD1   Weekly   06:00:00   1,2,3,4   None   Weekly   08:00:00   1,2,3,4   None   false   2013-11-25 06:00:00.080
GuestbedWD2   Weekly   20:30:00   1,2,3,4,5   None   Weekly   22:00:00   1,2,3,4,5   None   false   2013-11-25 20:30:00.007
GuestbedWD3   Weekly   07:00:00   5   None   Weekly   11:00:00   5   None   false   2013-11-22 07:00:00.079
GuestbedWE1   Weekly   07:00:00   6,7   None   Weekly   09:00:00   6,7   None   false   2013-11-24 07:00:00.100
GuestbedWE2   Weekly   21:00:00   6,7   None   Weekly   22:00:00   6,7   None   false   2013-11-24 21:00:00.079
HeatWEOn2   Weekly   06:40:00   7   None   Weekly   22:10:00   7   None   false   2013-11-24 06:40:00.104
LoungeWD1   Weekly   17:45:00   1,2,3,4,5   None   Weekly   23:30:00   1,2,3,4,5   None   true   2013-11-25 17:45:00.100
LoungeWE1   Weekly   08:30:00   6   None   Weekly   23:59:00   6   None   false   2013-11-23 08:30:00.080
LoungeWE2   Weekly   11:30:00   7   None   Weekly   22:45:00   7   None   false   2013-11-24 11:30:00.081
StudyTimer   Self Trigger         None   Interval   00:04:05      None   false   2013-11-25 22:34:43.689
HeatTimer   Self Trigger         None   Interval   04:50      None   false   0
Device Properties
Name   Device Name   Device Variable   Last Change   Value
DOW      DOW   2013-11-25 00:00:00.102    2
WE      Weekend   2013-11-25 00:00:00.331    0
StudySetpoint   Study Rad   CurrentSetpoint   2013-11-25 22:38:44.975    2
HeatSetpoint   Heating Thermostat   CurrentSetpoint   2013-11-25 22:32:06.965    16
Conditions
Name   Expression   Last True   State
OpenWindow   BedroomHot1 and AC_Auto_ON and (WD1 or WD2 or WE1) and (NOT OutsideHot) and check_Window and NOT WindowOpen and NOT Vacation and NOT Away   0   false
CloseWindow   BedroomHot1 and AC_Auto_ON and WindowOpen and check_Window and OutsideHot and NOT Vacation and NOT Away   2013-09-05 20:20:00.045    false
WindowOpen   RWindowOpen or LWindowOpen   2013-10-30 19:57:05.361    false
ACmanualHigh   BedroomVeryhot1 and (21:42:00;NOW) and NOT Vacation and AC_Auto_ON   0   false
AC_On   BedroomHot1 and AC_Auto_ON and (WD1 or WD2 or WE1) and NOT WindowOpen   2013-10-04 20:45:00.118    false
AC_Off   ((BedroomCold1 and (AC_On; Now > 15:00)) or (NOT WD1 and NOT WD2 and NOT WE1) or NOT AC_Auto_ON or WindowOpen or HeatBedoff) and ACisON   2013-11-02 05:49:13.661    false
Bedtoocold   BedroomVeryCold and NOT Vacation and AC_Auto_ON and (WD1 or WD2 or WE1) and NOT WindowOpen   2013-11-21 04:09:33.587    false
HeatBedoff   (HeatACOff or WindowOpen or (NOT WD1 and NOT WD2 and NOT WE1)) and ACHeatOn   2013-11-25 04:50:00.096    false
HWOn   (HWOnWD1 or HWOnWE1 or HWOn1) and HotWaterON   2013-11-25 16:30:00.147    false
HWOff   NOT HWOn   2013-11-25 16:50:00.141    true
HeatON   ((HeatWEOn or HeatWDOn or HeatWEOn2) and HeatingON) and NOT Autoaway1   2013-11-25 16:25:45.313    false
HeatOff   NOT HeatON or NOT HeatingON   2013-11-25 22:10:00.150    true
HeatAway   Autoaway1   2013-11-25 11:48:42.249    false
AC_message   AC_On and (NOT OutsideHot) and (NOW;22:45:00)   2013-10-04 20:45:00.146    false
StudyHeatOn   (StudyWD1 or StudyWD2 or StudyWE1 or StudyWE2) and NOT Away and StudyOn   2013-11-25 20:40:50.864    false
StudyHeatOff   NOT StudyHeatOn or Away   2013-11-25 20:40:54.295    true
GuestbedHeatOn   (GuestbedWD1 or GuestbedWD2 or GuestbedWD3 or GuestbedWE1 or GuestbedWE2) and NOT Away   2013-11-25 19:44:35.949    false
GuestbedHeatOff   NOT GuestbedHeatOn or Away   2013-11-25 22:00:00.310    true
LoungeHeatOn   LoungeWD1 or LoungeWE1 or LoungeWE2    2013-11-22 17:45:00.169    true
LoungeHeatOff   NOT LoungeHeatOn   2013-11-21 23:30:00.151    false
StudyTarget   StudyHeatOn ? 24 : 2   2013-11-25 12:44:33.515    2
StudyTimerEnded   !StudyTimer   2013-11-25 22:38:48.445    true
ResendStudySP   StudyTimerEnded AND (StudyTimer; StudyTimerEnded < 5:00) AND (StudySetPoint != StudyTarget)   2013-11-25 22:34:43.645    false
HeatTarget   HeatON ? 20 : 16   2013-11-25 22:09:07.583    16
HeatTimerEnded   !HeatTimer   2013-11-25 22:09:07.586    true
ResendHeatSP   HeatTimerEnded AND (HeatTimer; HeatTimerEnded < 5:00) AND (HeatSetPoint != HeatTarget)   0   false
Actions
Actions for Condition: ACmanualHigh
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=Turn On AC High Description=Bedroom very hot Priority=1 URL=
HVAC PLEG   RunScene   SceneNameOrNumber=64
Actions for Condition: AC_On
Immediate
Device   Action   Arguments
Air Condition   SetModeTarget   NewModeTarget=CoolOn
Push Notification Prowl   SendProwlNotification   Event=AC Description=AC is ON Priority=1 URL=
Actions for Condition: HWOn
Immediate
Device   Action   Arguments
Hot Water   SetModeTarget   NewModeTarget=HeatOn
Actions for Condition: HWOff
Immediate
Device   Action   Arguments
Hot Water   SetModeTarget   NewModeTarget=Off
Actions for Condition: CloseWindow
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=test Description=close window Priority= URL=
HVAC PLEG   RunScene   SceneNameOrNumber=71
Actions for Condition: HeatON
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=74
Actions for Condition: HeatOff
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=73
Actions for Condition: AC_Off
Immediate
Device   Action   Arguments
Air Condition   SetModeTarget   NewModeTarget=Off
Actions for Condition: OpenWindow
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=Open Bedroom Description=Window Priority=1 URL=
HVAC PLEG   RunScene   SceneNameOrNumber=59
Actions for Condition: Bedtoocold
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=83
Air Condition   SetModeTarget   NewModeTarget=HeatOn
Air Condition   SetCurrentSetpoint   NewCurrentSetpoint=24
Actions for Condition: AC_message
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=59
Actions for Condition: StudyHeatOn
Immediate
Device   Action   Arguments
MultiSwitch   SetStatus1   newStatus1=1
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint=24
Actions for Condition: StudyHeatOff
Immediate
Device   Action   Arguments
MultiSwitch   SetStatus1   newStatus1=0
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint=2
Actions for Condition: HeatAway
Delay 02:00
Device   Action   Arguments
Heating Thermostat   SetCurrentSetpoint   NewCurrentSetpoint=18
Actions for Condition: LoungeHeatOn
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=96
MultiSwitch   SetStatus2   newStatus2=1
Actions for Condition: LoungeHeatOff
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=97
MultiSwitch   SetStatus2   newStatus2=0
Actions for Condition: ResendStudySP
Immediate
Device   Action   Arguments
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint={(StudyTarget)}

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Can i check a thermostat setpoint ?
« Reply #20 on: November 25, 2013, 05:51:23 pm »
Sorry, my mistake. Change to:

ResendStudySP   StudyTimerEnded AND (StudyTimerEnded; NOW < 1:00) AND (StudySetPoint != StudyTarget)

« Last Edit: November 25, 2013, 06:10:07 pm by RexBeckett »

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #21 on: November 25, 2013, 06:13:16 pm »
I tried both, same result. When i change the setpoint manually ResendStudySP becomes true and changes it back.

HVAC PLEG
Device ID: 2502013-11-25 23:11:54.385 PLC Version: 5.4
Triggers
Name   Description   Last Trigger   State
OutsideHot   Temperature outside temperature goes above 19 degrees   2013-11-06 21:24:19.705    false
AC_Auto_ON   MultiSwitch Switch 3 is turned on   2013-11-25 16:25:46.418    true
RWindowOpen   Window Right is tripped   2013-10-30 19:57:05.335    false
LWindowOpen   Window Left is tripped   2013-10-30 19:36:15.288    false
HeatingON   MultiSwitch Switch 4 is turned on   2013-09-24 05:35:51.009    true
HotWaterON   MultiSwitch Switch 5 is turned on   2013-09-24 05:35:51.070    true
Away   MultiSwitch Switch 7 is turned on   2013-11-25 19:25:55.727    false
Vacation   MultiSwitch Switch 8 is turned on   0   false
ACisON   Air Condition is set to cool   2013-10-04 20:45:05.261    false
BedroomHot1   Temperature Master Bedroom temperature goes above 23.5 degrees   2013-10-23 16:24:09.866    false
BedroomVeryhot1   Temperature Master Bedroom temperature goes above 26 degrees   2013-09-05 19:30:17.819    false
BedroomCold1   Temperature Master Bedroom temperature goes below 21.5 degrees   2013-11-25 23:05:24.976    true
BedroomVeryCold   Temperature Master Bedroom temperature goes below 16 degrees   2013-11-21 04:35:33.561    false
HeatACOff   Temperature Master Bedroom temperature goes above 19 degrees   2013-11-25 12:29:43.292    false
ACHeatOn   Air Condition is set to heat   2013-11-20 03:11:18.512    true
Justhome1   (*)Justine?s iPhone is present   2013-11-25 16:29:54.443    true
Mikehome1   (*)Mike is present   2013-11-25 18:27:55.067    true
Autoaway1   MultiSwitch 2 Switch 5 is turned on   2013-11-25 11:48:42.201    false
StudyOn   MultiSwitch Switch 1 is turned on   2013-11-25 20:40:50.807    false
Schedules
Name   Type   Time   Days   Random On Delay   Off After Type   Off Time   Off Days   Random Off Delay   State   Last Schedule
check_Window   Weekly   21:20:00   1,2,3,4,5,6,7   None   None         None   false   2013-11-25 21:20:00.100
HWOnWD1   Weekly   04:46:00   1,2,3,4,5   None   Weekly   05:29:00      None   false   2013-11-25 04:46:00.100
HWOnWE1   Weekly   05:57:00   6   None   Weekly   06:40:00   6   None   false   2013-11-23 05:57:00.101
HWOn1   Weekly   16:30:00   1,2,3,4,5,6,7   None   Weekly   16:50:00      None   false   2013-11-25 16:30:00.102
HeatWDOn   Weekly   05:05:00   1,2,3,4,5   None   Weekly   22:10:00   1,2,3,4,5   None   false   2013-11-25 05:05:00.100
HeatWEOn   Weekly   06:35:00   6   None   Weekly   22:40:00   6   None   false   2013-11-23 06:35:00.100
WD1   Weekly   21:30:00   1,2,3,4,7   None   Interval   7:20:00      None   true   2013-11-25 21:30:00.102
WE1   Weekly   22:00:00   6   None   Interval   9:10:00      None   false   2013-11-23 22:00:00.080
WD2   Weekly   21:45:00   5   None   Interval   09:20:00      None   false   2013-11-22 21:45:00.100
StudyWD1   Weekly   18:15:00   1,2,3,4   None   Weekly   22:00:00   1,2,3,4   None   false   2013-11-25 18:15:00.100
StudyWD2   Weekly   18:15:00   5   None   Weekly   22:20:00   5   None   false   2013-11-24 18:15:00.100
StudyWE1   Weekly   08:15:00   6   None   Weekly   20:00:00   6   None   false   2013-11-23 08:15:00.100
StudyWE2   Weekly   13:00:00   7   None   Weekly   22:10:00   7   None   false   2013-11-24 13:00:00.081
GuestbedWD1   Weekly   06:00:00   1,2,3,4   None   Weekly   08:00:00   1,2,3,4   None   false   2013-11-25 06:00:00.080
GuestbedWD2   Weekly   20:30:00   1,2,3,4,5   None   Weekly   22:00:00   1,2,3,4,5   None   false   2013-11-25 20:30:00.007
GuestbedWD3   Weekly   07:00:00   5   None   Weekly   11:00:00   5   None   false   2013-11-22 07:00:00.079
GuestbedWE1   Weekly   07:00:00   6,7   None   Weekly   09:00:00   6,7   None   false   2013-11-24 07:00:00.100
GuestbedWE2   Weekly   21:00:00   6,7   None   Weekly   22:00:00   6,7   None   false   2013-11-24 21:00:00.079
HeatWEOn2   Weekly   06:40:00   7   None   Weekly   22:10:00   7   None   false   2013-11-24 06:40:00.104
LoungeWD1   Weekly   17:45:00   1,2,3,4,5   None   Weekly   23:30:00   1,2,3,4,5   None   true   2013-11-25 17:45:00.100
LoungeWE1   Weekly   08:30:00   6   None   Weekly   23:59:00   6   None   false   2013-11-23 08:30:00.080
LoungeWE2   Weekly   11:30:00   7   None   Weekly   22:45:00   7   None   false   2013-11-24 11:30:00.081
StudyTimer   Self Trigger         None   Interval   00:04:05      None   true   2013-11-25 23:11:26.231
HeatTimer   Self Trigger         None   Interval   04:50      None   false   0
Device Properties
Name   Device Name   Device Variable   Last Change   Value
DOW      DOW   2013-11-25 00:00:00.102    2
WE      Weekend   2013-11-25 00:00:00.331    0
StudySetpoint   Study Rad   CurrentSetpoint   2013-11-25 23:10:58.156    3
HeatSetpoint   Heating Thermostat   CurrentSetpoint   2013-11-25 22:32:06.965    16
Conditions
Name   Expression   Last True   State
OpenWindow   BedroomHot1 and AC_Auto_ON and (WD1 or WD2 or WE1) and (NOT OutsideHot) and check_Window and NOT WindowOpen and NOT Vacation and NOT Away   0   false
CloseWindow   BedroomHot1 and AC_Auto_ON and WindowOpen and check_Window and OutsideHot and NOT Vacation and NOT Away   2013-09-05 20:20:00.045    false
WindowOpen   RWindowOpen or LWindowOpen   2013-10-30 19:57:05.361    false
ACmanualHigh   BedroomVeryhot1 and (21:42:00;NOW) and NOT Vacation and AC_Auto_ON   0   false
AC_On   BedroomHot1 and AC_Auto_ON and (WD1 or WD2 or WE1) and NOT WindowOpen   2013-10-04 20:45:00.118    false
AC_Off   ((BedroomCold1 and (AC_On; Now > 15:00)) or (NOT WD1 and NOT WD2 and NOT WE1) or NOT AC_Auto_ON or WindowOpen or HeatBedoff) and ACisON   2013-11-02 05:49:13.661    false
Bedtoocold   BedroomVeryCold and NOT Vacation and AC_Auto_ON and (WD1 or WD2 or WE1) and NOT WindowOpen   2013-11-21 04:09:33.587    false
HeatBedoff   (HeatACOff or WindowOpen or (NOT WD1 and NOT WD2 and NOT WE1)) and ACHeatOn   2013-11-25 04:50:00.096    false
HWOn   (HWOnWD1 or HWOnWE1 or HWOn1) and HotWaterON   2013-11-25 16:30:00.147    false
HWOff   NOT HWOn   2013-11-25 16:50:00.141    true
HeatON   ((HeatWEOn or HeatWDOn or HeatWEOn2) and HeatingON) and NOT Autoaway1   2013-11-25 16:25:45.313    false
HeatOff   NOT HeatON or NOT HeatingON   2013-11-25 22:10:00.150    true
HeatAway   Autoaway1   2013-11-25 11:48:42.249    false
AC_message   AC_On and (NOT OutsideHot) and (NOW;22:45:00)   2013-10-04 20:45:00.146    false
StudyHeatOn   (StudyWD1 or StudyWD2 or StudyWE1 or StudyWE2) and NOT Away and StudyOn   2013-11-25 20:40:50.864    false
StudyHeatOff   NOT StudyHeatOn or Away   2013-11-25 20:40:54.295    true
GuestbedHeatOn   (GuestbedWD1 or GuestbedWD2 or GuestbedWD3 or GuestbedWE1 or GuestbedWE2) and NOT Away   2013-11-25 19:44:35.949    false
GuestbedHeatOff   NOT GuestbedHeatOn or Away   2013-11-25 22:00:00.310    true
LoungeHeatOn   LoungeWD1 or LoungeWE1 or LoungeWE2    2013-11-22 17:45:00.169    true
LoungeHeatOff   NOT LoungeHeatOn   2013-11-21 23:30:00.151    false
StudyTarget   StudyHeatOn ? 24 : 2   2013-11-25 12:44:33.515    2
StudyTimerEnded   !StudyTimer   2013-11-25 23:11:00.170    false
ResendStudySP   StudyTimerEnded AND (StudyTimerEnded; NOW < 1:00) AND (StudySetPoint != StudyTarget)   2013-11-25 23:11:26.172    false
HeatTarget   HeatON ? 20 : 16   2013-11-25 22:09:07.583    16
HeatTimerEnded   !HeatTimer   2013-11-25 22:09:07.586    true
ResendHeatSP   HeatTimerEnded AND (HeatTimer; HeatTimerEnded < 5:00) AND (HeatSetPoint != HeatTarget)   0   false
Actions
Actions for Condition: ACmanualHigh
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=Turn On AC High Description=Bedroom very hot Priority=1 URL=
HVAC PLEG   RunScene   SceneNameOrNumber=64
Actions for Condition: AC_On
Immediate
Device   Action   Arguments
Air Condition   SetModeTarget   NewModeTarget=CoolOn
Push Notification Prowl   SendProwlNotification   Event=AC Description=AC is ON Priority=1 URL=
Actions for Condition: HWOn
Immediate
Device   Action   Arguments
Hot Water   SetModeTarget   NewModeTarget=HeatOn
Actions for Condition: HWOff
Immediate
Device   Action   Arguments
Hot Water   SetModeTarget   NewModeTarget=Off
Actions for Condition: CloseWindow
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=test Description=close window Priority= URL=
HVAC PLEG   RunScene   SceneNameOrNumber=71
Actions for Condition: HeatON
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=74
Actions for Condition: HeatOff
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=73
Actions for Condition: AC_Off
Immediate
Device   Action   Arguments
Air Condition   SetModeTarget   NewModeTarget=Off
Actions for Condition: OpenWindow
Immediate
Device   Action   Arguments
Push Notification Prowl   SendProwlNotification   Event=Open Bedroom Description=Window Priority=1 URL=
HVAC PLEG   RunScene   SceneNameOrNumber=59
Actions for Condition: Bedtoocold
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=83
Air Condition   SetModeTarget   NewModeTarget=HeatOn
Air Condition   SetCurrentSetpoint   NewCurrentSetpoint=24
Actions for Condition: AC_message
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=59
Actions for Condition: StudyHeatOn
Immediate
Device   Action   Arguments
MultiSwitch   SetStatus1   newStatus1=1
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint=24
Actions for Condition: StudyHeatOff
Immediate
Device   Action   Arguments
MultiSwitch   SetStatus1   newStatus1=0
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint=2
Actions for Condition: HeatAway
Delay 02:00
Device   Action   Arguments
Heating Thermostat   SetCurrentSetpoint   NewCurrentSetpoint=18
Actions for Condition: LoungeHeatOn
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=96
MultiSwitch   SetStatus2   newStatus2=1
Actions for Condition: LoungeHeatOff
Immediate
Device   Action   Arguments
HVAC PLEG   RunScene   SceneNameOrNumber=97
MultiSwitch   SetStatus2   newStatus2=0
Actions for Condition: ResendStudySP
Immediate
Device   Action   Arguments
HVAC PLEG   StartTimer   timerName=StudyTimer
Study Rad   SetCurrentSetpoint   NewCurrentSetpoint={(StudyTarget)}

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Can i check a thermostat setpoint ?
« Reply #22 on: November 25, 2013, 06:30:51 pm »
The term (StudyTimerEnded; NOW < 1:00) should stop it reacting to manual changes provided they are more than one minute after the last automatic resend was found to be successful. You should wait at least 4:05 + 1:00 = 5:05 after seeing the setpoint has changed automatically before changing it manually.
 

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #23 on: November 26, 2013, 03:11:00 am »
The problem was lack of patience here... I tried this morning and it worked fine. So i just did not wait long eneough before changing manaually. So now i have the basics to get the main heating thermostat on the same sort of logic, it will be a lot more complex though as i have 4 main setpoints. If i do get stuck i'll be adding to this thread, but i've got good ideas now thanks to your help.

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Can i check a thermostat setpoint ?
« Reply #24 on: November 26, 2013, 04:25:04 am »
I'm happy to hear it is working. For your main heating logic, consider calculating the required setpoint using the fact that a trigger/condition has a numerical value of 1 when true and 0 when false. For example:

HeatingOn  Timer for daily periods when heat required
Away  Switch or logic indicating not at home

SetPoint  14 + (HeatingOn * 6) - (Away * 5)

This would give 14 at night and 20 during the day when at home or 9 at night and 15 during the day when away.

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #25 on: November 26, 2013, 04:31:52 am »
That is a great idea. Never thought about that. Food for thought....

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Can i check a thermostat setpoint ?
« Reply #26 on: November 26, 2013, 08:18:41 am »
A Less tricky way to do this is with two stages of conditionals:


SetPoint    HeatOn ? (Away ? 15 : 20) : (Away ?  9 : 14)

The parenthesis are not needed but help readability.
(Less tricky if you want to change one of the set points!)


Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Can i check a thermostat setpoint ?
« Reply #27 on: November 26, 2013, 08:28:41 am »
This is what i have come up with and testing at the moment.

HeatSP 16 + (HeatOn * 4) - (Autoaway1 * 2) - (Vacation * 2) 2013-11-26 11:18:10  20

@RichardTSchaefer

I am not sure i understand how your solution works. I understand this for example: HeatTarget HeatON ? 20 : 16  but not sure when yours does what...

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Can i check a thermostat setpoint ?
« Reply #28 on: November 26, 2013, 09:09:11 am »
Sir Richard of Marble Falls is right (as he usually is): If you only have two variables then nested conditionals is neater and may be easier to follow. With three or more variables, though, the tricky technique has some merit...

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Can i check a thermostat setpoint ?
« Reply #29 on: November 26, 2013, 02:25:42 pm »
With 3 or more variables I challenge you to find the correct algorithm to map

       Map(Var1, Var2, Var3) into the desired values.