All I wanted to know is, does the type selection drop down say “Dimmer” or “Percent”? Everywhere else it is referred to as Dimmer, but you missed it here at first, you won’t be the only one by far.
Post a screenshot and I’ll raise an issue, if you don’t want to.
Yes of course it would be more obvious if it was worded to the effect of ‘Percentage (ie dimmer)’ or something to make it instantly apparent that is the one to use for a dimmer.
Whithout checking the code, It seems that the MQTT Bindings dimmer channel does not accept ON/OFF commands, therefore there is no corresponding Switch rendered in PaperUI.
According to the openHAB semantic it should accept those commands like other Bindings and therefore this is a bug that should be raised at github.
hmm, now it begins to make more sense about (mis)labelling it as percentage.
I can understand in part - on/off commands in a generic MQTT context might well have to do something rather different to 30% setting.
An approach would be to have separate on/off and percent channels, which can both be linked to one OH Dimmer Item, and have the percent channel ignore on/off commands while the on/off channel ignores numeric commands.
Just an example from the WeMo Dimmer Switch.
The dimmer channel will get an OFF command, which internally will be transformed into brightness value of 0%, on the other hand, ON command is transformed to the last known brightness.
So from Item side, you can link a Dimmer Item and a Switch item to the brightness channel, like to be seen on the WeMo docs.
Not neccesarily, as I might have identified the missing part.
The channel definition for the generic MQTT things dimmer channel is missing the following in the XML file
<category>DimmableLight</category>
The logic should already be in place.
But, as what has been said before, PaperUI is not meant to be an everyday control Interface, just an admin interface and will be deprecated with openHAB 3, so what exactly is your use case here ?