Unable to get the setParameter function to pass a value

So, at a certain time, I am trying to set a parameter on an Inovelli Switch (VZW31-SN). This used to work before I was forced to reset the Hubitat with a hard reset.

So I use the action setParameter with a parameter type of number and a value of 98,0. This used to work until I had trouble with switches. Now, its executing in the logs with the following result:

[dev:6] 2025-01-28 04:50:09.542 PM info Living Room Pot Lights Config Report: P1=25 (Remote Dim Rate Up: 2.5s)

This is not the right parameter or value.

This was the previous rule that worked:

This is how the rule looks now:


Does anyone have any ideas as to why this isn't working now even though the rule is basically set up the same way?

It looks like you have a single parameter with a value of 98, 0 instead of a two separate number parameters, each with a value of 98 and 0, in that order. (The UI will separate each parameter with a comma for display.)

Looking at the command itself on the device detail page/flyout will show you the command name -- which you already know -- plus the number of, type of, and optional or required status of all parameters. That can be helpful when looking at this kind of thing in the future, but the above is undoubtedly the case for this one now.

1 Like

I am not sure I understand.

I set this one up the same way and it worked. So what changed?

This is parameter:

image

I thought the setParameter function operated the way I am using it, with parameters number, in my case 98, value, in my case 0, and size, which I don't have. Like I said, this literally worked as it was written which is why I am confused.

That is a preference, which works differently. I was talking about a command:

This is on the "Commands" tab and you are looking specifically for "Set Parameter" (or "setParameter"). There, you will see the two numeric parameters that are required for this command.

You didn't set it up the same way, so that is what changed. :slight_smile: This is what is different:

You need to add two parameters to your custom command in RM. You cannot use one parameter and put both "values" there with a comma in between, even though the end result will display similarly after you're done editing. Fix your first (or only now) parameter, use "Done with parameter," then use "Add parameter" (that will appear afterwards) to add the second one.

1 Like

When you mentioned this, I thought you were referring to the parameter I was trying to change. My mistake. I misunderstood.

I totally did not understand this the first time around either BUT this makes so much sense now that you say it. You sir are correct. I did not enter the parameters correctly and lo and behold when I did them separately I believe it worked.

I appreciate your response and I helping this relatively new smart home guy out with his silly mistakes.

3 Likes