I use this schematic:
Only problem is that dimmer is working, if requestValue is somewhere between 1 and 216.
I checked with oscilloscope and it gave me from full wave to zero between those values.
I have 8 channels of dimmer and I'm going to dim house lights with returning light switches or impulse light switches or however you call it. Holding switch down dims up, after release it dims down. Short click turns full on or full of etc...