Jump to content

Triggering Events to send messages


3gdigital

Recommended Posts

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.

Link to comment

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.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...