Announcement

Collapse
No announcement yet.

need help with conditional upb link event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need help with conditional upb link event

    I am setting up a button to toggle a play/pause device link, which I would like to use as a conditional trigger to play/pause the media player. Here is a screen shot of the events:

    <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0><TBODY><TR><FORM name=chkOPForm9123 method=post><TD class=tablerowodd noWrap align=middle><INPUT class=formcheckbox onclick=buildList(this); type=checkbox value=9123 name=chkOP9123> <INPUT class=graphicbutton type=image alt="Run Pause, Last ran: Today 6:34 PM" src="http://192.168.2.205:9696/images/HomeSeer/button_run.gif" value=Run name=""> <INPUT type=hidden value=9123 name=bookmark><INPUT type=hidden value=evls name=ref_page><INPUT type=hidden value=Pause name=run_event></TD></FORM><TD class=tablerowodd>Pause </TD><TD class=tablerowodd><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecelltrigger>Device UPB Device Link Play/Pause value changes to any </TD></TR></TD></TR><TR><TD class=tablecellcondition>Status for Media Player is Playing <TR><TD class=tablecelldays>Everyday
    </TD></TR></TBODY></TABLE></TD><TD class=tablerowodd noWrap align=left><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD noWrap align=left width=160> </TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecellmedia_player noWrap align=right width=160> Media Player: </TD><TD class=tablecellmedia_player align=left colSpan=8>Player Action: Pause if Playing</TD></TR></TBODY></TABLE></TD></TR><TR><FORM name=chkOPForm5489 method=post><TD class=tableroweven noWrap align=middle><INPUT class=formcheckbox onclick=buildList(this); type=checkbox value=5489 name=chkOP5489> <INPUT class=graphicbutton type=image alt="Run Play, Last ran: Today 6:33 PM" src="http://192.168.2.205:9696/images/HomeSeer/button_run.gif" value=Run name=""> <INPUT type=hidden value=5489 name=bookmark><INPUT type=hidden value=evls name=ref_page><INPUT type=hidden value=Play name=run_event></TD></FORM><TD class=tableroweven>Play </TD><TD class=tableroweven><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecelltrigger>Device UPB Device Link Play/Pause value changes to any </TD></TR></TD></TR><TR><TD class=tablecellcondition>Status for Media Player is Paused <TR><TD class=tablecelldays>Everyday
    </TD></TR></TBODY></TABLE></TD><TD class=tableroweven noWrap align=left><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD noWrap align=left width=160> </TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecellmedia_player noWrap align=right width=160> Media Player: </TD><TD class=tablecellmedia_player align=left colSpan=8>Player Action: Resume if Paused</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


    Problem is, if it is playing, i press the button, it triggers the pause, but only for half a second, and then the play event is triggered, and it plays. I'm pretty sure I have narrowed it down to the "dual fire" problem, because if I run the event manuually, without the button press, it stays paused.

    how can i manipulate the event to toggle between play/pause effectively? I'm going to mess around with a "can't retrigger" or "wait until" setting, but if anyone has any other ideas, i'm listening!
    Plugins:
    BLLogMonitor, BLGarbage, BLBackup, BLOutGoingCalls, BLUps, BLRfid, JvEss, DooMotion, Applied Digital Ocelot, AC RF Processor, UltraMon, PJC AVR 430, UPB, Rain8net, DSC Panel, JRiver Media center, Windows Media Player, SageMediaCenter, SnevlCID, MCSTemperature.

    #2
    adding a 5 second "cannot retrigger" to each event fixed it
    Plugins:
    BLLogMonitor, BLGarbage, BLBackup, BLOutGoingCalls, BLUps, BLRfid, JvEss, DooMotion, Applied Digital Ocelot, AC RF Processor, UltraMon, PJC AVR 430, UPB, Rain8net, DSC Panel, JRiver Media center, Windows Media Player, SageMediaCenter, SnevlCID, MCSTemperature.

    Comment

    Working...
    X