Author |
|
kemporama Senior Member
Joined: November 21 2008
Online Status: Offline Posts: 102
|
Posted: March 05 2010 at 00:30 | IP Logged
|
|
|
I'm looking into ways of streamlining how I've been setting up all my programming in PH. Right now for my KPLs if I have a button linked to say a group of lights I've been setting up a trigger on the button that points to a macro that just has a line in it to turn on the group. Then to turn off the button I have to recreate another trigger with another macro with the off command.
I've started playing with the ph_insteongroup command yesterday. I've learned that if I create a command like:
ph_insteongroup ( "GROUP_UPSTAIRS", 17, 0 )
and put it on the trigger as a forumla that the 17 will turn on the lights. I have that working no problem. I am however having problems getting an off formula to work. When I create a trigger like:
ph_insteongroup ( "GROUP_UPSTAIRS", 19, 0 )
which from what I read the 19 is supposed to send an off command, nothing happens when I press the button other than the button light goes out. The PH log shows I did an off at the button but it doesn't recognize that it's a triggger. The trigger values, etc are correct, everything is the same as the ON trigger other than the 19 and the trigger value is OFF.
Am I formatting the "19" command incorrectly?
Thanks.
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: March 05 2010 at 06:28 | IP Logged
|
|
|
To verify the situation, when the Trigger fired from an Insteon Group In Off has an Action Type of Macro the macro is invoked when the KPL button is pressed OFF. However, if the Action Type is Raw Formula, the Action of ph_insteongroup(“xxxx”, 19, 0) does not turn the Group Off. A Trigger that fires from an Insteon Group In On with the Action Type Raw Formula and an Action of ph_insteongroup(“xxxx”, 17, 0) does turn the Group On.
The Event Log shows the Insteon In for the KPL button Off. Do you see a Trigger Check for the Off trigger immediately following the Insteon In log entry.
The 19 is the correct command code for an Off.
__________________ Lee G
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: March 05 2010 at 12:47 | IP Logged
|
|
|
I defined a Trigger for a KPL button OFF with an Action Type Raw Formula and Action ph_insteongroup("G2X4OUTPUT1PLM", 19, 0). The Trigger fired, a Trigger Check and PLC/PLM Group Off command was traced in the Event Log. I wanted to be sure there was not some hidden gotcha in the process. Likely something in the Trigger definition is not as you expected.
__________________ Lee G
|
Back to Top |
|
|
|
|