[ANSWERED] Duplicate triggers when I press a keypad button

Posted on
Tue Jun 10, 2014 10:04 pm
SSteve offline
User avatar
Posts: 84
Joined: Sep 12, 2012
Location: Sierra Foothills, California

[ANSWERED] Duplicate triggers when I press a keypad button

I have triggers assigned to button 8 Off for my three KeypadLinc Dimmers and one RemoteLinc 2 8-scene. Each has two triggers with different conditions.

The first trigger condition says if all of the three fan speeds is equal to 2. The action is "Fans 3 - High" which sets all the fan speeds to High.

The second trigger condition says if any of the three fan speeds is not equal to 2. The action is "Fans 2 - Medium" which sets all the fan speeds to Medium.

What I want to have happen is that when I press button 8, if all the fans are medium they should be set to high. If any fan is not set to medium they should all be set to medium. Whenever the fans are on, the light on button 8 should be on.

When I press Button 8 on the Office keypad, I get this string of events. (I'm only pressing button 8 once.)

Code: Select all
Jun 10, 2014, 8:50:10 PM
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on medium - Office
  Action Group                    Fans 2 - Medium
  Sent INSTEON                    "Bedroom - Fan" set motor speed to medium
  Trigger                         Fan - Bedroom Medium
  Sent INSTEON                    "Living Room - Fan" set motor speed to medium
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Sent INSTEON                    "Office - Fan" set motor speed to medium
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans on high - Office
  Action Group                    Fans 3 - High
  Error                           "Bedroom - Keypad Light" on (scene 3 cleanup); send failed (no acknowledgment)
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Trigger                         Fan - Bedroom High
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Trigger                         Fan - Living Room High
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Trigger                         Fan - Office High
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Smartphone Radar                "Mimi's iPhone" state is now Away.
  Smartphone Radar                "Steve's iPhone" state is now Away.
  Smartphone Radar                All smartphones are now Away.
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 2 - Living Room KPL button 2)
  Sent INSTEON                    "Living Room - Keypad Light" on (scene 2 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Sent INSTEON                    "Office - Keypad Light" on (scene 1 cleanup)


I originally tried to set this up a year ago. I never got it working before the weather got cold and I switched button 8 to just turn the fans all on low. I think there was another setting somewhere that I'm not finding. I'm hoping I can achieve success this summer. There's something going on here that I just don't get. If anyone can help me figure it out, I'd appreciate it.

Posted on
Wed Jun 11, 2014 8:54 am
jay (support) offline
Site Admin
User avatar
Posts: 18255
Joined: Mar 19, 2008
Location: Austin, Texas

Re: I'm getting duplicate triggers when I press a keypad but

I suspect the problem is one of timing - one trigger fires, and starts setting the fans to on speed, the other trigger fires, and the fan speeds are now in a state of flux because the first trigger's actions are firing (changing fan state).

For complex logic like this, it's best to use a script as the action that will first look at the states of all fans, determine what needs to happen, then execute it. In this case, just execute the appropriate action based on the fan configurations.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 11, 2014 10:21 am
SSteve offline
User avatar
Posts: 84
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: I'm getting duplicate triggers when I press a keypad but

I haven't written a script yet and I haven't worked with Python yet, so please bear with my teething pains. I've opened a scripting shell and created a reference to my FanLinc device. I can look at the speedIndex property, but it is read-only. I looked at http://wiki.indigodomo.com/doku.php?id=indigo_6_documentation:object_model_reference but SpeedControlDevice isn't one of the Device classes listed. When a device isn't listed, how do I figure out what methods it has?

Posted on
Wed Jun 11, 2014 11:40 am
jay (support) offline
Site Admin
User avatar
Posts: 18255
Joined: Mar 19, 2008
Location: Austin, Texas

Re: I'm getting duplicate triggers when I press a keypad but

Oops! You found some docs that we had missed. I've added a new SpeedControlDevice section to the docs.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 11, 2014 1:47 pm
SSteve offline
User avatar
Posts: 84
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: I'm getting duplicate triggers when I press a keypad but

Excellent! Thanks for adding that. It looks like I can use indigo.dimmer.setLedState to turn individual LEDs on and off in the KeyPadLinc, right?

Posted on
Wed Jun 11, 2014 4:27 pm
jay (support) offline
Site Admin
User avatar
Posts: 18255
Joined: Mar 19, 2008
Location: Austin, Texas

Re: [ANSWERED] Duplicate triggers when I press a keypad butt

Yep.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jun 12, 2014 9:11 am
SSteve offline
User avatar
Posts: 84
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: [ANSWERED] Duplicate triggers when I press a keypad butt

I switched to using a script and I'm still getting multiple messages from a single button press. It happens with all three of my KeypadLinc dimmers. I also have a RemoteLinc which never seems to create duplicate messages. I'm even getting duplicate messages from buttons with no trigger assigned to them. What could be causing all these duplicate messages?

Here are some examples of what I get when I press a button once. In this case, there are three Received INSTEON messages.

Code: Select all
Jun 12, 2014, 7:39:56 AM
  Received INSTEON                "Bedroom - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Bedroom
  Action Group                    Fans 3 - High
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Trigger                         Fan - Bedroom High
  Received INSTEON                "Bedroom - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Bedroom
  Action Group                    Fans 2 - Medium
  Received INSTEON                "Bedroom - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Bedroom
  Action Group                    Fans 2 - Medium
  Error                           "Living Room - Fan" set motor speed to high; send failed (no acknowledgment)
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Trigger                         Fan - Office High
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)
  Sent INSTEON                    "Bedroom - Fan" set motor speed to medium
  Trigger                         Fan - Bedroom Medium
  Sent INSTEON                    "Living Room - Fan" set motor speed to medium
  Sent INSTEON                    "Office - Fan" set motor speed to medium
  Trigger                         Fan - Office Medium
  Sent INSTEON                    "Bedroom - Fan" set motor speed to medium
  Sent INSTEON                    "Living Room - Fan" set motor speed to medium
  Sent INSTEON                    "Office - Fan" set motor speed to medium
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Sent INSTEON                    "Office - Keypad Light" on (scene 1 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Sent INSTEON                    "Office - Keypad Light" on (scene 1 cleanup)


This time there are eight Received INSTEON messages:

Code: Select all
Jun 12, 2014, 7:56:24 AM
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Received INSTEON                "Office - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Office
  Action Group                    Fans 3 - High
  Error                           "Bedroom - Fan" set motor speed to high; send failed (no acknowledgment)
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Trigger                         Fan - Living Room High
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Trigger                         Fan - Office High
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Trigger                         Fan - Bedroom High
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Sent INSTEON                    "PowerLinc Interface" on (scene 2 - Living Room KPL button 2)
  Sent INSTEON                    "Living Room - Keypad Light" on (scene 2 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Sent INSTEON                    "Office - Keypad Light" on (scene 1 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)


This time there are two Received INSTEON messages:
Code: Select all
  Received INSTEON                "Living Room - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Living Room
  Action Group                    Fans 3 - High
  Sent INSTEON                    "Bedroom - Fan" set motor speed to high
  Trigger                         Fan - Bedroom High
  Sent INSTEON                    "Living Room - Fan" set motor speed to high
  Trigger                         Fan - Living Room High
  Sent INSTEON                    "Office - Fan" set motor speed to high
  Trigger                         Fan - Office High
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Received INSTEON                "Living Room - Keypad Light" off (button 8)
  Trigger                         Fans toggle medium - Living Room
  Action Group                    Fans 2 - Medium
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 2 - Living Room KPL button 2)
  Sent INSTEON                    "Living Room - Keypad Light" on (scene 2 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Sent INSTEON                    "Office - Keypad Light" on (scene 1 cleanup)
  Sent INSTEON                    "Bedroom - Fan" set motor speed to medium
  Trigger                         Fan - Bedroom Medium
  Sent INSTEON                    "Living Room - Fan" set motor speed to medium
  Trigger                         Fan - Living Room Medium
  Sent INSTEON                    "Office - Fan" set motor speed to medium
  Trigger                         Fan - Office Medium
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Bedroom KPL Button 2)
  Sent INSTEON                    "Bedroom - Keypad Light" on (scene 3 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 2 - Living Room KPL button 2)
  Sent INSTEON                    "Living Room - Keypad Light" on (scene 2 cleanup)
  Sent INSTEON                    "PowerLinc Interface" on (scene 1 - Office KPL button 2)
  Error                           "Office - Keypad Light" on (scene 1 cleanup); send failed (no acknowledgment)


Here's a button with no triggers assigned. I pushed it once, waited a couple minutes and pushed it again then waited a few seconds and pushed it again.

Code: Select all
Jun 12, 2014, 8:04:30 AM
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
Jun 12, 2014, 8:06:37 AM
  Received INSTEON                "Office - Keypad Light" off (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)
  Received INSTEON                "Office - Keypad Light" on (button 5)


In case you need it, here is the script. I commented out the LED commands to simplify things as much as possible.

Code: Select all
fanO = indigo.devices[1827965879] # "Office - Fan"
fanB = indigo.devices[903769254] # "Bedroom - Fan"
fanLR = indigo.devices[1511693123] # "Living Room - Fan"

if 2 == fanO.speedIndex and 2 == fanB.speedIndex and 2 == fanLR.speedIndex:
   indigo.actionGroup.execute(1542566823) # "Fans 3 - High"
   #indigo.dimmer.setLedState(1243761397, index=7, value=True)
   #indigo.dimmer.setLedState(982704696, index=7, value=True)
   #indigo.dimmer.setLedState(1466667044, index=7, value=True)
else:
   indigo.actionGroup.execute(305593509) # "Fans 2 - Medium"
   #indigo.dimmer.setLedState(1243761397, index=7, value=True)
   #indigo.dimmer.setLedState(982704696, index=7, value=True)
   #indigo.dimmer.setLedState(1466667044, index=7, value=True)

Posted on
Thu Jun 12, 2014 12:45 pm
matt (support) offline
Site Admin
User avatar
Posts: 21426
Joined: Jan 27, 2003
Location: Texas

Re: [ANSWERED] Duplicate triggers when I press a keypad butt

Are the duplicates only coming from the KeypadLinc? I think it is either malfunctioning, or more likely there is power line noise causing the KPL to resend the command multiple times. To see if it is the latter, try plugging the PowerLinc into different circuits on different outlets. Since we are troubleshooting, just use an extension cord so you can quickly try a bunch. Also try moving any dual-band modules you have round to change up the signal path. Does any of that help prevent the duplicates?

Image

Posted on
Thu Jun 12, 2014 2:13 pm
SSteve offline
User avatar
Posts: 84
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: [ANSWERED] Duplicate triggers when I press a keypad butt

Hi, Matt. The duplicates are coming from three different KeypadLincs. I hope it's not that all three of them are malfunctioning.

I'll try plugging the PowerLinc into different outlets and see if that changes anything.

When you say move dual-band modules, I hope you just mean stuff plugged into outlets. I don't want to move a bunch of SwitchLincs. Wrangling those in and out of electrical boxes is no fun.

Posted on
Thu Jun 12, 2014 2:38 pm
matt (support) offline
Site Admin
User avatar
Posts: 21426
Joined: Jan 27, 2003
Location: Texas

Re: [ANSWERED] Duplicate triggers when I press a keypad butt

Correct, I just meant temporarily moving any plug in type dual-band modules (or AccessPoint RFs) you might have to different outlets.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest