scimanic1 Posted April 16, 2015 Posted April 16, 2015 I've searched the forums and internet, but cannot find the answer to my delima. I am trying to create a program that will allow me to use the on and fast on and commands to trigger a program that will toggle two different relays on the EZIO40. I have wired the EZIO to power and mode (dimming levels) control for led lighting and only have one keypadlinc button for both power and mode. The idea was to double-press the keypad button (fast on) to trigger a script (and scene that lights the button) to turn the power on (toggles relay#1). Subsequent presses of the same button (on) would change the mode (toggles relay#2) but leaves the keypadlinc led lit. When I double-press the keypad button again, the power is turned off (toggles relay #1) again. I tried the following script, but I can't get it to trigger properly and not sure how to light the Deck Rail LED. The Then statement works properly and toggles the relay. Any help is greatly appreciated! Program: If Control 'Rear Light-KL / Deck Rail' is switched Fast On Then Set 'Deck Step Lights Mode / Deck Rail Lights Power' On Wait 1 second Set 'Deck Step Lights Mode / Deck Rail Lights Power' Off Set Scene 'Deck Rail Lights On' On Else - No Actions - (To add one, press 'Action') Scene: Deck Rail Lights On Deck Rail (Keypadlinc button) On Level 100% -Scimanic
scimanic1 Posted April 17, 2015 Author Posted April 17, 2015 Was it something I said? Or didn't say? Can anyone help?
LeeG Posted April 17, 2015 Posted April 17, 2015 The Keypad button cannot send a Fast On followed by an On followed by an Off or Fast Off. It will alternate between a Fast On or On followed by a Fast Off or Off. This is toggle mode operation. It gets more complex if the button LED On/Off state is managed. Non-toggle On sends only On/Fast On. Non-toggle Off sends Off/Fast Off Secondary KPL button LEDs can only be turned On/Off with a Scene. Normally done with an ISY Scene that has the KPL button as a Responder. Need to define how you want to produce the command sequences within the capability of the KPL.
scimanic1 Posted April 24, 2015 Author Posted April 24, 2015 Thanks for responding Lee. Been busy with my other projects and haven't had the time to follow up on this. What I am trying to do is trigger the then statement above to toggle the EZIO relay on, wait 1 sec, and then off. The relay toggles correctly when I run the then statement, but can't figure out how to use a secondary keypadlinc button in the if statement to trigger the then statement. Ultimately, I want to use a single secondary keypadlinc to trigger three different programs: The first program, will trigger relay #1 on/off using a Fast On command (turn lights on). The second program will trigger relay #2 on/off using a On command (change lights mode). The third program will trigger relay #1 on/off using a Fast Off command (turn lights off). I hope this is possible. TURN LIGHTS ON: If Control 'Secondary Keypadlinc button' is switched Fast On Then Set 'EZIO Relay#1' On Wait 1 second Set 'EZIO Relay#1' Off Set Scene 'Deck Rail Lights On' On Else - No Actions - (To add one, press 'Action') CHANGE LIGHTS MODE: If Control 'Secondary Keypadlinc button' is switched On Then Set 'EZIO Relay#2' On Wait 1 second Set 'EZIO Relay#2' Off Set Scene 'Deck Rail Lights On' On Else - No Actions - (To add one, press 'Action') TURN LIGHTS OFF: If Control 'Secondary Keypadlinc button' is switched Fast Off Then Set 'EZIO Relay#1' On Wait 1 second Set 'EZIO Relay#1' Off Set Scene 'Deck Rail Lights Off' On Else - No Actions - (To add one, press 'Action') BR, scimanic
LeeG Posted April 24, 2015 Posted April 24, 2015 The Programs should trigger with their respective Control/Insteon command combination. Run Tools | Diagnostics | Event Viewer at LEVEL 3 to see what Insteon command is being generated. The problem is how to generate the command and in what order. Not possible to generate a Fast On followed by an On followed by an Off or Fast Off from the same KPL button.
Recommended Posts