I currently use the boiler to provide Hot Water and Backup heat when temp drops below 16. I have a regular schedule that turns the boiler on at 5 am and off at 10 pm. I also have a condition if temp drops below 16 it turns boiler on.
The problem is if it drops below 16 before the autoshut down at 10pm it doesnt retrigger.
Any way to write a script “if after 10:01pm and temp below 16 than boiler_on”
Thanks in advance for the help.
Any way to write a script "if after 10:01pm and temp below 16 than boiler_on"
It is easy to do using PLEG. It is not so easy to do with Vera scenes but it is possible if you add Lua code to implement the conditions.
When a trigger has the condition temperature is below… and it triggers outside your time window, it will not re-trigger until the temperature rises above the threshold and then drops again.
One solution is to have your scene run on a periodic schedule - say five minutes - and use Lua to check both the temperature and the time. Examples of the code required are in Conditional Scene Execution.
Another approach would be to set up a variable-watch in Vera’s Startup Lua which calls your scene whenever the temperature changes. Again the scene would require Lua code to check the time and temperature and issue the appropriate actions. See Variable Watch.
Unless you are, or want to be, familiar with Lua, you would probably find PLEG a quicker solution. See PLEG Basics for more on this.
In PLEG:
Input Schedule:
BoilerSchedule On everyday @ 5AM Off everyday @ 10PM
Input Trigger
ColdOutside Outsidetemp < 16
Two Conditions:
AutoOn BoilerSchedule OR ColdOutside
AutoOff !AutoOn
Add appropriate actions to AutoOn and AutoOff to turn on/off the Boiler.
You might want to add 1 minute delayed action on each of the commands to VERIFY the command gets sent.