Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing device name as variable
#11
Oh, that's probably the backwards logic of the macro system relative to the action system. Typically macros return 0 for no error and some non-zero value for an error. But the action system takes 0 for false and non-zero for true. I just failed to take that into account when I wrote the macro. I should have returned 1 for success and 0 for failure. Sorry about that.

Just double click your If statement to turn into an If Not and then you probably will be ok.
Dean Roddey
Explorans limites defectum
Reply
#12
Well, that's not it. I checked and I'm doing the right thing. You may have an older version of the macro or something where I initially got that wrong. Anyway, flip the logic and see if that makes it happier.

Is the version you have in /User/Num2Num or /User/CQC/Num2Num?
Dean Roddey
Explorans limites defectum
Reply
#13
It is in User/Num2Num.  

I pulled it from the link in post #9.  http://www.charmedquark.com/vb_forum/showthread.php?tid=9724&highlight=num2num

Even if I make it an If NOT statement, the returned values are still zero.  Perhaps, the macro I have is not the right one.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Lock device class bryanb 6 1,207 06-24-2020, 07:36 AM
Last Post: Dean Roddey
  Dynamically Build Call to Variable? gReatAutomation 8 1,498 05-08-2020, 01:22 PM
Last Post: gReatAutomation
  Is it possible to rename a moniker for a device? ghurty 2 630 04-23-2020, 02:41 PM
Last Post: znelbok
  Action wait and exit if variable changes simplextech 8 2,176 02-01-2020, 12:35 PM
Last Post: simplextech
  Z-Wave Device List simplextech 2 1,058 02-01-2020, 07:24 AM
Last Post: simplextech
  Device Grouping simplextech 9 2,475 01-11-2020, 11:17 AM
Last Post: simplextech
  Z-Wave Device Support simplextech 6 2,131 01-06-2020, 02:24 PM
Last Post: simplextech
  Simple device control from Admin Interface simplextech 7 2,292 01-04-2020, 12:18 PM
Last Post: simplextech
  Time formatting RunTime Time Variable? gReatAutomation 5 1,602 08-14-2019, 05:23 AM
Last Post: gReatAutomation
  GVar... Variable GVar... Already Exists gReatAutomation 3 1,043 08-13-2019, 01:15 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)