Driver programming and using it in Rule Machine...
I can create a custom command that returns a value; At least it compiles this:
def doThis(param) {
log.info param + param
return param + param
}
And when I create such a device I can click on the command "doThis" to execute it (as the log proves).
But how can I call such functions from Rule Machine and use the returned value?
"Run Custom Action
" allows only to execute a driver command, without any chance to get the value; And "Set Variable
" does not offer the use of Custom Actions...
@bravenel, do you have any idea to accomplish such mission?