Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph_insteongroup command Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
kemporama
Senior Member
Senior Member


Joined: November 21 2008
Online Status: Offline
Posts: 102
Posted: March 05 2010 at 00:30 | IP Logged Quote kemporama

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 View kemporama's Profile Search for other posts by kemporama
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: March 05 2010 at 06:28 | IP Logged Quote grif091

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 View grif091's Profile Search for other posts by grif091
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: March 05 2010 at 12:47 | IP Logged Quote grif091

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 View grif091's Profile Search for other posts by grif091
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum