Sending a variable value to a device

If I create a rule that upon trigger, it executes this:


It works just fine with the log looking like this:


I’m wanting, however, to make a variable of numeric value that when the rule is triggered, it sends the number associated with the variable. Here is the rule and corresponding log.


As you can see, when using the variable, it doesn’t work and seems it is because sharptools is trying to send to my device the number with “quotes” around it.

How do I send the value of a numeric variable to my device and not have quotes around it?

How was the TemperatureMiniSplit variable set? It looks like it was stored as a string rather than a number.

If the variable is being set using an Expression… if the variable was original created as text type and the expression was created at that point (and the variable was later recreated as a Number type), then the expression might still have the value type set as text. You can reset the value type for the expression as follows:

I have a “variable” tile on a dashboard. I click the tile and then in the pop up, I can type in a new number and press enter.

You are correct…this is the issue. If I go to my “manage resources” section and manually change the variable in there it works.

How do I make it so that my manually typed in entry in the dashboard popup is a number and not a string?

Let me take a closer look. Sounds like we might have introduced a bug with a tweak we introduced last week for variables.

sounds good.

Happy to share my dashboard and rule that expose this possible bug if that is helpful.

We just pushed a hotfix which should resolve this. Can you try updating your variable from the popup modal on your dashboard and see if it’s working as expected now?

Yahoo! That did it.


now follow up question…is there a way to make the pop up look like a keypad (similar to the alarm system disarm keypad or pin code keypad for pin protected tiles)???

1 Like

:point_down: Discussion is continued in the following post: :point_down:

:link: Adjusting Numeric Variables in Dashboard