setLevel does not update slider for Negative Values?

I’ve seen this behavior for a while, but I always just figured I’d code around it. But then I realized it’s probably a more serious issue.

What I’ve seen happen is if a slider has a range set into the negative values like this:

controlTile("level", "device.level", "slider", height: 1, width: 2, inactiveLabel: false, range: "(-800..100)") {

The slider will update fine if the user changes the slider – at least for Android. However, if ST updates via sendEvent(), the slider will not update if the value is negative. Usually this wouldn’t matter, but for things like my Yamaha network receiver, the volume is on a scale of -800cdB to +100cdB

Let me know if this helps at all

Kristopher

1 Like