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
Explorans limites defectum
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
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
  Variable Action "Find" command or alternate Shaky 3 527 11-02-2021, 08:19 PM
Last Post: Shaky
  Lock device class bryanb 6 1,832 06-24-2020, 07:36 AM
Last Post: Dean Roddey
  Dynamically Build Call to Variable? gReatAutomation 8 2,148 05-08-2020, 01:22 PM
Last Post: gReatAutomation
  Is it possible to rename a moniker for a device? ghurty 2 945 04-23-2020, 02:41 PM
Last Post: znelbok
  Action wait and exit if variable changes simplextech 8 2,909 02-01-2020, 12:35 PM
Last Post: simplextech
  Z-Wave Device List simplextech 2 1,401 02-01-2020, 07:24 AM
Last Post: simplextech
  Device Grouping simplextech 9 3,282 01-11-2020, 11:17 AM
Last Post: simplextech
  Z-Wave Device Support simplextech 6 2,953 01-06-2020, 02:24 PM
Last Post: simplextech
  Simple device control from Admin Interface simplextech 7 3,158 01-04-2020, 12:18 PM
Last Post: simplextech
  Time formatting RunTime Time Variable? gReatAutomation 5 2,143 08-14-2019, 05:23 AM
Last Post: gReatAutomation

Forum Jump:

Users browsing this thread: 1 Guest(s)