Author |
|
ginigma Senior Member
Joined: June 18 2006 Location: United States
Online Status: Offline Posts: 127
|
Posted: March 16 2007 at 21:05 | IP Logged
|
|
|
I'm having a problem with an Insteon trigger. I want to be able to turn off another light from a fast off (double tap) on a switchlinc. Here's what I have my trigger set for:
Action Type: Raw Formula
Action: ph_insteon ("MASTERBR03",19,0)
Action Style: Queued
Status: Active
Trigger Type: Insteon Group In
Trigger ID: MASTERBR02
Trigger ID Number: 1
Trigger Value: Fast Off
Boolean: 1
I have tried with other trigger types like Direct In/Out and Device Change, but no joy. Nothing in my event log either. Help! What should my Trigger Type be?
Thanks,
Charles
__________________ Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 16 2007 at 21:47 | IP Logged
|
|
|
Try a Trigger ID of (Any).
|
Back to Top |
|
|
ginigma Senior Member
Joined: June 18 2006 Location: United States
Online Status: Offline Posts: 127
|
Posted: March 17 2007 at 10:17 | IP Logged
|
|
|
I've tried that. I have about 8 triggers setup for testing which will just display a message box for testing to see if I can capture the 'fast off' from the switch.
Insteon Group In (Any)
Insteon Group Out (Any)
Insteon Direct In (To Any, From Any)
Insteon Direct Out (To Any, From Any)
Insteon Device Change (Any, 1)
What is the Boolean field for? Page 26 of the manual indicates "The result of this formula
determines whether or not the trigger is executed. This formula is evaluated at the time a trigger is checked and bypasses the execution queue. It is important that you DO NOT use any formula functions that would normally be sent to the Execution queue." All my Boolean values are set to '1'. Is that correct? I will change that and see what happens.
Edited by ginigma - March 17 2007 at 10:18
__________________ Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 17 2007 at 11:41 | IP Logged
|
|
|
Wait. Nothing in the log? No sign of the switch? That's your problem. If it's not in the log, it's not happening, or at least not getting to the PLC.
Think of the boolean field as an enable. If it evaluates to zero, it does not fire.
Edited by TonyNo - March 17 2007 at 14:38
|
Back to Top |
|
|
ginigma Senior Member
Joined: June 18 2006 Location: United States
Online Status: Offline Posts: 127
|
Posted: March 17 2007 at 18:00 | IP Logged
|
|
|
Ok. Nothing in the PH logs and I don't see anything in the SDM window either. Only eventraw=02 and 03 when the switch is pressed, either single tap or double tap. And yes, I'm logging everything.
Uh oh, the developers guide indicates these (faston, fastoff) have not been implemented. I checked the release notes for the SDM but couldn't find anything about them. Dave, do you know if they've been implemented yet? What should I see in the SDM log?
Thanks
__________________ Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 17 2007 at 18:47 | IP Logged
|
|
|
Yup, those work. From my log...
Incoming Insteon received on Insteon DM controller INSTEON-1. From Address:[xx.xx.7E] To Address:[00.00.01] Flags:[207] Cmd1:[18] Cmd2:[0]. Decode: Group Broadcast. From: DINING RM LIGHT Group: 1, Fast On
|
Back to Top |
|
|
ginigma Senior Member
Joined: June 18 2006 Location: United States
Online Status: Offline Posts: 127
|
Posted: March 17 2007 at 21:09 | IP Logged
|
|
|
Thanks Tony. Now I need to figure out why the switch isn't sending a group broadcast like yours.
Edit: Ok, The switch is only linked to a KPL. Maybe it needs to be linked to the PowerLinc? I'll create that link and try again.
Edited by ginigma - March 17 2007 at 21:51
__________________ Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 17 2007 at 22:02 | IP Logged
|
|
|
Yes, it needs to be linked to the PLC.
|
Back to Top |
|
|
ginigma Senior Member
Joined: June 18 2006 Location: United States
Online Status: Offline Posts: 127
|
Posted: March 18 2007 at 18:52 | IP Logged
|
|
|
Once linked to the PLC, it works fine. Only thing is that it triggers on the Insteon Device Change not the Group In or Out.
__________________ Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: March 19 2007 at 15:19 | IP Logged
|
|
|
Linking to the PLC definately helps. It should have worked just linked to the KPL (it's got to be linked to at least something) but most likely the earlier problems was a result of the ID not being in the PLC database. You could have fixed this with the "Setup" tab and "Clear PLC ID's" and "Add ID's to PLC". Or, you could have deleted the device from Insteon Devices and re-added it (current versions of PowerHome will now automatically do this for you...previous versions required the manual clear/add step above). Or, the method you chose of creating a link. Just to make sure everything is up to date and synchronized, I would go ahead and do the Clear/Add step on the Setup tab. This may take care of your trigger problem with the Group In/Out as well.
Let me know if this fixes it or not. If not, I'll look into it some more since it should work.
Dave.
|
Back to Top |
|
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: October 13 2010 at 13:52 | IP Logged
|
|
|
Hi Again Gang,
PROBLEM SPACE: There's a lightswitch that is within reach for my 1.5-year-old son from the couch, which turns on the SINGLE MOST ANNOYING light in the house - the Eyeball above the fireplace, whith is immediately left of the TV (so you can imagine). I replaced that switch with a SwitchLinc Dimmer (I think it's a V2 but can't remember for certain). Setup its local ramp-rate, on-level, which helps *some*).
WHAT I PERCEIVE AS THE GOAL: What I want to do is make it so when that paddle is touched, the light turns off (using local ramp rate, so "off", as opposed to "fast off", is that correct?); however, I still want to be able to control the light via PowerHome (ALL_LIGHTS_ON, ALL_LIGHTS_OFF, SCENE_MOVIE) and via a KPL not too far away.
WHAT I HAVE TRIED: I tried setting up a trigger for the SwitchLinc using the the following, with the following results:
1) Insteon Any Change, Any, 1 - this had a delayed response (like minutes) before it did anything. I finally cleared the PLC and reloaded FULL, and it seems to work reliably, but with weird results. Until the SwitchLinc is pressed, nothing (as expected). Then, after the SwitchLinc is pressed, infinite loop in PH. Never stops triggering - just goes over and over.
2) Pretty much any other setting yields nothing as far as trigger-reaction.
QUESTIONS:
1) I tried putting logic around [TEMPx] variables in the "BOOLEAN" section of the trigger - if I put anything other than a 1 or 0 in there and "verify", it throws a syntax error...Am I using it wrong?
2) If anyone has any other ideas on how I mimght gracefully implement a solution to this (not necessarily my own), please chime in.
Regards,
-S
__________________ "I will consider myself having succeeded when my house becomes sentient and attempts to kill me."
><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.
·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 13 2010 at 14:07 | IP Logged
|
|
|
You might try disabling the trigger using “trigdisable” macro.
Code:
10 Formula Immediate ph_disabletrigger(ph_getvar_s(2,1))
20 Wait ph_getvar_n(1,1)
30 Formula Immediate ph_enabletrigger(ph_getvar_s(2,1))
Stick this in the Boolean. ph_macroparm("trigdisable",5,0,0,0,0) + 1
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: October 13 2010 at 16:01 | IP Logged
|
|
|
If the SwitchLinc dimmer is physically controlling the load (connected to the Red wire) you cannot prevent the SwitchLinc from reacting to a paddle press. The best you can hope for is to recognize the paddle press and issue a command from PH2 to turn the SwitchLinc Off. Likely you will see some blink/flash of light when that sequence occurs. Depends on what the local ramp rate is and whether the paddle is double pressed to create a Fast On response which overrides the local ramp rate.
You can install an InlineLinc to control the load which can be controlled from the KPL and PH but it has no paddle. Covering the SwitchLinc location with a blank plate.
__________________ Lee G
|
Back to Top |
|
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: October 13 2010 at 16:34 | IP Logged
|
|
|
Hi Lee,
Your first scenario is the one I'm shooting for (I don't want to remove it altogether - My son will be older than 1.5 someday )
I want to make it so when he plays with it, it automatically shuts off. I don't mind if it starts to ramp then shuts off.
The appropriate trigger to do this eludes me though...
-S
__________________ "I will consider myself having succeeded when my house becomes sentient and attempts to kill me."
><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.
·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 13 2010 at 17:17 | IP Logged
|
|
|
What you are trying to do I already do but don’t have the loop except with Motion Sensors. The retriggering is probably the chatter of protocols coming off the Switchlinc and KPL. Appling the code I posted should ignore the chatter depending on how long the 1st byte (5) is. Hope this helps…
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: October 13 2010 at 18:14 | IP Logged
|
|
|
The Trigger should fire from an Insteon Group In, Trigger Number 1, Command Any. When the paddle is pressed it sends a Group In to all the responders. The Trigger should only fire from a paddle press. Invoke a Macro and issue ph_insteon("switchlinc id", 19, 0) which is a simple Insteon Direct Off command. This will not fire the trigger. Pete uses a disable when working with motion sensors as they generate multiple commands from a single motion. A SwitchLinc does not do that. There is a way of coding a ph_xxxx command from within the Trigger itself (not the Boolean field) which I will look up and post another entry. For now have the Trigger invoke a Macro which issues that single ph_insteon Off command.
__________________ Lee G
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 13 2010 at 21:46 | IP Logged
|
|
|
Lee, won’t that also generate an ACK and possible a group Clean Up and since he is using ANY it will trigger again? And on top of that we don’t know what the trigger is doing. I also use the ANY with Insteon for one of my macros and I have to gate it from multiple triggering.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: October 13 2010 at 23:02 | IP Logged
|
|
|
Hi Pete,
I don't think so. The paddle press generates a Group Broadcast and Group Cleanup Direct. The ACK the PLM generates back to the SwitchLinc in response to the Group Cleanup Direct is an outbound message which I don't think triggers an Insteon Group In Trigger Type. The Trigger Value of ANY saves having to define a separate Trigger for each Group In command (On, Fast On, etc) the SwitchLinc can generate from a paddle press.
I'm not having a very good track record lately so I could be wrong.
Lee
__________________ Lee G
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 13 2010 at 23:28 | IP Logged
|
|
|
Oh come on ole bearded one you ARE my mentor….
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: October 14 2010 at 16:19 | IP Logged
|
|
|
Hi Gang, after troubleshooting this for a while and re-reading your GREAT information above, I had missed the fact that my PL was not setup as a "responder" to the paddle. Set it up as such, set it up as "Insteon Group, 1, Any", and the trigger is working now. Now to play with this a little further.
I've got a scene that's instantiated through a KPL button (scene toggle). It goes out, saves all of the "current" light values, and sets up lighting for a "movie" (30 second-dim, etc...it's cool).
However, it's easy to leave the world in Movie Scene and simply manually ajust the lights, etc. afterward. I want any of the lights that are in the "movie" group to turn off the KPL. This is super-simple with your advice above, and yet another new tidbit of understanding on my part.
Thanks again guys!
-S
__________________ "I will consider myself having succeeded when my house becomes sentient and attempts to kill me."
><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.
·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
|
Back to Top |
|
|