This is a controller for IoT devices. It uses a rotary encoder connected to an WEMOS mini v2 board (ESP8266). here it is been programmed for controlling lights color and brightness, but can actually be used for mostly anything you want to control.
It publishes :
it changes mode by pressing the top of the encoder
the simple schematics is here: