Thanks for the info, and for looking into rotary encoder support - meant the digital continuous rotary encoders rather than pot.
These are useful because analogue input on a sonoff basic is not easy.
BTW this is my project - Analogue style rotary dimmer switch - Sonoff + ESPEasy + MQTT