This is the prototype of my dimmer, which actually works quite well. It fades smoothly between different brightness settings. It gets MQTT messages from homebridge, so it can be controlled via Apples Homekit.