I have mapped the IR codes of Mitsubishi aircon (using Broadlink System Manager), and able to control the temperature - each temperature has a unique code.
On mobile phone, I wish to control the temperature via a slider. Is Virtual Dimmer the only way to go? Any way for slider to have fixed numerical range i.e. from 16 to 31 (which corresponds to the temperature range of aircon)?
You are pretty locked into the tiles that exist for the capabilities, so all the sliders are 0-100, including audio volume. Audio Volume tile does not turn on and off when you press the tile, like a dimmer does, so that may be better, but it does also have a mute button. You could trigger off of mute for some other function, though, and replace the icon. There is a virtual volume driver to use for that.
You can add a rule, so that when the slider is set below 16, it just uses 16, and if set above 31, it just uses 31, to keep the inputs always in range, even though it still shows lower/higher numbers on the slider.
You might be better to just use a number hub variable, and put that on the dashboard as an input using the variable number tile. On PC, you would click the field and type in the temp, and on a phone you would get a number pad for entry.