Lenny Senior Member
Joined: January 06 2008
Online Status: Offline Posts: 102
|
Posted: October 27 2008 at 20:24 | IP Logged
|
|
|
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
|