Supported Driver Documentation Location

I swore I'd seen this a while back somewhere...Where do I find documents that explain the parameters when setting some of the custom fields in rules?

I figured this out but it took a bit to realize they were strings not numeric as in the actual device manual.

For example...on a Homeseer Dimmer

setStatusLED('1', 'red', '0') on Entry

THANKS!

I’m not a developer, so not 100% sure, but probably here?

Edit: sorry, re-reading your post, that’s probably not what you’re looking for.

You want to know how to format a custom action in rule machine?

Yes. Sorry for not being clear. I only use RM but assumed the text fields and options come from the driver?

What you're looking for indeed comes from the driver, in this case a custom command defined by the driver (others might be a "standard" command defined by a capability, which would have a predictable format--custom commands can vary).

While you could look at the driver code if it's open-source, you don't need to. Just look at the device detail page, specifically the "Commands" at the top. All the parameters will be listed, along with the expected data type and whether they are optional or required (asterisk). Hover your mouse over the command button, and you'll see:

Screenshot of parameter tooltip

If the device is what it appears to be (taking a wild guess based on the name of a single command), what you're seeing int he manual was probably written with HomeSeer's own hub in mind, if any. Most device manuals won't tell you much about Hubitat commands (most manuals are fairly platform agnostic, though theirs tend to be different given that they actually have a hub).

1 Like

Thanks...I take a look at that when I get back home. I do see that for many of those pulldowns. This will get me really close!

Always amazed at the speed of responses here!

This almost always works! It just so happened that the one I was working with didn't distinguish between text and numeric in the the first field...and has a label (no highlight) of *ledNumber...but is a text field in the command. EVERYTHING else works perfectly...THANKS!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.