Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing device name as variable
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
Software Geek Extraordinaire
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
Software Geek Extraordinaire
It is in User/Num2Num.  

I pulled it from the link in post #9.

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.

Possibly Related Threads...
Thread Author Replies Views Last Post
  IFTT and HTTP Trigger parameter passing setup Shaky 5 70 03-09-2018, 10:20 PM
Last Post: Dean Roddey
  Variable Limits Syntax Shaky 6 157 03-03-2018, 09:47 PM
Last Post: Dean Roddey
  Variable Driver Trigger Error zra 4 1,203 07-06-2017, 01:00 PM
Last Post: zra
  Device Driver documentation Bugman 3 967 06-01-2017, 05:16 PM
Last Post: Dean Roddey
  Echo is passing numbers as text so it cant be written to a field - any fix? ghurty 9 1,450 07-03-2016, 08:05 AM
Last Post: ghurty
  Inserting global variable into command string MikeA 2 744 06-26-2016, 10:09 AM
Last Post: MikeA
  Z-Wave Device config GoControl Door/Window Sensor batwater 50 4,970 03-09-2016, 01:21 PM
Last Post: Dean Roddey
  Set Variable field with Slider (Variables driver) pinballmark 2 876 08-28-2015, 01:55 PM
Last Post: pinballmark
  Problem with OmniPro II device dlmorgan999 3 808 07-26-2015, 08:07 PM
Last Post: dlmorgan999
  Variable Find action? dlmorgan999 3 859 05-21-2015, 05:00 PM
Last Post: dlmorgan999

Forum Jump:

Users browsing this thread: 1 Guest(s)