Jump to content

Program Help


Greg

Recommended Posts

Posted (edited)

I know this has to be something stupid simple but I just don't see where I am going wrong.  I have an Alexa routine that is set-up as a Device/light, so that I can say something more natural than set on or set off.  My spoken command is "Open the truck door" this changes my $Retirement_Garage_Door (State) variable to 100.  Which then triggers this:

Truck_Door_Alexa_Open - [ID 0018][Parent 0027]

If
        $Retirement_Garage_Door >= 50
    And 'MyQ / Main Door' Door State is Closed
 
Then
        Set 'MyQ / Main Door' Open
        Wait  1 minute 
        $Retirement_Garage_Door  = 0
 
Else
   - No Actions - (To add one, press 'Action')
 

The problem is the $Retirement_Garage_Door stays at the 100 and won't reset to 0.  Hence, after I am done parking and am going into the house, punching the manual control on the wall, which changes the door state back to closed, as soon as that happens, it opens back up.  

PS.  I takes me WAAAAY longer to park the truck than 1 minute, I have about 3" of clearance on each side with the mirrors folded in and maybe 2" in front and behind.

 

Thanks for any suggestions I can do towards resolving this.

 

Greg

Edited by Greg
Posted

Your action first sets the main door open, then waits.  Unfortunately, this will retrigger your program and halt further execution of the action, which will now be false and run ELSE.  

The trick here is to use two programs.  One option would be something like:

If
        $Retirement_Garage_Door >= 50
    And 'MyQ / Main Door' Door State is Closed
 
Then
        run next program (then path)
Else
   - No Actions - (To add one, press 'Action')

next program:

If
        nothing
 
Then
        Set 'MyQ / Main Door' Open
        Wait  1 minute 
        $Retirement_Garage_Door  = 0
 
Else
   - No Actions - (To add one, press 'Action')

 

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

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