Hi Guys.
I purchased a SONOFF ZBMINI to turn my bathroom fan on or off. I will integrate this in to node red and put some logic around it for when it comes on and off etc.
But got to say what a great little device. super simple to install and setup under Z2M. I need to tidy up the wiring tomorrow and i may document the setup in case it helps someone in the future.