Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USB-UIRT Tips and Tricks
#11
If it's triggering two actions, then you probaby captured two signals, so try just re-training it.
Dean Roddey
Explorans limites defectum
Reply
#12
What happens if a global variable does not exist and you try to use it. I want to create a local variable inside an if statement but I want to use it to test if I should enter the if statement.

IF(CurMillis > GVar:TimeMuteWasLastPressed)
TimeMuteWasLastPressed := CurMillis + 100;
Execute IR Command
EndIF

A solution would be an IF Not Exist statement

IfNotExist (TimeMuteWasLastPressed)
TimeMuteWasLastPressed :=0;
EndIf

Then We would try the first if statement since the variable would be set to 0 which would always be less then curmillis.
David
Z-Wave World Magazine|Baltimore Hackerspace
"Why think outside the box when you could let the box think for you." - My take on Home Automation
Reply
#13
That's already there. There's an Exists command on the variable targets.
Dean Roddey
Explorans limites defectum
Reply
#14
we have a deployment with quite a few Universal Remotes (that's an understatement) with CQC and a UIRT. we had the same issue when controlling A/V, temperatures, shades, light levels etc...the solution wasn't to change anything on CQC's side...it was to simply add a 1 second delay to the macro on the Universal Remote button. - you'd hit a button to turn of the lights, and they'd just come right back on, and visa versa.

So basically, you program your buttons, then just add a simple delay to the button macro. - if the button doesn't have a macro, just an IR command, just and a delay to the button, so it sends the code, then there's just a 1-line macro of a delay.

i noticed that the incoming stream of bits from the UIRT were being buffered on the USB port and CQC was handling them as fast as they came in. adding the delay on the Universal Remote squashed the problem immediatly.
~~~ B01nk
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tips 'o the Day Compilation Dean Roddey 3 13,910 09-11-2019, 01:39 PM
Last Post: Dean Roddey
  usb-uirt error indygreg 1 1,730 05-12-2018, 06:57 PM
Last Post: Dean Roddey
  Repacement for USB-UIRT pjgregory 13 9,226 01-20-2017, 03:57 PM
Last Post: George M
  Test Receiver action in USB-UIRT? Bugman 1 2,356 11-14-2016, 04:31 AM
Last Post: Dean Roddey
  CQC/USB-UIRT to control Comcast STB pbohannon 4 3,681 09-08-2014, 07:56 AM
Last Post: zaccari
  Usb Uirt zaccari 7 4,268 06-21-2013, 05:23 PM
Last Post: Dean Roddey
  USB-UIRT and XBox 360 Debounce (Repeat) IR bph 2 2,772 03-18-2013, 07:21 AM
Last Post: wuench
  Export USB-UIRT Receiver IR & Actions rbarnes09 3 2,415 12-09-2012, 09:04 PM
Last Post: Dean Roddey
  Usb-uirt stinggray 5 3,340 10-10-2011, 05:34 PM
Last Post: Dean Roddey
  Promixis 4-port IR blaster vs. USB UIRT, Girder, etc SpeedDemon 21 13,965 09-18-2011, 10:09 PM
Last Post: RichardU

Forum Jump:


Users browsing this thread: 1 Guest(s)