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 question - Press on turns off, press off turns off?

Featured Replies

Posted

Hi,

 

So I want to replace a scene with a program.  What I want to have happen is:

 

Press button D (on), keypad light goes to 4%

Press button D (off), keypad light goes to 0%

 

So far I only have half of it:



If
        Control 'Main House / Bedrooms / Main: Upstair Steve Keypad D' is switched On
 
Then
        Set 'Main House / Bedrooms / Main: Upstair Steve Keypad' 4%
 
Else
   - No Actions - (To add one, press 'Action')
 


Thanks,

Rich

Hi,

 

So I want to replace a scene with a program.  What I want to have happen is:

 

Press button D (on), keypad light goes to 4%

Press button D (off), keypad light goes to 0%

 

So far I only have half of it:



If
        Control 'Main House / Bedrooms / Main: Upstair Steve Keypad D' is switched On
 
Then
        Set 'Main House / Bedrooms / Main: Upstair Steve Keypad' 4%
 
Else
   - No Actions - (To add one, press 'Action')
 


Thanks,

Rich

 

add an off statement to the Else clause and change control to status in the IF statement

 

 

ELSE

    set keypad to 0

Edited by Techman

OK. Is there a question here? 

Keypad lights only work from scenes.

Keypad lights only work from scenes.

This. You cannot set keypad lights directly from a program....

This. You cannot set keypad lights directly from a program....

True for secondary buttons, not so sure for primary. Also, Secondary buttons, I thought, could be used as program conditions, however. No?

 

If keypad light is the primary button (and i expect that it is here) then

Sorry, got pulled away on something else.

 

It appears to me that this program is using a secondary button as a trigger, but commanding the primary button. I understood that one could not issue direct commands to secondary buttons, but thought you could use them as program conditions.

 

Being uncertain, I tried a quick experiment and found that I was remembering wrong.  Secondary buttons apparently do not even report status, nor can they be used to trigger programs.  Wow.  How long have I been doing this?

Sorry, got pulled away on something else.

 

It appears to me that this program is using a secondary button as a trigger, but commanding the primary button. I understood that one could not issue direct commands to secondary buttons, but thought you could use them as program conditions.

 

Being uncertain, I tried a quick experiment and found that I was remembering wrong.  Secondary buttons apparently do not even report status, nor can they be used to trigger programs.  Wow.  How long have I been doing this?

LOL

 

The secondary button triggers programs just fine. I use mine for combination locks wit several different combinations to do different things like reset water leak responses, turning the well pump or washing machine back on or turning on/off the notification system.

 

But yes the primary LED brightness can be controlled day/night with program control.

Edited by larryllix

If
        Control 'Main House / Bedrooms / Main: Upstair Steve Keypad D' is switched On

     And Control 'Main House / Bedrooms / Main: Upstair Steve Keypad D' is not switched Off

Then
        Set 'Main House / Bedrooms / Main: Upstair Steve Keypad' 4%

Else
        Set 'Main House / Bedrooms / Main: Upstair Steve Keypad' Off
 

LOL

 

The secondary button triggers programs just fine. I use mine for combination locks wit several different combinations to do different things like reset water leak responses, turning the well pump or washing machine back on or turning on/off the notification system.

 

But yes the primary LED brightness can be controlled day/night with program control.

 

I, too, trigger programs based upon status of secondary keypad buttons.  Not being satisfied with my experiment results and looking further, I find that some of my keypad buttons report status, and others (at least the one on which I was doing experiments and likely the oldest keypad I own) does not.  Possibly a comm issue with that particular keypad?  Or do old ones behave different than newer ones?  Oh well.  It is getting late and I am losing interest.

 

Back on topic, I think stusviews answered the un-voiced question.

Edited by oberkc

AFAIK, the only way to manipulate (turn on or off) the state of a secondary button is to create a scene that has only the button as a responder.

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.