Button Controllers Bug?

I am using a C7 running firmware 2.2.6.130. I wanted to create a Button Controller rule to setConfigParameter for param 4 to 0 seconds, 1 byte. The Button Controller wouldn't let me put in zero as a "number" for my second parameter. I had to put it in as a string, and then it wouldn't let me add the third parameter.

I went over to Rule Machine and was able to enter 3 number params as 4, 0, 1 with no problem, so it seems like a definite bug in Hubitat's Basic Button app.

Stuart

1 Like

Just tried to re-create this, and there does seem to be a problem with both the display and, as far as I can see, the command actually executing. (It does seem to get saved to the app's settings just fine.) My guess is that there is a minor coding error here, likely depending on overly-aggressive Groovy truth instead of != null or a similar check.

Tagging @bravenel. (To summarize, Button Controller doesn't seem to like 0 as a value for number parameters in Custom Actions.)

1 Like

Yep, bug found. Fix in next hot fix release.

3 Likes

Great, both as to how fast you responded, tracked it down and have it fixed as well as finding out it wasn't me making some dumb mistake. :slight_smile:

Stuart

So what took you so long? :laughing: :laughing: From first post, finding the bug and having an update ready in an hour (based on time stamps) Seeing all this hard work is making me tired, going to have a nap now.