View Full Version : Program Linked to RemoteLinc button A triggers twice.
biomech
Jan 27, 2010, 09:31 PM
I wrote a test program that turns an Insteon lamp module on and off three times. When I run the program by right-clicking on it's icon and selecting ON the program runs correctly. I linked RemoteLinc button A to HCA and I set it up as a trigger for this program. When I press button A, the program seems to run twice. The lamp goes on and off 6 times and in the programs log, you can see that it has run twice.
Any ideas? Do you think the switch is bouncing? If so wouldn't the module trigger twice when I manually link the RemoteLinc to a lamp or do Insteon devices ignore double messages?
MrMagic
Feb 07, 2010, 10:57 PM
I suppose that it could be bounce, but I doubt it. I've never used one these controllers but I would look at the possibility that controller sends a sequence when the button is pushed and again (possibly a different command message) when it is released and your program is responding to both the button press and the button release.
If the controller sends something on both button press and button release, you may need to be a bit more specific about the trigger that launches the program. You should be able to see this in the HCA logs I would think. If it sends a message both times, you should be able to see in the log what it's sending. Then set your program to trigger on one or the other, either button press or button release.
As I said, I don't have one of these controllers so it's just a guess, but it's worth investigating.
Steve
mjl
Mar 14, 2010, 10:32 PM
A work-around for this would be to set the program to ignore triggers while it is running (VP properties - advanced tab, "If the trigger is received while the program is running:" set to "Ignore it". I do this to avoid bounces on most programs (frequently the bounce is human error) .
I suspect that, since this is a wireless device, you are probably seeing two copies of the command come in from two different access points, so you will probably see two commands in the HCA log. Normally this would go unnoticed since sending two on or off commands to a device will still turn it on or off.
I would also agree with Steve and recommend to enable all logging - the logging should give some insight into the sequence of events. I have had issues where I set a trigger for a button "ON" or "OFF" and could not figure out why it didn't work sometimes, only to find that I was getting a DIM or BRIGHT (FADE/FSTOP) for which I had no trigger set. My wife and I both frequently hold a button down too long and it sends the FADE instead of ON/OFF, so I need to add the FADE/FSTOP trigger to some VP's.
biomech
Mar 15, 2010, 01:13 PM
Thanks, guys!
I am having a lot of fun using HCA to control my new Insteon devices. I am currently playing with an IRLinc Receiver which seems to work well with HCA. My next step is to buy something other than switches, remotes, and lamp modules. I'd like to experiment with motion detectors. Without sensors, I feel that I can only scratch the surface of HCA's visual programming capabilities.
Rick
vBulletin® v3.8.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.