Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Trigger, PLC Group Loop Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Lenny
Senior Member
Senior Member


Joined: January 06 2008
Online Status: Offline
Posts: 102
Posted: October 27 2008 at 20:24 | IP Logged Quote Lenny

I have button 5 on all of my Kepadlinks Play/Stop Winamp and with FastON or FastOff launch/close Winamp.
I have been dealing with PH and the KPLS being out of sync and I want to clean it up...I want all buttons, plc group and cc status to be in sync.

What I have done:
Cross linked all KPL’s so button presses are in sync.
Created PLC Group WINAMP_PLAY-STOP(20) and linked all the buttons to the PLC Group

Created 4 Triggers, Formula, Insteon Device Change (any one of the keypads)

WINAMP_STOP - ph_winampctrl( "stop", 0, "")
WINAMP_PLAY - ph_winampctrl( "launch", 0, "") + ph_winampctrl( "play", 0, "")
WINAMP_CLOSE - ph_winampctrl( "close", 0, "")
WINAMP_LAUNCH - ph_winampctrl( "launch", 0, "")

What happens:
PLC Group ON/OFF cause WINAMP_STOP or WINAMP_PLAY to fire and updates keypad leds.

Any key press does what is expected. Launches winamp, plays, stops, closes ect. however group the plc group status isn’t updated. I figured if I add + ph_insteongroup("WINAMP_PLAY-STOP",17,0) or + ph_insteongroup("WINAMP_PLAY-STOP",19,0) to the “WINAMP_STOP” and “WINAMP_STOP” triggers the group would update status appropriately but I put myself into an infinite loop.

Perhaps I am going about this the wrong way… any input is appreciated.

Lenny
Back to Top View Lenny's Profile Search for other posts by Lenny
 

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