Jump to content

Triggering Events to send messages


3gdigital

Recommended Posts

Posted

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.

Posted (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 by LeeG
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...