Weird behavior of Dimmer in combination with a Generic MQTT Thing

Here’s how I do it:

Make note of the section starting

We have to make one small adjustment to the Item created for the Dimmer Channel:

That was the bit that took me a little while to work out!