Hi,
In the input controls widget, when using the Range Slider, it doesn’t seem to accept device tags as a static value (though this would work for a text input).
I see what you mean. I’ll file a ticket and try to get that fixed for our April release. Thanks for the bug report.
1 Like
We’re going to get this fixed but I did discover something you can do in the meantime. Change your template to:
{{ctx.deviceId-0.tags.fanSpeed1.[0]}}
This is because the value of ctx.deviceId-0.tags.fanSpeed1
is actually an array with one item in it. In such cases we typically render this as a string but there is a case where that is not happening in this block. By adding the .[0]
to the end, you are explicitly referencing that array value instead of letting Handlebars resolve it to a string first.
Let me know if you have any questions and apologies for the bug.
That’s great, thanks for the quick response