Traditore Posted January 1, 2012 Share Posted January 1, 2012 I wrote this: If Time is 10:00:00PM And Status '0F.D2.3D.1/SDJ / 0F.D2.3D.B/Heater' is On Or Status '14.7C.5C.1/SDJ Heater' is On Then Set Elk Speak Word '[800hz_Tone]' Set Elk Speak Word 'Warning' Set Elk Speak Word 'Heat' Set Elk Speak Word 'Is' Set Elk Speak Word 'On' Set Elk Speak Word 'In' Set Elk Speak Word 'Play' Set Elk Speak Word 'Room' Else - No Actions - (To add one, press 'Action') How do I make this program repeat every five minutes until I drag my butt downstairs and physically turn off the heater? I assume it has to be done with some kind of if/then/else/true/false and at least one more program. Can anybody show me how? Thank you. Link to comment
LeeG Posted January 1, 2012 Share Posted January 1, 2012 Add a Repeat and Wait before statements in the Then Clause. A Repeat of 288 covers 24 hours. Probable not need that long. Adjust for as many 5 minute periods to repeat message. If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat 288 times Wait 5 minutes Existing statements Else - No Actions - (To add one, press 'Action') When the Status of the heater goes to Off the Repeat loop ends. Link to comment
LeeG Posted January 1, 2012 Share Posted January 1, 2012 The Wait should be put after the existing statements. Otherwise the first message will come at 10:05 rather than 10:00 If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat 288 times existing statements Wait 5 minutes Else - No Actions - (To add one, press 'Action') Link to comment
Traditore Posted January 2, 2012 Author Share Posted January 2, 2012 Simpler than I thought. Thank you LeeG, it works. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.