3gdigital Posted February 25, 2015 Posted February 25, 2015 I currently have a program to trigger a text notification for my garage door when the Garage sensor is status off or on. If Status 'Garage-Sensor' is off and $GarageDoorOpen is 0 Then Send Notification 'Text' content 'GarageDoorOpen' $GarageDoorOpen =1 Set 'OutdoorModule' On $Garage_Light_On = 1 Wait 10 Minutes Set 'OutdoorModule' Off $Garage_Light_On = 0 Else The notification works fine, but also triggers the following program which causes two text messages. I assumed since the time is stated in the if statement this program it would not trigger, but it does. Am I missing something? Time is 9:00pm And (Status 'Garage-Sensor' is off And $Garage_Light_On is 0 And $GarageDoorOpen is 1 ) Then Set 'GarageRelay' On $GarageDoorOpen =0 Else Send Notification 'Text' content 'GarageDoorOpen' Thanks.
LeeG Posted February 25, 2015 Posted February 25, 2015 (edited) The Program will trigger with a False evaluation invoking the Else clause. EDIT: at a minimum a change in Garage-Sensor state will trigger the Program. The variables $Garage_Light_On and $GarageDoorOpen could trigger the Program as well if they are State variables. Edited February 25, 2015 by LeeG
Jimbo.Automates Posted February 25, 2015 Posted February 25, 2015 If you only want the then/else to run at 9pm then one way is to move everything except the time is 9pm to a separate program that is disabled, and run that program at 9pm. Sent from my Nexus 7 using Tapatalk
3gdigital Posted February 25, 2015 Author Posted February 25, 2015 (edited) Thanks for the replys. I will give it a shot tonight. Edited February 25, 2015 by 3gdigital
Recommended Posts