Jump to content
C4 Forums | Control4
  • 0

Two Garage Door Scheduled Status Check


Question

Posted

I have a single and double garage door. There is a scheduler event set for 10pm daily.  What script do I need to add to the below programing that each when each door is checked at 10pm, whereas if both doors are open I will get a separate push notifications for each door.  Thank you for the forum's assistance. 

 

image.thumb.png.f120f6e01d6feb479e7e3c5f7c73edba.png

 

8 answers to this question

Recommended Posts


  • 0
Posted
22 minutes ago, msgreenf said:

Create two different push notifications or honestly I would just create one and run it at the end. And have a variable in there for each door status

@msgreenf thank you for the response.  I'm going to create two different scheduled events and also program a voice announcement "Single Garage Door is Open" and "Double Garage Door is Open".  Is there a text to voice wav file program you recommend to create announcements to be important into the announcement agent?

  • 0
Posted

I use @Shivam Paw text to speech converter (available on Driver Central).  As well as the Chowmain one mentioned above, Annex4 also has one (available on their site).  All of them have advantages / disadvantages relative to each other.  I’ve used all 3 (and others that are not available anymore).  There may well also be other currently available drivers that do this. 

  • 0
Posted

On your if statement why not use:

if garage door 1 is open and garage door 2 is open then

     Send a push notification saying both are open

else if garage door 1 is open then 

     Send a push notification saying door 1 is open

else if garage door 2 is open then 

     Send a push notification saying door 2 is open

else

    All good do nothing…

  • 0
Posted
9 hours ago, South Africa C4 user said:

On your if statement why not use:

if garage door 1 is open and garage door 2 is open then

     Send a push notification saying both are open

else if garage door 1 is open then 

     Send a push notification saying door 1 is open

else if garage door 2 is open then 

     Send a push notification saying door 2 is open

else

    All good do nothing…

Thank you @South Africa C4 user.  As I added stops after each 'else' command.  Only push notification which is not working is for the single door when left open.  Posted the screen snip for feedback and to assist others in the future, as a picture is worth a thousand words. 

image.thumb.png.af8efa0ff0ed751e2f0d9e4a67b95a89.png

  • 0
Posted
14 minutes ago, Popolou said:

I could be mistaken, but the second and third IF statements need to be under (indented) the Else statement to work as you intended. That may allow you to remove the Stop commands as advised.

@IBZICON - this is what you want.  Once indented you can remove the stop command. That said, what you did should (in fact) do what you wanted.  Although the else’s in your code (without the indentation) is redundant.

To indent the second and third if statements, drag them over the relevant else statements.

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.