Jump to content

Program question - Press on turns off, press off turns off?


RichTJ99

Recommended Posts

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

Link to comment

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

Link to comment

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

Link to comment

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?

Link to comment

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.

Link to comment

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
 

Link to comment

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.

Link to comment

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.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...