Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Program Help

Featured Replies

Posted

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

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')

 

  • Author

Got it, thanks for the clarity

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.